From 187178b7047d20ec568ec59286f7c7d4ccbffc74 Mon Sep 17 00:00:00 2001 From: Nordi98 Date: Tue, 12 Aug 2025 19:54:42 +0200 Subject: [PATCH] ed --- resources/[standalone]/controlled_npcs/client.lua | 5 +++-- resources/[standalone]/controlled_npcs/config.lua | 6 +++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/resources/[standalone]/controlled_npcs/client.lua b/resources/[standalone]/controlled_npcs/client.lua index aa87d2736..cee60dd69 100644 --- a/resources/[standalone]/controlled_npcs/client.lua +++ b/resources/[standalone]/controlled_npcs/client.lua @@ -38,8 +38,9 @@ CreateThread(function() SetPedDensityMultiplierThisFrame(0.5) SetScenarioPedDensityMultiplierThisFrame(0.5, 0.5) - -- Verkehrsdichte basierend auf Bewegung anpassen - local densityMultiplier = isPlayerMoving and 0.1 or 0.05 + -- Traffic density settings +Config.movingTrafficDensity = 0.05 -- Reduced from 0.1 to 0.05 (5% density when moving) +Config.stationaryTrafficDensity = 0.05 -- Keeping the same for when stationary SetVehicleDensityMultiplierThisFrame(densityMultiplier) SetRandomVehicleDensityMultiplierThisFrame(densityMultiplier) diff --git a/resources/[standalone]/controlled_npcs/config.lua b/resources/[standalone]/controlled_npcs/config.lua index 82ba1ddb4..f5ad1d58f 100644 --- a/resources/[standalone]/controlled_npcs/config.lua +++ b/resources/[standalone]/controlled_npcs/config.lua @@ -1,5 +1,9 @@ Config = {} +-- Traffic density settings +Config.movingTrafficDensity = 0.05 -- Reduced from 0.1 to 0.05 (5% density when moving) +Config.stationaryTrafficDensity = 0.05 -- Keeping the same for when stationary + Config.vehModels = { "ambulance", "police", @@ -8,4 +12,4 @@ Config.vehModels = { "sheriff2", "firetruck", "towtruck" -} \ No newline at end of file +}