IsPedFrozen
From Multi Theft Auto: Wiki
This function is deprecated. This means that its use is discouraged and that it might not exist in future versions. | |
Please use isElementFrozen instead. |
This function retrieves whether the pedestrian is frozen or not.
Syntax
bool isPedFrozen ( ped thePed )
Required Arguments
- thePed: The ped whose frozen state will be obtained.
Returns
Returns a bool indicating the pedestrians frozen state, or false if invalid arguments were passed.
Example
This example adds a 'togglefreeze' console command that lets players alternate their frozen state.
function toggleFreeze ( sourcePlayer ) setPedFrozen ( sourcePlayer, not isPedFrozen ( sourcePlayer ) ) end addCommandHandler ( "togglefreeze", toggleFreeze )
See Also
- addPedClothes
- createPed
- getPedAmmoInClip
- getPedArmor
- getPedClothes
- getPedContactElement
- getPedFightingStyle
- getPedGravity
- getPedOccupiedVehicle
- getPedOccupiedVehicleSeat
- getPedStat
- getPedTarget
- getPedTotalAmmo
- getPedWalkingStyle
- getPedWeapon
- getPedWeaponSlot
- getValidPedModels
- isPedChoking
- isPedDead
- isPedDoingGangDriveby
- isPedDucked
- isPedHeadless
- isPedInVehicle
- isPedOnFire
- isPedOnGround
- isPedWearingJetpack
- killPed
- reloadPedWeapon
- removePedClothes
- removePedFromVehicle
- setPedAnimation
- setPedAnimationProgress
- setPedAnimationSpeed
- setPedArmor
- setPedChoking
- setPedDoingGangDriveby
- setPedFightingStyle
- setPedGravity
- setPedHeadless
- setPedOnFire
- setPedStat
- setPedWalkingStyle
- setPedWeaponSlot