setPedWearingJetpack | Multi Theft Auto: Wiki Skip to content

setPedWearingJetpack

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.


This function is used to give or take a jetpack from a ped, it won't work if the ped is in a vehicle.

Syntax

setPedWearingJetpack ( )

Code Examples

server

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