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.
Syntax
Section titled “Syntax”GetPlayerDirt(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”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
Example
Section titled “Example”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.\"")endSee also
Section titled “See also”GetPlayerBlood · GetPlayerGrime · SetPlayerDirt · the Dirt and blood group of the index
