GetPedOxygenLevel: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{Client function}} This function returns the current oxygen level of the specified ped. ==Syntax== <syntaxhighlight lang="lua">float getPedOxygenLevel ( ped thePed )</syntaxhighlight> ===Re...") |
No edit summary |
||
Line 25: | Line 25: | ||
==See Also== | ==See Also== | ||
{{ | {{Client_ped_functions}} |
Revision as of 16:52, 1 October 2012
This function returns the current oxygen level of the specified ped.
Syntax
float getPedOxygenLevel ( ped thePed )
Required Arguments
- thePed: The ped whose oxygen level you want to check
Returns
A float with the oxygen level, false if an invalid ped was given.
Example
Click to collapse [-]
ClientThis example defines a "showoxygen" console command that shows the player that executes it which oxygen level he has.
function showOxygen ( command ) local oxygen = getPedOxygenLevel ( localPlayer ) outputChatBox( "Your oxygen level: " .. oxygen ) end addCommandHandler ( "showoxygen", showOxygen )
See Also
- canPedBeKnockedOffBike
- getPedAnalogControlState
- getPedAnimation
- getPedBonePosition
- getPedCameraRotation
- getPedControlState
- getPedMoveState
- getPedOxygenLevel
- getPedSimplestTask
- getPedTargetCollision
- getPedTargetEnd
- getPedTargetStart
- getPedTask
- getPedVoice
- getPedWeaponMuzzlePosition
- givePedWeapon
- isPedBleeding
- isPedDoingTask
- isPedReloadingWeapon
- isPedTargetingMarkerEnabled
- setAnalogControlState
- setPedAimTarget
- setPedAnalogControlState
- setPedBleeding
- setPedCameraRotation
- setPedCanBeKnockedOffBike
- setPedControlState
- setPedEnterVehicle
- setPedExitVehicle
- IsPedFootBloodEnabled
- setPedFootBloodEnabled
- setPedLookAt
- setPedOxygenLevel
- setPedTargetingMarkerEnabled
- setPedVoice
- Shared
- 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