Added Effect: Express Trains

This commit is contained in:
2025-09-30 23:12:19 +01:00
parent c3ab0f1a67
commit b92c9dcbe6

View File

@@ -0,0 +1,23 @@
EffectInfo = {
Name = "Express Trains",
EffectId = "vehs_expresstrains",
TimedType = "Normal",
EffectGroup = "_group_trafficspawner",
EffectCategory = "None"
}
function OnStart()
end
function OnStop()
end
function OnTick()
SET_RANDOM_TRAINS(true)
for _, vehicle in ipairs(GetAllVehicles()) do
if GET_VEHICLE_CLASS(vehicle) == 21 then
SET_TRAIN_SPEED(vehicle, 9999.0)
end
end
end