CreateNPC

From Onset Developer Wiki
CreateNPC

Type: Function
Context: Server
Introduced: v1.0

Description

Creates a NPC.

Syntax

CreateNPC(x, y, z, h)

Parameters

  • x
    X location
  • y
    Y location
  • z
    Z location
  • h
    Heading of the npc

Return Value

  • The NPC identifier

Example

AddEvent("OnPackageStart", function()
	CreateNPC(128959.1015625, 79325.328125, 1579.2750244141, 84.066261291504)
end)

See also