Skip to content

Commit

Permalink
Merge pull request #3 from Qbox-project/solareon-patch-1
Browse files Browse the repository at this point in the history
fix(client): use correct config path
  • Loading branch information
KostaZx authored Jul 11, 2024
2 parents 928546e + 5857d77 commit 69172a9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,29 @@ SetRelationshipBetweenGroups(1, `MEDIC`, `PLAYER`)
SetRelationshipBetweenGroups(1, `COP`, `PLAYER`)
SetRelationshipBetweenGroups(1, `PRISONER`, `PLAYER`)

local density = lib.load('qbx_density.config')
local density = lib.load('config.client')

local function setDensity(type, value)
if type == 'parked' then
density.parked = value
elseif type == 'vehicle' then
density.vehicle = value
elseif type == 'multiplier' then
density.multiplier = value
elseif type == 'randomvehicles' then
density.randomvehicles = value
elseif type == 'peds' then
density.peds = value
elseif type == 'scenario' then
density.scenario = value
end
end

---@deprecated use SetDensity instead
exports('DecorSet', setDensity)
exports('SetDensity', setDensity)

CreateThread(function()
while true do
SetParkedVehicleDensityMultiplierThisFrame(density.parked)
SetVehicleDensityMultiplierThisFrame(density.vehicle)
SetRandomVehicleDensityMultiplierThisFrame(density.multiplier)
SetRandomVehicleDensityMultiplierThisFrame(density.randomvehicles)
SetPedDensityMultiplierThisFrame(density.peds)
SetScenarioPedDensityMultiplierThisFrame(density.scenario, density.scenario) -- Walking NPC Density
Wait(0)
Expand Down

0 comments on commit 69172a9

Please sign in to comment.