SetPedBleeding: Difference between revisions
Jump to navigation
Jump to search
Tag: Reverted |
Tag: Reverted |
||
Line 14: | Line 14: | ||
==Example== | ==Example== | ||
Example by Hydra | |||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
function makePedBleed() | function makePedBleed() |
Revision as of 08:10, 1 September 2021
This function allows you to set player's or ped's bleeding effect.
Syntax
bool setPedBleeding( ped thePed, bool bleeding )
OOP Syntax Help! I don't understand this!
- Method: ped:setBleeding(...)
- Variable: .bleeding
- Counterpart: isPedBleeding
Required Arguments
- thePed: the player or ped whose bleeding effect you want to set of.
- bleeding: boolean specifying whether the player or ped is bleeding or not.
Returns
Returns true if the bleeding state was successfully set, error is raised otherwise.
Example
Example by Hydra
function makePedBleed() if getElementHealth(localPlayer) == 20 then setPedBleeding(localPlayer, true) else setPedBleeding(localPlayer, false) end end addEventHandler("onClientRender", root, makePedBleed)
Requirements
This template will be deleted.
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