Skip to content

SetPlayerInjured

Injures or heals one of the player’s body parts, leaving the others as they are.

SetPlayerInjuries for a single part: injured left out or true injures it, false heals it. OnPlayerInjury is not called.

SetPlayerInjured(pid, part [, injured])
Parameter Type
pid number the player
part number a body part, 1 .. 6
injured boolean false heals the part; left out = injured (optional)

boolean - false for a part that is no body part, or when the player is dead or not in the world

-- a splint on the leg
SetPlayerInjured(pid, BODY_PART_LEG_LEFT, false)

SetPlayerInjuries · IsPlayerInjured · the Vitals group of the index