# Add vehicles or PED

In the screenshot below all additional vehicles and peds of the Los\_Santos\_Freeway roadwork are shown. Note that a ymap is spawned here, only the vehicles and peds for this are added from the database.

<figure><img src="/files/jF5ITSbCYL1lmMYVOndA" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="189">Database column</th><th width="560">Description</th></tr></thead><tbody><tr><td>id</td><td>This number automatically adds up, you do not enter anything here</td></tr><tr><td>type</td><td>What do you want to spawn? Vehicle or ped</td></tr><tr><td>entityname</td><td>The name of the object to spawn</td></tr><tr><td>x, y, z, heading</td><td>The coordinates of the object</td></tr><tr><td>group</td><td>This name matches the ymap name and is also in config.lua</td></tr><tr><td>enabled</td><td>Do you want the object to spawn? 1 = yes, 0 = no</td></tr><tr><td>animation</td><td>The animation dictionary that the PED will perform</td></tr><tr><td>flag</td><td>The animation name that the PED will perform</td></tr><tr><td>extras</td><td>What extras are turned on. In an ELS vehicle, this will be the vehicle's flashing lights. No extras on the vehicle? Then leave this field empty</td></tr><tr><td>pattern</td><td><p>Whether the extras should be played in a pattern. In ELS vehicles this will ensure working flashing lights.<br></p><p>Once this is set to 0 the extra will only turn on and nothing else will happen. If you set this to 1 you will see the extra flash.</p></td></tr></tbody></table>

{% hint style="info" %}
If the vehicle does not have ELS but you still want the flashing lights, leave extras empty and enter a 1 for pattern\
\
Do you only want the engine of a non-emergency vehicle to start? Then also enter a 1 in pattern
{% endhint %}


---

# Agent Instructions: 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://docs.markhorscripts.com/home/scripts/markhor-roadworks/add-vehicles-or-ped.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.
