HU/getPedArmor
Jump to navigation
Jump to search
This function returns the current armor of the specified ped.
Syntax
float getPedArmor ( ped thePed )
OOP Syntax Help! I don't understand this!
- Method: ped:getArmor(...)
- Variable: .armor
- Counterpart: setPedArmor
Required Arguments
- thePed: The ped whose armor you want to check
Returns
A float with the armor, false if an invalid ped was given.
Example
Click to collapse [-]
ClientThis example defines a "showarmor" console command that shows the player that executes it how much armor he has.
function showArmor ( ) local me = getLocalPlayer ( ) local armor = getPedArmor ( me ) outputChatBox( "Your armor: " .. armor ) end addCommandHandler ( "showarmor", showArmor )
See Also
- HU/addPedClothes
- HU/createPed
- HU/getPedAmmoInClip
- HU/getPedArmor
- HU/getPedClothes
- HU/getPedContactElement
- HU/getPedFightingStyle
- HU/getPedGravity
- HU/getPedOccupiedVehicle
- HU/getPedOccupiedVehicleSeat
- HU/getPedStat
- HU/getPedTarget
- HU/getPedTotalAmmo
- HU/getPedWalkingStyle
- HU/getPedWeapon
- HU/getPedWeaponSlot
- HU/getValidPedModels
- HU/isPedChoking
- HU/isPedDead
- HU/isPedDoingGangDriveby
- HU/isPedDucked
- HU/isPedFrozen
- HU/isPedHeadless
- HU/isPedInVehicle
- HU/isPedOnFire
- HU/isPedOnGround
- HU/isPedWearingJetpack
- HU/killPed
- HU/reloadPedWeapon
- HU/removePedClothes
- HU/removePedFromVehicle
- HU/setPedAnimation
- HU/setPedAnimationProgress
- HU/setPedAnimationSpeed
- HU/setPedArmor
- HU/setPedChoking
- HU/setPedDoingGangDriveby
- HU/setPedFightingStyle
- HU/setPedGravity
- HU/setPedHeadless
- HU/setPedOnFire
- HU/setPedStat
- HU/setPedWalkingStyle
- HU/setPedWeaponSlot
- HU/setPedWearingJetpack
- HU/warpPedIntoVehicle