Added new effects, modified existing ones

new file:   Misc/MiscCleanUp.lua -- cleans up dead entities and vehicles from the world
	new file:   Player/PlayerAnnoyingInvisibleRCVehicle.lua Creates an invisible RC vehicle to track the player
	modified:   Weather/WeatherTrueSnow.lua - Added ability to see snowy footprints
This commit is contained in:
2025-09-23 20:55:14 +01:00
parent 719d11ebd0
commit 0b830e5eac
4 changed files with 71 additions and 1 deletions

30
Misc/MiscCleanUp.lua Normal file
View File

@@ -0,0 +1,30 @@
EffectInfo = {
Name = "Clean Up Dead Stuff",
EffectId = "misc_cleanup",
TimedType = "None",
EffectGroup = "None",
EffectCategory = "None"
}
function OnStart()
for _, vehicle in ipairs(GetAllVehicles()) do
if GET_VEHICLE_ENGINE_HEALTH(vehicle) <= -4000 then
DELETE_ENTITY(Holder(vehicle))
end
end
for _, ped in ipairs(GetAllPeds()) do
if ped ~= PLAYER_PED_ID() and IS_PED_DEAD_OR_DYING(ped, false) then
DELETE_ENTITY(Holder(ped))
end
end
end
function OnStop()
end
function OnTick()
end