function
getPlayerType (client-side)
Available since version: 0.1.1
This function will get the player/npc type.
The possible return values are:
OBJ_PLAYER, OBJ_LOCALPLAYER, OBJ_NPC, OBJ_LOCALNPC.
Declaration
int|null getPlayerType(int id)
Parameters
int
id: the player id.
Returns int|null
the player type or null
if player isn't created.