SetPedBleeding: Difference between revisions
Jump to navigation
Jump to search
Tag: Rollback |
No edit summary |
||
Line 1: | Line 1: | ||
{{Client function}} | {{Client function}} | ||
__NOTOC__ | __NOTOC__ | ||
{{ | {{Added feature/item|3.0159|1.5.9|1.5.8|20935|This function allows you to set [[player|player's]] or [[ped|ped's]] bleeding effect.}} | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua">bool setPedBleeding( ped thePed, bool bleeding ) </syntaxhighlight> | <syntaxhighlight lang="lua">bool setPedBleeding( ped thePed, bool bleeding ) </syntaxhighlight> | ||
Line 7: | Line 7: | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''thePed:''' | *'''thePed:''' The [[player]] or [[ped]] whose bleeding effect you want to set of. | ||
*'''bleeding:''' | *'''bleeding:''' [[Boolean]] specifying whether the player or ped is bleeding or not. | ||
===Returns=== | ===Returns=== | ||
Returns ''true'' if the bleeding state was successfully set, '' | Returns ''true'' if the bleeding state was successfully set, ''false'' otherwise. | ||
==Example== | ==Example== |
Revision as of 10:38, 20 September 2021
20935
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, false otherwise.
Example
Script Example Missing Function SetPedBleeding needs a script example, help out by writing one. | |
Before submitting check out Editing Guidelines Script Examples. |
-- TODO
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