Skip to content

Commit

Permalink
feat(density): remove density/calmai/cargens
Browse files Browse the repository at this point in the history
* Delete client/calmai.lua

* Update hudcomponents.lua

* Delete stream/car_gen_disablers directory

* Update client.lua

* Update README.md
  • Loading branch information
Randolio authored Apr 3, 2024
1 parent 511e480 commit ed8aaa0
Show file tree
Hide file tree
Showing 25 changed files with 1 addition and 60 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ Base scripts for the QBox Core Framework :building_construction:
- Ability to add teleport markers (from a place to another place)
- Weapon recoil (specific to each weapon)
- Tackle
- Calm AI (adjusting npc/gang npc aggresiveness)
- Adjusting npc/vehicle/parked vehicle spawn rates
- Infinite ammo for fire extinguisher and petrol can
- Removal of GTA's default huds (weapon wheel, cash etc.)

Expand Down
23 changes: 0 additions & 23 deletions client/calmai.lua

This file was deleted.

28 changes: 1 addition & 27 deletions client/hudcomponents.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,9 @@ local disableHudComponents = config.disable.hudComponents
local disableControls = config.disable.controls
local displayAmmo = config.disable.displayAmmo

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

exports('DecorSet', decorSet)

CreateThread(function()
while true do

-- Hud Components


for i = 1, #disableHudComponents do
HideHudComponentThisFrame(disableHudComponents[i])
end
Expand All @@ -33,14 +15,6 @@ CreateThread(function()
end

DisplayAmmoThisFrame(displayAmmo)

-- Density

SetParkedVehicleDensityMultiplierThisFrame(config.density.parked)
SetVehicleDensityMultiplierThisFrame(config.density.vehicle)
SetRandomVehicleDensityMultiplierThisFrame(config.density.multiplier)
SetPedDensityMultiplierThisFrame(config.density.peds)
SetScenarioPedDensityMultiplierThisFrame(config.density.scenario, config.density.scenario) -- Walking NPC Density
Wait(0)
end
end)
Expand Down
8 changes: 0 additions & 8 deletions config/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,6 @@ return {
displayAmmo = true,
},

density = {
parked = 0.8,
vehicle = 0.8,
multiplier = 0.8,
peds = 0.8,
scenario = 0.8,
},

blacklisted = {
scenarioTypes = {
'WORLD_VEHICLE_AMBULANCE',
Expand Down
Binary file removed stream/car_gen_disablers/ap1_01_a_strm_0.ymap
Binary file not shown.
Binary file removed stream/car_gen_disablers/ap1_01_a_strm_17.ymap
Binary file not shown.
Binary file removed stream/car_gen_disablers/ap1_01_a_strm_3.ymap
Binary file not shown.
Binary file removed stream/car_gen_disablers/ap1_01_a_strm_6.ymap
Binary file not shown.
Binary file removed stream/car_gen_disablers/ap1_01_a_strm_8.ymap
Binary file not shown.
Binary file removed stream/car_gen_disablers/ap1_01_c_strm_0.ymap
Binary file not shown.
Binary file removed stream/car_gen_disablers/ap1_02_strm_0.ymap
Binary file not shown.
Binary file removed stream/car_gen_disablers/ch3_04_strm_0.ymap
Binary file not shown.
Binary file removed stream/car_gen_disablers/cs3_07_strm_0.ymap
Binary file not shown.
Binary file removed stream/car_gen_disablers/cs3_07_strm_4.ymap
Binary file not shown.
Binary file removed stream/car_gen_disablers/cs3_07_strm_5.ymap
Binary file not shown.
Binary file removed stream/car_gen_disablers/cs3_07_strm_7.ymap
Binary file not shown.
Binary file removed stream/car_gen_disablers/hei_ap1_01_a_strm_0.ymap
Binary file not shown.
Binary file removed stream/car_gen_disablers/hei_ap1_01_a_strm_3.ymap
Binary file not shown.
Binary file removed stream/car_gen_disablers/hei_ap1_01_c_strm_0.ymap
Binary file not shown.
Binary file removed stream/car_gen_disablers/hei_ap1_02_strm_0.ymap
Binary file not shown.
Binary file removed stream/car_gen_disablers/hei_ch3_04_strm_0.ymap
Binary file not shown.
Binary file removed stream/car_gen_disablers/hei_cs2_06b_strm_0.ymap
Binary file not shown.
Binary file removed stream/car_gen_disablers/hei_cs3_07_strm_0.ymap
Binary file not shown.
Binary file removed stream/car_gen_disablers/hei_cs3_07_strm_4.ymap
Binary file not shown.
Binary file removed stream/car_gen_disablers/hei_cs3_07_strm_5.ymap
Binary file not shown.

0 comments on commit ed8aaa0

Please sign in to comment.