2026-04-14 17:41:39 +02:00

19 lines
743 B
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- Ambitioneers Train Enabler Track Setup Only
-- This ensures the train tracks are active, but disables random native train spawns
Citizen.CreateThread(function()
-- Enable relevant tracks
SwitchTrainTrack(0, true) -- Main loop
SwitchTrainTrack(3, true) -- Metro
SwitchTrainTrack(12, true) -- Roxwood Freight Line
SwitchTrainTrack(13, true) -- Roxwood Passenger Line
-- Prevent native train spawning by setting absurd frequencies
SetTrainTrackSpawnFrequency(0, 999999)
SetTrainTrackSpawnFrequency(3, 999999)
SetTrainTrackSpawnFrequency(12, 999999)
SetTrainTrackSpawnFrequency(13, 999999)
-- Turn off engine-driven random spawns
SetRandomTrains(false)
end)