Vehicle Register (VehReg)
Register a vehicle with a single in-game command!
Last updated
Was this helpful?
Register a vehicle with a single in-game command!

This submodule is already enabled by default when installing the Sonoran CAD FiveM resource.
The bodycam settings are stored inside of the /configuration/vehreg_config.lua file.
vehreg_config.luareigsterCommand
The command used to register current vehicle
reg
defaultRegExpire
The default date that all registrations will expire
01/02/2030
defaultRegStatus
The default status that all registrations will have | MUST BE IN CAPS
VALID
language
Array of language used within the script
English
recordData
Array of field UID's based on your vehicle registration record
Default from CAD
customData
Array of preset vehicle information, commonly used for addon vehicles where names may not be present
Ensure the player has already linked their CAD for this integration to work.
When a player registers a vehicle in-game, the submodule must know what fields in your custom vehicle registration to enter the vehicle information into. The recordData portion of the config contains the Field Mapping ID for the default vehicle record template.
Custom record templates are found in Admin > Customization > Custom Records
If you have modified the vehicle registration template, update the recordData configuration accordingly.

In-game commands can be used to
/reg Registers the vehicle you are currently sitting inside to your currently selected CAD character

You can now implement our vehicle registration system into your own scripts by simply calling a server event! See our Server Events documentation for usage.
Last updated
Was this helpful?
Was this helpful?
customData = {
{
spawncode = "adder",
model = "Adder",
},
{
spawncode = "blista",
model = "Blista",
}
}
