
Configuration Modules
This page will outline and explain how to create a configuration module and how to configure the vehicle for its setup.
Creating a configuration module
Door Id
This variable takes a string input, which should correspond to the door ID you wish to interact with on this vehicle. All door IDs are listed below.
Driver Side Front :
dside_f
Driver Side Rear :
dside_r
Passenger Side Front :
pside_f
Passenger Side Rear :
pside_r
Bonnet / Hood :
bonnet
Boot / Trunk :
boot
---@section bootOffset
---@description: This parameter enables the configuration of the boot interaction position on the vehicle.
doorId = 'boot',
Compartments
This table contains various variables. Within this table, there are two sub-tables; however, there may be instances where only one sub-table exists. The main sub-table corresponds to the main inventory page, while the weaponSafe sub-table pertains to the locked weapon safe inventory tab. Below is an example of a vehicle with and without a weapon safe.
return {
---@section bootOffset
---@description: This parameter enables the configuration of the boot interaction position on the vehicle.
doorId = 'boot',
---@section compartments
['compartments'] = {
main = {
slots = 18,
items = {
['Traffic Cone'] = 3,
['Road Closed Sign'] = 1,
['Police Accident Sign'] = 1,
['Police Slow Sign'] = 1,
['Police Tape'] = 2,
['Red Key'] = 1,
['Firearms Helmet'] = 2,
['Firearms Shield'] = 1,
['First Aid Kit'] = 2,
['Fire Extinguisher'] = 1,
['Red Key'] = 1,
},
},
weaponSafe = {
slots = 18,
pinKey = '4626',
items = {
['Glock 19'] = 2,
['M4 Rifle'] = 2
}
},
}
}
Slots
This variable accepts an integer input, representing the number of slots within this inventory tab.
slots = 18,
Adding new items
Adding new items to your inventory tab is straightforward. Below, you will find an example of an item. This item can be divided into two sections. The first section is the string, which represents the item name and can be found in the items.lua
file. The second section indicates the quantity of the item that these vehicles can hold.
['Traffic Cone'] = 3,
Last updated