- Documentation
- Shared functions
- isPedWearingJetpack
Function
isPedWearingJetpack
Checks whether a player is wearing a jetpack. The state comes from the player's game; for 2 seconds after setPedWearingJetpack the server returns the value it has just set, before the game confirms the change.
Syntax
bool isPedWearingJetpack(ped ped)Arguments
pedped- A player (always
falsefor an NPC).
Returns
true when wearing a jetpack.
Example
if isPedWearingJetpack(player) then outputChatBox("Latasz!", player) end