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
intid: the player id.inttype: the type of context. For more information see Context.
Returns int|null
the value stored within selected context or null if player isn't created.