Wiki

Clone wiki

EFLC-MP LUA / npcCreate

Description

Spawns a NPC

Parameters

String nick, Int skinModel, Float posX, , Float posY, , Float posZ, Int vehicleId, String fileName, Int world
String nick: a name for the NPC

Int skinModel: skin id

Float posX

Float posY

Float posZ

Int vehicleId: Id of a spawned vehicle or -1 if the NPC should be on foot

String fileName: Path to a recorded NPC or "" (empty string)

Int world: virtual world

Return values

Int npcID

Example

Updated