ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. isPedChoking

Function

isPedChoking

ServerPedsIdentical to MTA:SA

Returns the choking state stored with setPedChoking. false by default. The game does not set this state by itself (tear gas does not change it), so it reflects only what scripts have set.

Syntax

bool isPedChoking(ped ped)

Arguments

pedped
A player or an NPC.

Returns

true when a script set choking.

Example

if isPedChoking(player) then outputChatBox("Dusisz się!", player, 255, 0, 0) end

See also