IsPlayerInArea
Whether a player is in an area now.
As of the last check, at most a tenth of a second ago.
Syntax
Section titled “Syntax”IsPlayerInArea(pid, name)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
name |
string | the area |
Returns
Section titled “Returns”boolean
Example
Section titled “Example”if IsPlayerInArea(pid, "Market") then GivePlayerMoney(pid, -5) endSee also
Section titled “See also”GetPlayerAreas · the The map’s areas group of the index
