RemovePedJetPack: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(Deprecated) |
||
Line 1: | Line 1: | ||
{{Server function}} | {{Server function}} | ||
__NOTOC__ | __NOTOC__ | ||
{{Deprecated | {{Deprecated|setPedWearingJetpack}} | ||
This function is used to remove a ped's jetpack. | |||
==Syntax== | ==Syntax== |
Latest revision as of 09:06, 9 November 2018
This function is deprecated. This means that its use is discouraged and that it might not exist in future versions. | |
Please use setPedWearingJetpack instead. |
This function is used to remove a ped's jetpack.
Syntax
bool removePedJetPack ( ped thePed )
OOP Syntax Help! I don't understand this!
- Method: ped:removeJetPack(...)
Required Arguments
- thePed: The ped you want to remove the jetpack from.
Returns
Returns true if the ped had a jetpack, false otherwise.
Example
This example adds a "jetpack" command in console, which allows toggling of a jetpack.
function jetPackCommand ( source, key ) if ( doesPedHaveJetPack ( source ) ) then -- if the player has a jetpack removePedJetPack ( source ) -- remove it else givePedJetPack ( source ) -- otherwise give him one end end addCommandHandler ( "jetpack", jetPackCommand )
See Also
- addPedClothes
- getPedClothes
- removePedClothes
- createPed
- getPedAmmoInClip
- getPedArmor
- getPedFightingStyle
- getPedOccupiedVehicle
- getPedOccupiedVehicleSeat
- getPedStat
- getPedTarget
- getPedTotalAmmo
- getPedWalkingStyle
- getPedWeapon
- getPedWeaponSlot
- getPedContactElement
- getValidPedModels
- isPedChoking
- isPedDead
- isPedDoingGangDriveby
- isPedDucked
- isPedHeadless
- isPedInVehicle
- isPedOnFire
- isPedOnGround
- isPedWearingJetpack
- killPed
- removePedFromVehicle
- setPedAnimation
- setPedAnimationProgress
- setPedAnimationSpeed
- setPedArmor
- setPedDoingGangDriveby
- setPedFightingStyle
- setPedHeadless
- setPedOnFire
- setPedStat
- setPedWalkingStyle
- setPedWeaponSlot
- warpPedIntoVehicle