Files
Elite-Gaming-FiveM/resources/[EGRP-Map-Addons]/dragtree/server.lua
T
KingMcDonalds 50ba7493ae fivem server udate 6/9/2024
new mlos and vehicles
2024-09-06 23:19:28 -07:00

32 lines
472 B
Lua

local index = 0
local treeProgram = Config.program
Citizen.CreateThread(function()
while true do
Citizen.Wait(500)
index = index + 1
if index > #treeProgram then
index = 1
end
TriggerClientEvent("switchLights", -1, treeProgram[index])
if index == 2 then
Citizen.Wait(500)
end
if index == 4 then
Citizen.Wait(1500)
end
if index == 5 then
Citizen.Wait(500)
end
if index == #treeProgram then
Citizen.Wait(5000)
end
end
end)