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:
30
Misc/MiscCleanUp.lua
Normal file
30
Misc/MiscCleanUp.lua
Normal 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
|
Reference in New Issue
Block a user