110 lines
		
	
	
	
		
			3.3 KiB
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			110 lines
		
	
	
	
		
			3.3 KiB
		
	
	
	
		
			Lua
		
	
	
	
	
	
| Config = {}
 | |
| 
 | |
| -- Enabling this will add additional prints and display of the resource within the pot
 | |
| Config.debug = false
 | |
| -- When debug mode is turned off, you can also do /kq_roofboxes_debug [player_id]    - player id can be ignored to apply it to yourself
 | |
| -- To turn it off, do /kq_roofboxes_debugoff [player_id]
 | |
| -- These commands are admin only
 | |
| 
 | |
| ----------------------------------
 | |
| ---
 | |
| --- 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
 | |
| --- This command is admin only
 | |
| ---
 | |
| ----------------------------------
 | |
| 
 | |
| --- 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 = false,
 | |
|     -- When the commands are enabled, the roof box/bike rack items will also not be given when a box/rack is removed
 | |
|     
 | |
|     -- Commands
 | |
|     colorMatched = 'roofbox_color',
 | |
|     carbon = 'roofbox_carbon',
 | |
|     bikerack = 'bikerack',
 | |
| }
 | |
| 
 | |
| Config.removal = {
 | |
|     enabled = false, -- 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 = false, -- 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,
 | |
|     },
 | |
| }
 | |
| 
 | |
| -- Whether the script should ignore a population type check when scanning for roofbox vehicles
 | |
| Config.skipPopulationTypeCheck = false
 | 
