Skip to content

SetPlayerBlood

Sets a player’s blood at one body zone or all of them - on their skin, their clothes or one piece.

As SetPlayerDirt, for the blood. zone "all" sets every zone.

SetPlayerBlood(pid, zone, value [, part])
Parameter Type
pid number the player
zone string|number "head", "torso", "arm_left", "arm_right", "leg_left", "leg_right" (or a BODY_PART_* number), or "all"
value number 0 .. 1
part string as SetPlayerDirt’s - "all" by default (optional)

boolean | false, string - as SetPlayerDirt’s, and "unknown zone"

-- a butcher's apron after the day
SetPlayerBlood(pid, "torso", 0.9, "clothes")
SetPlayerBlood(pid, "arm_left", 0.5, "skin")
SetPlayerBlood(pid, "arm_right", 0.5, "skin")

SetPlayerDirt · WashPlayer · GetPlayerBlood · the Dirt and blood group of the index