Add vehicles or PED
In this article we will discuss the database, how to ensure vehicles or peds are added and what each column means.
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.

id
This number automatically adds up, you do not enter anything here
type
What do you want to spawn? Vehicle or ped
entityname
The name of the object to spawn
x, y, z, heading
The coordinates of the object
group
This name matches the ymap name and is also in config.lua
enabled
Do you want the object to spawn? 1 = yes, 0 = no
animation
The animation dictionary that the PED will perform
flag
The animation name that the PED will perform
extras
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
pattern
Whether the extras should be played in a pattern. In ELS vehicles this will ensure working flashing lights.
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.
Last updated