function
getPlayerContext (server-side)
Available since version: 0.2.1
This function is used to get player/npc script context. For more information see this article.
Declaration
int|null getPlayerContext(int id, int type)
Parameters
int
id: the player id.int
type: the type of context.
Returns int|null
the value stored within selected context or null
if player isn't created.