> 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 %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://fivemdocs.simonfas.dk/scripts/spawn-npc-copy-sample-version.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
