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.

Database column
Description

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.

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

Last updated