Skip to content

GetPlayerGrime

Every dirt and blood value of a player - the skin and each worn piece.

As their game last reported it. skin and each entry of items hold dirt and the six zones’ blood (head, torso, arm_left, arm_right, leg_left, leg_right), 0 to 1; an item’s class is its class GUID. A clean piece is not listed. To keep a character’s dirt across visits, save these and set them again at the next spawn with SetPlayerDirt and SetPlayerBlood (an item’s by its class).

GetPlayerGrime(pid)
Parameter Type
pid number the player

table | nil, string - { skin = { dirt, head, torso, ... }, items = { { class, dirt, head, torso, ... }, ... } }; nil and "not connected"

local grime = GetPlayerGrime(pid)
for _, item in ipairs(grime.items) do
Log(string.format("%s: dirt %.2f, torso blood %.2f", GetItemName(item.class) or item.class, item.dirt, item.torso))
end

GetPlayerDirt · GetPlayerBlood · OnPlayerGrimeChange · the Dirt and blood group of the index