isPedWearingJetpack | Multi Theft Auto: Wiki Skip to content

isPedWearingJetpack

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


Checks whether or not a ped is currently wearing a jetpack.

Syntax

isPedWearingJetpack ( )

Code Examples

server

Example 1:This examples adds a "jetpack" console command, which toggles a jetpack for the player.

addCommandHandler ( "jetpack",
function ( player )
setPedWearingJetpack ( player, not isPedWearingJetpack ( player ) )
end
)

See Also