SetPedHeadless: Difference between revisions
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
With this function, you can set if a ped has a head or not. | With this function, you can set if a ped has a head or not. | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua">bool setPedHeadless ( ped thePed )</syntaxhighlight> | <syntaxhighlight lang="lua">bool setPedHeadless ( ped thePed, bool headState )</syntaxhighlight> | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''thePed''': The [[ped]] to check. | *'''thePed''': The [[ped]] to check. | ||
*'''headState''': head state, use false if you want the ped be headless, use true to give him head back | |||
===Returns=== | ===Returns=== |
Revision as of 03:35, 1 January 2009
With this function, you can set if a ped has a head or not.
Syntax
bool setPedHeadless ( ped thePed, bool headState )
Required Arguments
- thePed: The ped to check.
- headState: head state, use false if you want the ped be headless, use true to give him head back
Returns
Returns true if successful, false otherwise
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