Skip to content

function getPlayerPtr (client-side)

Available since version: 0.2

This function will get player npc pointer.

Declaration

userpointer|null getPlayerPtr(int id)

Parameters

  • int id: the player id.

Returns userpointer|null

the raw pointer to npc object or null if player isn't created.