Skip to content

Commit

Permalink
feat: SetVehicleModelIsSuppressed | add more blacklisted scenarios (#61)
Browse files Browse the repository at this point in the history
* BlacklistedScenarios addons

* Update hudcomponents.lua

* Update config.lua

* Update ignore.lua

* Update config.lua

* chore: remove duplicate use of StartAudioScene

* chore: remove whitespace

* chore: config comments

---------

Co-authored-by: ChatDisabled <[email protected]>
  • Loading branch information
bicatcho11 and ChatDisabled authored Jan 16, 2024
1 parent 0681d00 commit 5d5e6fc
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 4 deletions.
3 changes: 3 additions & 0 deletions client/ignore.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ CreateThread(function()
for _, sctyp in next, Config.BlacklistedScenarios['TYPES'] do
SetScenarioTypeEnabled(sctyp, false)
end
for _, scmdl in next, Config.BlacklistedScenarios['SUPPRESSED'] do
SetVehicleModelIsSuppressed(GetHashKey(model), true)
end
for _, scgrp in next, Config.BlacklistedScenarios['GROUPS'] do
SetScenarioGroupEnabled(scgrp, false)
end
Expand Down
67 changes: 63 additions & 4 deletions config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,70 @@ ConsumablesAlcohol = {

Config.BlacklistedScenarios = {
['TYPES'] = {
'WORLD_VEHICLE_MILITARY_PLANES_SMALL',
'WORLD_VEHICLE_MILITARY_PLANES_BIG',
'WORLD_VEHICLE_ATTRACTOR',
'WORLD_VEHICLE_AMBULANCE',
'WORLD_VEHICLE_POLICE_NEXT_TO_CAR',
'WORLD_VEHICLE_POLICE_CAR',
'WORLD_VEHICLE_BICYCLE_BMX',
'WORLD_VEHICLE_BICYCLE_BMX_BALLAS',
'WORLD_VEHICLE_BICYCLE_BMX_FAMILY',
'WORLD_VEHICLE_BICYCLE_BMX_HARMONY',
'WORLD_VEHICLE_BICYCLE_BMX_VAGOS',
'WORLD_VEHICLE_BICYCLE_MOUNTAIN',
'WORLD_VEHICLE_BICYCLE_ROAD',
'WORLD_VEHICLE_BIKE_OFF_ROAD_RACE',
'WORLD_VEHICLE_BIKER',
'WORLD_VEHICLE_BOAT_IDLE',
'WORLD_VEHICLE_BOAT_IDLE_ALAMO',
'WORLD_VEHICLE_BOAT_IDLE_MARQUIS',
'WORLD_VEHICLE_BOAT_IDLE_MARQUIS',
'WORLD_VEHICLE_BROKEN_DOWN',
'WORLD_VEHICLE_BUSINESSMEN',
'WORLD_VEHICLE_HELI_LIFEGUARD',
'WORLD_VEHICLE_CLUCKIN_BELL_TRAILER',
'WORLD_VEHICLE_CONSTRUCTION_SOLO',
'WORLD_VEHICLE_CONSTRUCTION_PASSENGERS',
'WORLD_VEHICLE_DRIVE_PASSENGERS',
'WORLD_VEHICLE_DRIVE_PASSENGERS_LIMITED',
'WORLD_VEHICLE_DRIVE_SOLO',
'WORLD_VEHICLE_FIRE_TRUCK',
'WORLD_VEHICLE_EMPTY',
'WORLD_VEHICLE_MARIACHI',
'WORLD_VEHICLE_MECHANIC',
'WORLD_VEHICLE_MILITARY_PLANES_BIG',
'WORLD_VEHICLE_MILITARY_PLANES_SMALL',
'WORLD_VEHICLE_PARK_PARALLEL',
'WORLD_VEHICLE_PARK_PERPENDICULAR_NOSE_IN',
'WORLD_VEHICLE_PASSENGER_EXIT',
'WORLD_VEHICLE_POLICE_BIKE',
'WORLD_VEHICLE_POLICE_CAR',
'WORLD_VEHICLE_POLICE',
'WORLD_VEHICLE_POLICE_NEXT_TO_CAR',
'WORLD_VEHICLE_QUARRY',
'WORLD_VEHICLE_SALTON',
'WORLD_VEHICLE_SALTON_DIRT_BIKE',
'WORLD_VEHICLE_SECURITY_CAR',
'WORLD_VEHICLE_STREETRACE',
'WORLD_VEHICLE_TOURBUS',
'WORLD_VEHICLE_TOURIST',
'WORLD_VEHICLE_TANDL',
'WORLD_VEHICLE_TRACTOR',
'WORLD_VEHICLE_TRACTOR_BEACH',
'WORLD_VEHICLE_TRUCK_LOGS',
'WORLD_VEHICLE_TRUCKS_TRAILERS',
'WORLD_VEHICLE_DISTANT_EMPTY_GROUND',
},
-- These vehicles will be stopped from being spawned in traffic only. (unsure if this affects car generators as well)
['SUPPRESSED'] = {
"SHAMAL",
"LUXOR",
"LUXOR2",
"LAZER",
"TITAN",
"CRUSADER",
"RHINO",
"AIRTUG",
"RIPLEY",
"SUNTRAP",
"BLIMP",
},
['GROUPS'] = {
2017590552,
Expand All @@ -67,6 +125,7 @@ Config.BlacklistedScenarios = {
}
}

-- these vehicles will always be deleted once anything tries to create them.
Config.BlacklistedVehs = {
[`SHAMAL`] = true,
[`LUXOR`] = true,
Expand Down

0 comments on commit 5d5e6fc

Please sign in to comment.