Guest User

Towing & winching | 2.0.0 config

a guest
Sep 21st, 2023
1,283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.49 KB | None | 0 0
  1. Config = {}
  2.  
  3. Config.debug = false
  4.  
  5. -------------------------------------------------
  6. --- FRAMEWORK SETTINGS
  7. -------------------------------------------------
  8. Config.esxSettings = {
  9.     enabled = true,
  10.     -- Whether or not to use the new ESX export method
  11.     useNewESXExport = true,
  12.  
  13.     -- Enable this if you're using a very old version of ESX
  14.     oldEsx = false,
  15. }
  16.  
  17. Config.qbSettings = {
  18.     enabled = false,
  19.     -- Whether or not to use the new QBCore export method
  20.     useNewQBExport = true,
  21. }
  22.  
  23. -- Item config
  24. Config.items = {
  25.     towingRope = 'kq_tow_rope',
  26.     winch = 'kq_winch',
  27. }
  28.  
  29. -- Commands used to trigger rope placements
  30. Config.commands = {
  31.     towing = {
  32.         enabled = true,
  33.         command = 'towrope',
  34.     },
  35.     winch = {
  36.         enabled = true,
  37.         command = 'winch',
  38.     }
  39. }
  40.  
  41. -- Max speed (in MPH) of vehicles which are towing or being towed (set to -1 to disable speed limiting)
  42. Config.maxTowingSpeed = 50
  43.  
  44. -- Time between each rope refreshing
  45. -- Time in seconds
  46. Config.ropeRefreshTime = 10
  47.  
  48. -- Makes towing a vehicle with no player in the back easier. The car will steer and brake automatically when towed
  49. Config.toweeAutopilot = true
  50.  
  51. -- If script is used in standalone mode. Make sure to disable all the job whitelists!
  52. -- Job whitelist
  53. Config.jobWhitelist = {
  54.     towing = {
  55.         enabled = false,
  56.         jobs = {
  57.             'mechanic',
  58.             'bennys',
  59.         },
  60.     },
  61.     winch = {
  62.         enabled = false,
  63.         jobs = {
  64.             'mechanic',
  65.             'bennys',
  66.         },
  67.     },
  68. }
  69.  
  70. -- The MAXIMUM length of a rope/winch
  71. Config.ropeLength = 16.0
  72.  
  73. -- Props which will be visible in players hands upon usage of the rope/winch item (or command)
  74. Config.ropeProps = {
  75.     towing = {
  76.         prop = 'prop_rope_family_3',
  77.         bone = 4089,
  78.         offset = vector3(0.26, -0.11, 0.0),
  79.         rotation = vector3(0.0, -7.0, 200.0),
  80.     },
  81.     winch = {
  82.         prop = 'prop_stag_do_rope',
  83.         bone = 4089,
  84.         offset = vector3(0.24, -0.11, 0.0),
  85.         rotation = vector3(0.0, -7.0, 200.0),
  86.     }
  87. }
  88.  
  89. -- '3d-text', 'top-left', 'help-text'
  90. Config.inputType = '3d-text'
  91.  
  92. -- Scale of the 3d text
  93. Config.textScale = 1
  94.  
  95. -- Font used for the 3d text
  96. Config.textFont = 4
  97.  
  98. -- Scale used for the 3d text
  99. Config.textScale = 1.0
  100.  
  101. -- https://docs.fivem.net/docs/game-references/controls/
  102. -- Use the input index for the "input" value
  103. Config.keybinds = {
  104.     confirm = {
  105.         label = 'E',
  106.         name = 'INPUT_PICKUP',
  107.         input = 38,
  108.     },
  109.     winch = {
  110.         label = 'Left Shift',
  111.         name = 'INPUT_SPRINT',
  112.         input = 21,
  113.     },
  114.     remove = {
  115.         label = 'E',
  116.         name = 'INPUT_PICKUP',
  117.         input = 38,
  118.         duration = 3000,
  119.     },
  120.     cancel = {
  121.         label = 'X',
  122.         name = 'INPUT_VEH_DUCK',
  123.         input = 73,
  124.     },
  125. }
  126.  
  127. -- Classes of which vehicles may not be towed or tow another vehicle
  128. Config.blacklistedClasses = {
  129.     8, -- Motorcycles
  130.     13, -- Cycles
  131.     14, -- Boats
  132.     15, -- Helicopters
  133.     16, -- Planes
  134.     21, -- Trains
  135. }
  136.  
  137. --[[ All vehicle classes
  138.     0: Compacts
  139.     1: Sedans
  140.     2: SUVs
  141.     3: Coupes
  142.     4: Muscle
  143.     5: Sports Classics
  144.     6: Sports
  145.     7: Super
  146.     8: Motorcycles
  147.     9: Off-road
  148.     10: Industrial
  149.     11: Utility
  150.     12: Vans
  151.     13: Cycles
  152.     14: Boats
  153.     15: Helicopters
  154.     16: Planes
  155.     17: Service
  156.     18: Emergency
  157.     19: Military
  158.     20: Commercial
  159.     21: Trains
  160. ]]
  161.  
Advertisement
Add Comment
Please, Sign In to add comment