isPedBleeding | Multi Theft Auto: Wiki Skip to content

isPedBleeding

Client-side
Server-side
Shared

Pair: setPedBleeding

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


This function gets the state of a player's or ped's bleeding effect.

OOP Syntax Help! I don't understand this!

  • Method:ped:isBleeding(...)
  • Variable: .bleeding

Syntax

bool isPedBleeding ( ​ped thePed )
Required arguments
  • thePed: The player or ped whose bleeding effect state you want to get.

Returns

Returns true if the player or ped is bleeding, false otherwise.

  • bool: value

Code Examples

shared
function checkBleeding ()
if isPedBleeding (localPlayer) then
outputChatBox ("The ped is bleeding!")
else
outputChatBox ("The ped is not bleeding!")
end
end
addCommandHandler ("checkbleed", checkBleeding)

See Also