Skip to main content

IsNPCById

Check whether a player is an NPC by player's id. The data is retrieved from the server's scoreboard.

Parameters:

  • dwId: Player id

Returns: 1 if NPC, 0 if not, or -1 on failure

Signature:

IsNPCById(dwId)