Config
Config = {}
-- Enabling this will add additional prints and display of the resource within the pot
Config.debug = false
----------------------------------
---
--- READ ME!!!
---
--- To restart the script without causing you and everyone else to crash. Instead of restarting it normally.
--- Use our custom command /kq_roofboxes_restart
---
----------------------------------
--- To configure exact vehicle offsets or custom bicycles, see vehicles.lua file
Config.sql = {
driver = 'oxmysql', -- oxmysql or ghmattimysql or mysql
-- If you're using an older version of oxmysql set this to false
newOxMysql = true,
}
-- Roofbox stash configuration
Config.stashes = {
-- Normal sized roofbox, used on most vehicles
normalRoofbox = {
maxWeight = 30000,
slots = 7,
},
-- Smaller sized roofbox, used on coupes, muscle cars and some pickup trucks
smallRoofbox = {
maxWeight = 24000,
slots = 6,
},
-- Super car style roofbox, used on supercars and some sport cars
supercarRoofbox = {
maxWeight = 24000,
slots = 6,
},
}
-- Usable items
Config.items = {
colorMatched = 'roofbox_color',
carbon = 'roofbox_carbon',
bikerack = 'bikerack',
}
Config.placementCommands = {
-- Whether to enable command based placement of roofboxes. This function should be used when running on a standalone
-- server with no usable items.
enabled = true,
-- Commands
colorMatched = 'roofbox_color',
carbon = 'roofbox_carbon',
bikerack = 'bikerack',
}
Config.removal = {
enabled = true, -- Whether the command should be enabled (Not needed when using target)
command = 'removeroofbox',
checkAccess = {
-- Available systems
-- 'qbx_vehiclekeys' - base qbox vehicle keys
-- 'qb-vehiclekeys' - base qbcore vehicle keys
-- 'vehicles_keys' - vehicle keys by jaksam
-- leave empty or write 'none' if you don't use any of the listed systems
-- You can also add your own system within the client/editable/editable.lua : HasVehicleAccess() function
system = 'none'
}
}
--
Config.opening = {
enabled = true, -- Whether the command should be enabled (Not needed when using target)
command = 'openroofbox',
}
--
-- Vehicle handling change when roofbox is put on
Config.handling = {
-- Whether the car handling should be affected
enabled = true
}
-- https://docs.fivem.net/docs/game-references/controls/
-- Use the input index for the "input" value
Config.keybinds = {
place = {
label = 'E',
name = 'INPUT_PICKUP',
input = 38,
},
cancel = {
label = 'Backspace',
name = 'INPUT_CELLPHONE_CANCEL',
input = 177,
},
}
Last updated