Vehicle Register (VehReg)

Register a vehicle with a single in-game command!

Activation Guide

1. Download and Install the Resource

This submodule is already enabled by default when installing the Sonoran CAD FiveM resource.

2. Adjust the Configuration

The bodycam settings are stored inside of the /configuration/vehreg_config.lua file.

vehreg_config.lua
Option
Description
Default

reigsterCommand

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

3. Ensure Players are Linked

Ensure the player has already linked their CAD for this integration to work.

4. Configure Custom Record Fields

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.

Vehreg: Custom Record Field Mapping

Commands

In-game commands can be used to

  • /reg Registers the vehicle you are currently sitting inside to your currently selected CAD character

Developer Documentation

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?