> For the complete documentation index, see [llms.txt](https://fivemdocs.simonfas.dk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fivemdocs.simonfas.dk/scripts/spawn-npc-copy-sample-version.md).

# Spawn NPC Copy Sample Version

{% code title="config.lua" lineNumbers="true" %}

```lua
Config = {}

Config.behavior = false -- (true/false) false = aggressive | true = No reaction (only working if the NPC have a weapon in hand)
Config.offset = 2.0 -- how many meters away from you should it spawn?

-- Weapon Options --

Config.weapon = "weapon_pistol50" -- Change the weapon ID https://wiki.rage.mp/index.php?title=Weapons

-- Animation Option --

Config.loop = true -- (true/false) false = No loop | true = loop
Config.animationnotify = true -- (true/false)

-- Commands --

Config.spawncommand = "spawncopy" -- Change to your own command

Config.deletecommand = "deletecopy" -- Change to your own command

Config.weaponcommand = "addweapon" -- Change to your own command

Config.removeweaponcommand = "removeweapon" -- Change to your own command

Config.animationcommand = "playanimation" -- Change to your own command

Config.stopanimation = "stopanimation" -- Change to your own command

-- Notify System --

Config.notify = true -- (true/false) | Spawn Copy Notify
```

{% endcode %}
