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. Towing & Winching

Config

Config = {}

Config.debug = false

-------------------------------------------------
--- FRAMEWORK SETTINGS
-------------------------------------------------
Config.esxSettings = {
    enabled = false,
    -- Whether or not to use the new ESX export method
    useNewESXExport = true,

    -- Enable this if you're using a very old version of ESX
    oldEsx = false,
}

Config.qbSettings = {
    enabled = false,
    -- Whether or not to use the new QBCore export method
    useNewQBExport = true,
}

-- Item config
Config.items = {
    towingRope = 'kq_tow_rope',
    winch = 'kq_winch',
}

-- Commands used to trigger rope placements
Config.commands = {
    towing = {
        enabled = true,
        command = 'towrope',
    },
    winch = {
        enabled = true,
        command = 'winch',
    }
}

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

-- Time between each rope refreshing
-- Time in seconds
Config.ropeRefreshTime = 10

-- Makes towing a vehicle with no player in the back easier. The car will steer and brake automatically when towed
Config.toweeAutopilot = true

-- If script is used in standalone mode. Make sure to disable all the job whitelists!
-- Job whitelist
Config.jobWhitelist = {
    towing = {
        enabled = false,
        jobs = {
            'mechanic',
            'bennys',
        },
    },
    winch = {
        enabled = false,
        jobs = {
            'mechanic',
            'bennys',
        },
    },
}

-- Whether to disallow attaching ropes to vehicles which are locked
Config.disallowLockedVehicles = false

-- The MAXIMUM length of a tow rope
Config.ropeLength = 10.0

-- The MAXIMUM length of a winch
Config.winchLength = 16.0


-- Props which will be visible in players hands upon usage of the rope/winch item (or command)
Config.ropeProps = {
    towing = {
        prop = 'prop_rope_family_3',
        bone = 4089,
        offset = vector3(0.26, -0.11, 0.0),
        rotation = vector3(0.0, -7.0, 200.0),
    },
    winch = {
        prop = 'prop_stag_do_rope',
        bone = 4089,
        offset = vector3(0.24, -0.11, 0.0),
        rotation = vector3(0.0, -7.0, 200.0),
    }
}

-- '3d-text', 'top-left', 'help-text'
Config.inputType = '3d-text'

-- Scale of the 3d text
Config.textScale = 1

-- Font used for the 3d text
Config.textFont = 4

-- Scale used for the 3d text
Config.textScale = 1.0

-- https://docs.fivem.net/docs/game-references/controls/
-- Use the input index for the "input" value
Config.keybinds = {
    confirm = {
        label = 'E',
        name = 'INPUT_PICKUP',
        input = 38,
    },
    winch = {
        label = 'Left Shift',
        name = 'INPUT_SPRINT',
        input = 21,
    },
    remove = {
        label = 'E',
        name = 'INPUT_PICKUP',
        input = 38,
        duration = 3000,
    },
    cancel = {
        label = 'X',
        name = 'INPUT_VEH_DUCK',
        input = 73,
    },
}

-- 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
]]
PreviousTowing & WinchingNextInstallation Guide

Last updated 8 months ago