ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. isPedWearingJetpack

Function

isPedWearingJetpack

Server and clientPedsIdentical to MTA:SA

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 false for an NPC).

Returns

true when wearing a jetpack.

Example

if isPedWearingJetpack(player) then outputChatBox("Latasz!", player) end

See also