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. Vehicle Towing

Config

Config = {}
Locale = {}

Config.Debug = true

-- Displayed text (Use these settings to translate to your language)
Locale.press_to_attach = 'Press to attach'
Locale.press_to_detach = 'Detach all ropes'
Locale.vehicles_locked = 'This vehicle is locked and therefore cannot be towed'


-- Enable or disable the use of command which opens up the towing menu
Config.useTowingCommand = true
-- Command that will open the towing menu if enabled (Without the slash /)
Config.towingCommand = 'tow'


-- How long the towing rope should be (in meters) I highly recommend keeping it between 6 and 10 meters
Config.ropeLength = 7

-- Time in seconds, how long it should take between each re-sync of the ropes, (30 seconds works well, for big servers you can make it higher)
Config.ropeSyncDuration = 10

-- Max speed (in MPH) of vehicles which are towing or being towed (set to -1 to disable speed limiting)
Config.maxTowingSpeed = 50

-- Whether we should disallow players from attaching ropes to locked vehicles
-- (For example. To prevent them from stealing vehicles of other players)
Config.checkForLocks = true


-- Make sure to add the item to the framework you're using
Config.towRopeItem = 'towing_rope'

---------- ESX Only Settings -----------
-- If your server is running on ESX you can enable it to use the towing rope item
-- You need to add the rope item to your database yourself !
Config.useEsx = false
----------------------------------------

---------- QB Only Settings ------------
-- If your server is running on ESX you can enable it to use the towing rope item
Config.useQB = false
----------------------------------------

-- Classes of which vehicles may not be towed or tow another vehicle
Config.blacklistedClasses = {
    8, -- Motorcycles
    13, -- Cycles
    14, -- Boats
    15, -- Helicopters
    16, -- Planes
    21, -- Trains
}

--[[ All vehicle classes
    0: Compacts
    1: Sedans
    2: SUVs
    3: Coupes
    4: Muscle
    5: Sports Classics
    6: Sports
    7: Super
    8: Motorcycles
    9: Off-road
    10: Industrial
    11: Utility
    12: Vans
    13: Cycles
    14: Boats
    15: Helicopters
    16: Planes
    17: Service
    18: Emergency
    19: Military
    20: Commercial
    21: Trains
]]
PreviousVehicle TowingNextRGB Controller (Full)

Last updated 8 months ago