Advertisement
Guest User

Wheel Damage Default Config 1.2.0

a guest
Jul 9th, 2022
3,055
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.35 KB | None | 0 0
  1. Config = {}
  2.  
  3. Config.debug = false
  4.  
  5. -- The amount of damage the wheels will take on collisions (10-30 seems reasonable to me, for more realistic experience I'd recommend values between 50-100)
  6. Config.collisionDamageAmount = 30
  7.  
  8. -- If you define a model specific multiplier it will be used instead of the class multiplier
  9. -- Vehicle classes https://docs.fivem.net/natives/?_0x29439776AAA00A62
  10. Config.collisionDamageMultiplier = {
  11.     models = {
  12.       kuruma2 = 0.5
  13.     },
  14.     classes = {
  15.         [0] = 1.2, -- Compacts
  16.         [1] = 1, -- Sedans
  17.         [2] = 0.8, -- SUVs
  18.         [3] = 1, -- Coupes
  19.         [4] = 1, -- Muscle
  20.         [5] = 1.25, -- Sports Classics
  21.         [6] = 1.2, -- Sports
  22.         [7] = 1.2, -- Super
  23.         [8] = 1.1, -- Motorcycles
  24.         [9] = 0.5, -- Off-road
  25.         [10] = 0.5, -- Industrial
  26.         [11] = 0.5, -- Utility
  27.         [12] = 1, -- Vans
  28.         [13] = 0.5, -- Cycles
  29.         [14] = 0, -- Boats
  30.         [15] = 0, -- Helicopters
  31.         [16] = 0, -- Planes
  32.         [17] = 0.9, -- Service
  33.         [18] = 0.7, -- Emergency
  34.         [19] = 0.5, -- Military
  35.         [20] = 0.5, -- Commercial
  36.         [21] = 0, -- Trains
  37.     }
  38. }
  39.  
  40.  
  41. -- The amount of damage the wheels will take on falls (10-30 seems reasonable to me, for more realistic experience I'd recommend values between 50-100)
  42. Config.fallDamageAmount = 30
  43.  
  44. -- Multiplier for the fall damage for vehicles that are using off-road tires/wheels
  45. Config.offroadTireFallDamageMultiplier = 0.7
  46.  
  47. -- Threshold of the fall speed required to deal wheel damage (3.8 by default. If you don't want smaller jumps to deal damage set it higher)
  48. Config.fallThreshold = 3.8
  49.  
  50. -- Minimum fall airtime (in seconds) for the wheels to get damaged. This only counts for the duration the car was falling (going downwards)
  51. Config.minimumAirTime = 0.5
  52.  
  53. -- If you define a model specific multiplier it will be used instead of the class multiplier
  54. -- Vehicle classes https://docs.fivem.net/natives/?_0x29439776AAA00A62
  55. Config.fallDamageMultiplier = {
  56.     models = {
  57.       bf400 = 0.4,
  58.       sanchez = 0.4,
  59.       sanchez2 = 0.4,
  60.       manchez = 0.4,
  61.     },
  62.     classes = {
  63.         [0] = 1, -- Compacts
  64.         [1] = 1, -- Sedans
  65.         [2] = 0.3, -- SUVs
  66.         [3] = 1, -- Coupes
  67.         [4] = 0.7, -- Muscle
  68.         [5] = 1.3, -- Sports Classics
  69.         [6] = 1.2, -- Sports
  70.         [7] = 1.5, -- Super
  71.         [8] = 0.6, -- Motorcycles
  72.         [9] = 0.3, -- Off-road
  73.         [10] = 0.7, -- Industrial
  74.         [11] = 0.7, -- Utility
  75.         [12] = 1.3, -- Vans
  76.         [13] = 0.6, -- Cycles
  77.         [14] = 0, -- Boats
  78.         [15] = 0, -- Helicopters
  79.         [16] = 0, -- Planes
  80.         [17] = 0.9, -- Service
  81.         [18] = 0.5, -- Emergency
  82.         [19] = 0.2, -- Military
  83.         [20] = 0.7, -- Commercial
  84.         [21] = 0, -- Trains
  85.     }
  86. }
  87.  
  88. -- Chance of the wheel falling off when it reaches critical damage (0 - 100)
  89. Config.fallOffChance = 50
  90.  
  91. -- Chance of the tire bursting when it reaches critical damage (0 - 100)
  92. Config.tireBurstChance = 100
  93.  
  94. -- Whether or not to respect bulletproof tires for popping (wheels will still fall off)
  95. Config.respectBulletproofTires = false
  96.  
  97.  
  98. -- Makes the car undriveable when at least one wheel falls off
  99. Config.setVehicleUndriveable = false
  100.  
  101. -- Some vehicles become really fast when a wheel falls off (blame Rockstar)
  102. -- To prevent abuse you can limit the vehicle speed when the wheels fall off
  103. Config.limitVehicleSpeed = true
  104. -- Speed limit in kmh
  105. Config.speedLimit = 50.0
  106.  
  107. -- There's a few decent wheel models to choose from https://gtahash.ru/?s=wheel
  108. -- the 'prop_wheel_01' might fit more popular rims but the 'prop_tornado_wheel' has bouncy physics
  109. Config.wheelModel = 'prop_wheel_01'
  110. Config.wheelRim = 'prop_wheel_rim_03'
  111.  
  112. -- Vehicle classes https://docs.fivem.net/natives/?_0x29439776AAA00A62
  113. Config.blacklist = {
  114.     models = {
  115.         'blazer',
  116.         'blazer2',
  117.         'blazer3',
  118.         'blazer4',
  119.         'blazer5',
  120.         'monster',
  121.         'monster3',
  122.         'monster4',
  123.         'monster5',
  124.     },
  125.     classes = {
  126.         14, 15, 16, 21
  127.     }
  128. }
  129.  
  130.  
  131. -- Fall damage based on the ground type the vehicle lands on
  132.  
  133. -- Surfaces which are counted as road (https://docs.fivem.net/natives/?_0xA7F04022)
  134. Config.roadSurfaces = {
  135.     1, 3, 4, 12
  136. }
  137.  
  138. -- If you define a model specific multiplier it will be used instead of the class multiplier
  139. -- Multiplier that will be used for falls that land on dirt / non road(road like) material
  140. Config.offroadFallDamageMultiplier = {
  141.     models = {
  142.         bf400 = 0.3,
  143.         sanchez = 0.3,
  144.         sanchez2 = 0.3,
  145.         manchez = 0.3,
  146.         buggy = 0.7,
  147.     },
  148.     classes = {
  149.         [0] = 1.0, -- Compacts
  150.         [1] = 1.0, -- Sedans
  151.         [2] = 0.9, -- SUVs
  152.         [3] = 1, -- Coupes
  153.         [4] = 0.9, -- Muscle
  154.         [5] = 1.3, -- Sports Classics
  155.         [6] = 1.3, -- Sports
  156.         [7] = 1.3, -- Super
  157.         [8] = 1.0, -- Motorcycles
  158.         [9] = 0.7, -- Off-road
  159.         [10] = 0.9, -- Industrial
  160.         [11] = 1, -- Utility
  161.         [12] = 1.2, -- Vans
  162.         [13] = 0.6, -- Cycles
  163.         [14] = 0, -- Boats
  164.         [15] = 0, -- Helicopters
  165.         [16] = 0, -- Planes
  166.         [17] = 0.9, -- Service
  167.         [18] = 0.5, -- Emergency
  168.         [19] = 0.2, -- Military
  169.         [20] = 0.7, -- Commercial
  170.         [21] = 0, -- Trains
  171.     }
  172. }
  173.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement