function createNpc (client-side)
Available since version: 0.3.0
Note
By default, the NPC won't be added to the world. It's necessary to call spawnNpc afterwards.
This function will create a client-side NPC entry and return an internal npc id (<0).
Declaration
number createNpc(string name)
Parameters
stringname: Name for the created NPC.
Returns number
NPC id (starting from -1) or 0 on failure.