KuzQuality - FiveM Documentation
Webstore
  • KuzQuality - FiveM Scripts
  • Useful links
    • KuzQuality.com | Shop now
    • Our Discord
  • General
    • Common issues
    • Frequently asked questions
    • Updating server artifacts
    • Installation basics
  • RESOURCES
    • Premium Resources
      • Shell Creator
        • Config
        • Installation Guide
        • Video guide
        • API
          • Server
          • Client
      • Cocaine Production
        • Config
        • Installation Guide
      • Roof boxes & bike racks
        • Config
        • Installation Guide
        • API
      • Meth Cooking
        • Config
        • Installation Guide
      • Private islands
        • Config
        • Installation Guide
      • Real offroad physics
        • Config
        • Installation Guide
        • API
      • Placeable items
        • Config
        • Inventory integrations
        • Installation Guide
      • Car Dyno
        • Config
        • Installation Guide
      • Outfit Bag 2.0
        • Config
        • Installation Guide
      • Realistic wheel damage
        • Config
      • Smash 'n Grab 2.0
        • Config
        • Installation Guide
      • Animation Suggestions
        • Config
        • Installation Guide
      • Smugglers Heist
        • Config
        • Installation Guide
      • Car Heist
        • Config
      • Towing & Winching
        • Config
        • Installation Guide
      • Security Systems
        • Config
        • Developer Docs
      • Drift Tires
        • Config
        • Installation Guide
      • Engine Swaps [ESX]
        • Config
      • Engine Swaps [QBCore]
        • Config
      • Islands Generator
        • Config
        • Installation Guide
      • Brake Overheating
        • Config
        • Installation Guide
      • Drift Smoke
        • Config
      • Advanced Ped Looting
        • Config
        • Installation Guide
      • Bike Jump Ability
        • Config
        • Installation Guide
      • Hideouts 2.0
        • Config
      • Detective Tools
        • Config
      • Classic Outfit Bag
        • Config
      • Traction Control Toggle
        • Config
      • Car Lift
        • Config
      • Vehicle Towing
        • Config
      • RGB Controller (Full)
        • Config
      • Diving [ESX]
        • Config
      • Diving [QBCore]
        • Config
    • Free Resources
      • Prop Placer
        • Config
      • Nightclub Heist
        • Config
      • Basic Security Lasers
        • Config
        • Developer Docs
      • Advanced Airdrop
        • Config
      • Smooth Throttle Control
        • Config
      • Better rollbacks & handbrake turns
        • Config
      • Wild Cannabis (Loot Areas Example)
        • Config
      • RGB Controller (Basic)
        • Config
      • Dragy
        • Config
      • Easter Egg Hunt
        • Config
      • Loot Areas
        • Config
        • Developer docs
  • KQ Link
    • KQ Link | Installation guide
    • Using Git
    • Developer reference
      • Exports
        • Server
        • Client
Powered by GitBook
On this page
  1. RESOURCES
  2. Premium Resources
  3. Roof boxes & bike racks

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,
    },
}

PreviousRoof boxes & bike racksNextInstallation Guide

Last updated 6 months ago