# 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="https://1867656088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjerXUlZqUhXaenH4pxnn%2Fuploads%2FIX8UTlmIJpvQmt545BQZ%2Fafbeelding.png?alt=media&#x26;token=7036e552-f2de-430d-8b13-8f14c0a18080" 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 %}
