Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Config = {}
- -- This enabled additional debug commands and logs
- -- Debug commands:
- -- /surfaceDebug - Displays the surface that the wheel is standing on along with all its configured values
- Config.debug = false
- -------------------------------------------------
- --- GENERAL SETTINGS
- -------------------------------------------------
- -- By default this script is configured to replicate realistic(ish) values while keeping the gameplay fun and entertaining.
- -- If you want to make this script less realistic and more arcady. If your players are getting annoyed and you don't want
- -- a realistic handling. Here are the recommended values:
- -- generalDepthDifficulty = 25
- -- generalSinkageSpeed = 50
- -- generalTractionLoss = 50
- -- General difficulty of the depth handling.
- -- 100 = default
- -- Lower this value to make driving in deep surfaces (such as mud or deep sand) easier for ALL vehicles
- -- Raise this value to make driving in deep surfaces more difficult
- Config.generalDepthDifficulty = 100
- -- General speed of the vehicle sinking into the surface
- -- 100 = Default
- -- Lower this value to make all vehicles sink slower
- -- Raise this value to make all vehicles sink faster
- Config.generalSinkageSpeed = 100
- -- General loss of traction based on vehicle surface
- -- Vehicles will be more likely to skid on low traction surfaces
- -- Lower this value to decrease the general traction loss (make vehicles drift less on slippery surfaces)
- -- Raise this value to make vehicles lose more traction on slippery surfaces (make vehicles drift more on slippery surfaces)
- Config.generalTractionLoss = 100
- -------------------------------------------------
- --- VEHICLE MODIFIERS
- -------------------------------------------------
- -- Changes that offroad tires will make.
- -- upgradeValue = value of how much better the vehicle should perform when deep in a surface (mud, sand, etc.)
- -- tractionOnSoft = Additional traction when on materials of softness that's more than 10
- -- tractionOnHard = Additional (in default case negative) traction on hard materials (softness less than 10)
- Config.offroadTires = {
- upgradeValue = 50,
- tractionOnSoft = 20,
- tractionOnHard = -10,
- }
- -- Handling upgrade in deep surface for AWD (4WD) vehicles
- Config.awdUpgrade = 25
- -------------------------------------------------
- --- SCRIPT PERFORMANCE SETTINGS
- -------------------------------------------------
- -- The refresh rate of all the sinking/surface logic. The higher the value the less smoother the visuals but better script performance.
- -- If your server is known for players with slower devices you might want to turn this up
- -- If your players have better computers or you really want the off-roading to look good try turning it down
- -- Values between 100 - 500
- Config.refreshRate = 200
- -------------------------------------------------
- --- DETAILED SETTINGS
- -------------------------------------------------
- -- If you define a model specific multiplier it will be used instead of the class multiplier
- -- Vehicle classes https://docs.fivem.net/natives/?_0x29439776AAA00A62
- -- Abstract value - Determines how well the class or model of the vehicle can handle being submerged in the surface
- -- 0 = Default
- -- Positive values = Better handling / ability to get out of deep surface
- -- Negative values = Worse handling / less ability to get out of deep surface
- Config.depthHandlingQuality = {
- models = {
- seminole2 = 20,
- sandking = 20,
- sandking2 = 20,
- issi2 = -10,
- panto = -20,
- comet4 = 30,
- -- dirt bikes
- bf400 = 30,
- sanchez = 20,
- manchez = 20,
- esskey = 0,
- cliffhanger = 0,
- enduro = 0,
- },
- classes = {
- [0] = 5, -- Compacts
- [1] = -5, -- Sedans
- [2] = 15, -- SUVs
- [3] = 0, -- Coupes
- [4] = -5, -- Muscle
- [5] = 5, -- Sports Classics
- [6] = 5, -- Sports
- [7] = 5, -- Super
- [8] = -10, -- Motorcycles
- [9] = 35, -- Off-road
- [10] = -10, -- Industrial
- [11] = -10, -- Utility
- [12] = -5, -- Vans
- [17] = 10, -- Service
- [18] = 10, -- Emergency
- [19] = 15, -- Military
- [20] = -5, -- Commercial
- }
- }
- --- SURFACES
- -- name = Only used for the ease of config as well as the debug mode
- -- traction = Amount of traction on the surface. Anything below 100 will make the vehicles skid. Lower value = more skid
- -- Maximum 100
- -- Minimum 0
- -- depth = Maximum depth of the surface in mm (millimeter) - (100mm = +-4 inches)
- -- Maximum infinite
- -- Minimum 0
- -- softness = The softness of the material. This dictates how fast the vehicles will sink into the surface. (This is also used for off-road tires to decide their handling boost
- -- Maximum infinite
- -- Minimum 0
- -- Values which will be assigned to all un-configured surfaces
- Config.fallbackSurface = {
- name = 'Fallback Surface',
- traction = 100,
- depth = 0,
- softness = 0,
- }
- Config.surfaces = {
- [1] = {
- name = 'Concrete',
- traction = 100,
- depth = 0,
- softness = 0,
- },
- [4] = {
- name = 'Road',
- traction = 100,
- depth = 0,
- softness = 0,
- },
- [5] = {
- name = 'Metal',
- traction = 100,
- depth = 0,
- softness = 0,
- },
- [6] = {
- name = 'Sandy roadside',
- traction = 80,
- depth = 50,
- softness = 5,
- },
- [9] = {
- name = 'Sandstone',
- traction = 80,
- depth = 0,
- softness = 0,
- },
- [10] = {
- name = 'Rock',
- traction = 80,
- depth = 0,
- softness = 0,
- },
- [11] = {
- name = 'Rock',
- traction = 80,
- depth = 0,
- softness = 0,
- },
- [13] = {
- name = 'Cobble',
- traction = 90,
- depth = 0,
- softness = 0,
- },
- [16] = {
- name = 'Limestoneesque sand',
- traction = 80,
- depth = 0,
- softness = 0,
- },
- [17] = {
- name = 'Rocky dry dirt',
- traction = 80,
- depth = 50,
- softness = 5,
- },
- [18] = {
- name = 'Dry sand',
- traction = 80,
- depth = 130,
- softness = 40,
- },
- [19] = {
- name = 'Road sand',
- traction = 90,
- depth = 30,
- softness = 5,
- },
- [20] = {
- name = 'Grainy Sand',
- traction = 80,
- depth = 100,
- softness = 10,
- },
- [21] = {
- name = 'Gravely sand',
- traction = 70,
- depth = 220,
- softness = 30,
- },
- [22] = {
- name = 'Wet hard sand',
- traction = 70,
- depth = 250,
- softness = 50,
- },
- [23] = {
- name = 'Gravel road',
- traction = 75,
- depth = 50,
- softness = 5,
- },
- [24] = {
- name = 'Wet sand',
- traction = 60,
- depth = 350,
- softness = 70,
- },
- [31] = {
- name = 'Gravely dirt/path',
- traction = 70,
- depth = 50,
- softness = 5,
- },
- [32] = {
- name = 'Gravely dirt',
- traction = 70,
- depth = 200,
- softness = 15,
- },
- [35] = {
- name = 'Tuff Sand',
- traction = 90,
- depth = 50,
- softness = 5,
- },
- [36] = {
- name = 'Dirt',
- traction = 70,
- depth = 300,
- softness = 40,
- },
- [37] = {
- name = 'Deep road sand',
- traction = 60,
- depth = 75,
- softness = 15,
- },
- [38] = {
- name = 'Rocky sand',
- traction = 70,
- depth = 150,
- softness = 10,
- },
- [40] = {
- name = 'Moist dirt path',
- traction = 60,
- depth = 150,
- softness = 50,
- },
- [41] = {
- name = 'Swamp grass',
- traction = 50,
- depth = 250,
- softness = 50,
- },
- [42] = {
- name = 'Swamp sand',
- traction = 70,
- depth = 500,
- softness = 110,
- },
- [43] = {
- name = 'Hard Sand',
- traction = 75,
- depth = 50,
- softness = 10,
- },
- [44] = {
- name = 'Dirt/Sand',
- traction = 50,
- depth = 200,
- softness = 25,
- },
- [46] = {
- name = 'Hard grass',
- traction = 80,
- depth = 50,
- softness = 5,
- },
- [47] = {
- name = 'Grass',
- traction = 65,
- depth = 125,
- softness = 10,
- },
- [48] = {
- name = 'Tall grass',
- traction = 60,
- depth = 150,
- softness = 20,
- },
- [49] = {
- name = 'Farmland',
- traction = 60,
- depth = 200,
- softness = 35,
- },
- [50] = {
- name = 'Podzol',
- traction = 70,
- depth = 125,
- softness = 25,
- },
- [51] = {
- name = 'Podzol',
- traction = 70,
- depth = 125,
- softness = 25,
- },
- [52] = {
- name = 'Dry podzol',
- traction = 80,
- depth = 75,
- softness = 10,
- },
- [64] = {
- name = 'Metal',
- traction = 90,
- depth = 0,
- softness = 0,
- },
- [125] = {
- name = 'Drain concrete',
- traction = 70,
- depth = 0,
- softness = 0,
- },
- }
- -- Zone multiplier
- -- This has been added to modify the maximum depth of all surfaces located within zones.
- -- Its used to make grass located (for example) in the city less deep to make it more realistic and easier to drive on.
- -- If you have popular areas in your city in which you want the off-roading (think of road medians etc.) to be easier you can add the zone here.
- -- Same goes for areas which you want to be more difficult. You can make the depth multiplier higher for those
- -- You can view the zone you're in by using the debug command /surfaceDebug
- -- Map of zones: https://www.reddit.com/media?url=https%3A%2F%2Fi.redd.it%2F5cw11krz9kcz.jpg
- -- Zone names and hashes: https://docs.fivem.net/natives/?_0xCD90657D4C30E1CA
- Config.zones = {
- {
- name = 'City',
- depthMultiplier = 0.3,
- zones = {
- 'MOVIE',
- 'ROCKF',
- 'DOWNT',
- 'DTVINE',
- 'EAST_V',
- 'GOLF',
- 'LEGSQU',
- 'ROCKF',
- 'MORN',
- 'STAD',
- 'DAVIS',
- 'RANCHO',
- 'STRAW',
- 'CHAMH',
- 'PBOX',
- 'SKID',
- 'TEXTI',
- 'LMESA',
- 'ELYSIAN',
- 'TERMINA',
- 'HAWICK',
- 'ALTA',
- 'BURTON',
- 'DELPE',
- },
- },
- {
- name = 'City beaches',
- depthMultiplier = 0.75,
- zones = {
- 'BEACH',
- 'DELBE',
- },
- },
- {
- name = 'Mountains',
- depthMultiplier = 1.25,
- zones = {
- 'MTCHIL',
- 'MTGORDO',
- 'MTJOSE',
- 'PALHIGH',
- },
- },
- {
- name = 'Zancudo Swamp',
- depthMultiplier = 1.1,
- zones = {
- 'LAGO',
- 'ZANCUDO',
- },
- },
- {
- name = 'Popular',
- depthMultiplier = 0.75,
- zones = {
- 'PALETO',
- 'HARMO',
- 'GRAPES',
- 'SANDY',
- 'RTRAK',
- 'ZQ_UAR',
- 'HUMLAB',
- },
- },
- }
Advertisement
Add Comment
Please, Sign In to add comment