Skip to content

GetPlayerDirt

How dirty a player is - their skin and their dirtiest piece of clothing.

As their game last reported it (OnPlayerGrimeChange follows each change). 0 is clean, 1 as dirty as the game gets.

GetPlayerDirt(pid)
Parameter Type
pid number the player

number, number | nil, string - the skin’s dirt and the dirtiest worn piece’s (0 when every piece is clean); nil and "not connected" for a player who is not connected

local skin, clothes = GetPlayerDirt(pid)
if math.max(skin, clothes) >= 0.6 then
SendClientMessage(pid, COLOR_RED, "The innkeeper: \"Not in my bed, you won't. Wash first.\"")
end

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