- Documentation
- Server functions
- isPedChoking
Function
isPedChoking
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