Skip to content

function getPlayerIdByPtr (client-side)

Available since version: 0.2

This function will get player id from npc pointer.

Declaration

int getPlayerIdByPtr(userpointer npc)

Parameters

  • userpointer npc: the raw pointer to npc object.

Returns int

id the player id.