Advertisement
Guest User

Drift Tires Default Config

a guest
Oct 1st, 2022
948
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 10.05 KB | None | 0 0
  1. Config = {}
  2.  
  3. -- This enabled additional debug commands and logs
  4. Config.debug = false
  5.  
  6. --- If you're testing the script and editing the values DO NOT simply restart the script. As this script is using custom models (wheelBalancers)
  7. --- it will crash if you just restart it. Instead use the `/kq_drifttires_restart` command. It will safely restart the script without causing you to crash
  8.  
  9.  
  10. ----------------------------------------------------------------------------------------------
  11. --- FRAMEWORK OPTIONS
  12. ----------------------------------------------------------------------------------------------
  13.  
  14. --- SETTINGS FOR ESX
  15. Config.esxSettings = {
  16.     enabled = true,
  17.    
  18.     -- Account that will be used for tire shop purchases
  19.     moneyAccount = 'money',
  20.    
  21.     sqlDriver = 'mysql', -- oxmysql or mysql
  22.    
  23.     -- Whether or not to use the new ESX export method
  24.     useNewESXExport = true,
  25.    
  26.     -- Set to `true` if you're on a very old version of esx
  27.     oldEsx = false,
  28. }
  29.  
  30.  
  31. --- SETTINGS FOR QBCORE
  32. Config.qbSettings = {
  33.     enabled = false,
  34.    
  35.     -- Account that will be used for tire shop purchases
  36.     moneyAccount = 'cash',
  37.    
  38.     sqlDriver = 'oxmysql', -- oxmysql or mysql
  39.    
  40.     useNewQBExport = true, -- Make sure to uncomment the old export inside fxmanifest.lua if you're still using it
  41. }
  42.  
  43.  
  44. --- SETTINGS FOR STANDALONE
  45. Config.standaloneSettings = {
  46.     enabled = false,
  47.     sqlDriver = 'mysql', -- oxmysql or mysql
  48.    
  49.     -------------------------
  50.     --- Standalone commands:
  51.         -- /jackvehicle     - Jacks up the nearest vehicle
  52.         -- /getdrifttire    - Puts a drift tire in players hands
  53.         -- /getregulartire  - Puts a regular tire in players hands
  54. }
  55.  
  56.  
  57.  
  58. -- If you're using an older version of oxmysql you can set that here
  59. Config.newOxMysql = true
  60.  
  61. ----------------------------------------------------------------------------------------------
  62. ---
  63. --- ADVANCED MODE (Wheel balancers)
  64. --- Whether or not to use the "advanced mode"
  65. ---
  66. --- ADVANCED MODE: Players will be required to take off wheels, bring them to the wheel balancer to swap the tire
  67. --- on the wheel using the balancer.
  68. ---
  69. --- SIMPLE MODE: Players will be able to take off wheels (those will then disappear/go into their inventory)
  70. --- after that players will need to USE an tire type item in their inventory to get a wheel in their hands to
  71. --- put it on back on the vehicle (This will allow players to swap tires without a wheel balancer)
  72. ---
  73. --- beware - server restart is highly recommended after changing this option.
  74. Config.advancedMode = true
  75.  
  76.  
  77.  
  78. ----------------------------------------------------------------------------------------------
  79. --- ITEMS
  80. ----------------------------------------------------------------------------------------------
  81.  
  82. -- Item names
  83. Config.items = {
  84.     driftTireItem = 'kq_drifttire',
  85.     regularTireItem = 'kq_regulartire',
  86.     carjackItem = 'kq_carjack',
  87. }
  88.  
  89.  
  90.  
  91. ----------------------------------------------------------------------------------------------
  92. --- WHITE/BLACKLISTING
  93. ----------------------------------------------------------------------------------------------
  94.  
  95. -- Disallow certain vehicles or classes of vehicles from being tire swapped
  96. Config.blacklist = {
  97.     -- List of models that should not be able to swap tires
  98.     vehiclesEnabled = true,
  99.     vehicles = {
  100.       'police',
  101.       'taxi',
  102.     },
  103.    
  104.     -- Classes that should not be allowed to swap tires (numerical values) https://docs.fivem.net/natives/?_0x29439776AAA00A62
  105.     classesEnabled = true,
  106.     classes = {
  107.         8, 10, 11, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22
  108.     },
  109. }
  110.  
  111. -- Opposite of the blacklist. Only allows certain models/vehicle models to be swapped
  112. Config.whitelist = {
  113.     vehiclesEnabled = false,
  114.     -- List of models that should be able to swap tires
  115.     vehicles = {
  116.       'futo',
  117.       'futo2',
  118.       'rt3000',
  119.       'yosemite2',
  120.       'comet6',
  121.       'gauntlet4',
  122.       'euros',
  123.       'zr350',
  124.       'dominator8',
  125.     },
  126.    
  127.     classesEnabled = false,
  128.     -- The only classes that should be allowed to swap tires (numerical values) https://docs.fivem.net/natives/?_0x29439776AAA00A62
  129.     classes = {
  130.         3, 4, 5, 6
  131.     },
  132. }
  133.  
  134.  
  135. ----------------------------------------------------------------------------------------------
  136. --- EVENTS
  137. ----------------------------------------------------------------------------------------------
  138. Config.wheelTakeOff = {
  139.     -- Duration in ms of how long taking a wheel off will take (excl. the minigame)
  140.     duration = 1000,
  141. }
  142.  
  143. Config.wheelPutOn = {
  144.     -- Duration in ms of how long putting a wheel on will take (excl. the minigame)
  145.     duration = 1000,
  146. }
  147.  
  148. Config.screwdriverMinigame = {
  149.     -- Whether or not to enable the minigame
  150.     enabled = true,
  151.     -- How many times players will need to press
  152.     presses = 12,
  153.     -- How long players will need to wait if they miss click
  154.     messedUpDuration = 2000,
  155.     -- Keybinds used in the screw minigame
  156.     keybinds = {
  157.         'A', 'S', 'D' ,'W'
  158.     }
  159. }
  160.  
  161.  
  162. ----------------------------------------------------------------------------------------------
  163. --- EXTRA
  164. ----------------------------------------------------------------------------------------------
  165.  
  166. -- Whether or not to apply a slight boost to vehicles engine power while mid drift (Helps lower powered vehicles stay in drift) (1.0 is the base car power)
  167. Config.driftBoost = {
  168.     enabled = true,
  169.     power = 3.0
  170. }
  171.  
  172.  
  173. -- Only available for advanced mode
  174. Config.jobWhitelist = {
  175.     enabled = true,
  176.     jobs = {
  177.         'mechanic',
  178.     }
  179. }
  180.  
  181. -- Whether or not to enable KQ_CARLIFT support (https://kuzquality.com/package/5030175)
  182. Config.kq_carliftSupport = {
  183.     enabled = true,
  184. }
  185.  
  186. -- Scale of the 3d text
  187. Config.fontScale = 1.0
  188.  
  189. ----------------------------------------------------------------------------------------------
  190. --- WHEEL BALANCERS
  191. --- Only applicable while using the 'Advanced Mode'
  192. ----------------------------------------------------------------------------------------------
  193. Config.wheelBalancers = {
  194.     -- Max wobble of a wheel when on a balancer (range between 2 and 10, lower = more realistic, higher = more visible)
  195.     maxWobble = 3.0,
  196.    
  197.     -- Max spinning speed of a wheel when on a balancer (range between 2 and 15)
  198.     maxSpinningSpeed = 5.0,
  199.    
  200.     -- Whether or not to show colored lights on the wheel balancers (uses more resources / higher resmon when using the balancer)
  201.     enableLights = false,
  202.    
  203.     -- (Only when lights are diabled) How long each animation frame should take (lower = smoother, higher = less smooth)
  204.     animationFrameTime = 30,
  205.    
  206.     -- Whether or not the wheel balancer should make a sound
  207.     enableSounds = true,
  208.    
  209.     -- Locations where the wheel balancers will be created
  210.     spawnLocations = {
  211.         {x = -320.47, y = -135.62, z = 38.99, h = 250.8}, -- Big LSC City
  212.         {x = -200.0, y = -1321.05, z = 31.08, h = 180.0}, -- Bennys #1
  213.         {x = -201.9, y = -1314.43, z = 31.08, h = 0.0}, -- Bennys #2
  214.         {x = -1161.67, y = -2023.10, z = 13.16, h = 137.0}, -- LSC Airport
  215.         {x = 1080.27, y = 1333.90, z = 101.0, h = 90.0}, -- Hideouts Workshop
  216.     },
  217. }
  218.  
  219. -------------------------------------------------------------------------------------------------
  220. --- TIRE PRESSURE
  221. -------------------------------------------------------------------------------------------------
  222.  
  223. Config.tirePressure = {
  224.     enabled = true,
  225.     models = {
  226.         'prop_gas_airunit01',
  227.         'imp_prop_air_compressor_01a',
  228.         'prop_compressor_01',
  229.         'prop_compressor_02',
  230.         'prop_compressor_03',
  231.     },
  232.     cableLength = 5.0,
  233. }
  234.  
  235.  
  236. -------------------------------------------------------------------------------------------------
  237. --- SHOPS
  238. -------------------------------------------------------------------------------------------------
  239. Config.tireShops = {
  240.     enabled = true,
  241.     -- Whether or not to show the shop blips on the map
  242.     showBlip = true,
  243.    
  244.     -- Whether or not anyone can buy the items or just players who are allowed to swap the tires (jobs) (based off Config.jobWhitelist)
  245.     anyoneCanBuy = false,
  246.    
  247.     -- Whether or not to let players buy the car jack set (Could be disabled to only use kq_carlift lifts)
  248.     sellCarJack = true,
  249.    
  250.     prices = {
  251.         carjack = 2500,
  252.         driftTire = 750,
  253.         regularTire = 250,
  254.     },
  255.    
  256.     -- Locations at which the shops will be created
  257.     locations = {
  258.         {x = -67.03, y = -1332.66, z = 29.28, h = 325.4}, -- Tire Nutz
  259.         {x = -66.41, y = 6429.47, z = 31.43, h = 267.2}, -- Paleto Bay gas station
  260.     }
  261. }
  262.  
  263.  
  264. ----------------------------------------------------------------------------------------------
  265. --- KEYBINDS
  266. ----------------------------------------------------------------------------------------------
  267. -- https://docs.fivem.net/docs/game-references/controls/
  268. -- Use the input index for the "input" value
  269. Config.keybinds = {
  270.     takeOffWheel = {
  271.         label = 'E',
  272.         input = 38,
  273.     },
  274.     putOnWheel = {
  275.         label = 'E',
  276.         input = 38,
  277.     },
  278.     lowerVehicle = {
  279.         label = 'G',
  280.         input = 58,
  281.     },
  282.     cancelMinigame = {
  283.         label = 'H',
  284.         input = 74,
  285.     },
  286.     putAwayTire = {
  287.         label = 'H',
  288.         input = 74,
  289.     },
  290.     useBalancer = {
  291.         label = 'G',
  292.         input = 58,
  293.     },
  294.     changeTireType = {
  295.         label = 'H',
  296.         input = 74,
  297.     },
  298.     addBalancerWeights = {
  299.         label = '⬆',
  300.         input = 172,
  301.     },
  302.     removeBalancerWeights = {
  303.         label = '⬇',
  304.         input = 173,
  305.     },
  306.     removeWheelByForce = {
  307.         label = 'G',
  308.         input = 58,
  309.     },
  310.     purchase = {
  311.         label = 'E',
  312.         input = 38,
  313.     },
  314.     useAirCompressor = {
  315.         label = 'E',
  316.         input = 38,
  317.     },
  318.     addAir = {
  319.         label = '⬆',
  320.         input = 172,
  321.     },
  322.     removeAir = {
  323.         label = '⬇',
  324.         input = 173,
  325.     },
  326.     startOnKqCarlift = {
  327.         label = 'G',
  328.         input = 58,
  329.     },
  330. }
  331.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement