Lol lol lol, how many timers are you willing to make?
local vehicleShopTable = {}
local shopResetTimer
-- functions --
local shopResetFunction
---------------
addEventHandler("onResourceStart",resourceRoot,
function ()
vehicleShopTable[#vehicleShopTable+1] = createVehicle(509, 698.6, -521.20, 16,0,0,225)
vehicleShopTable[#vehicleShopTable+1] = createVehicle(481, 695.6, -521.20, 16,0,0,225)
vehicleShopTable[#vehicleShopTable+1] = createVehicle(510, 692.6, -521.20, 16,0,0,225)
shopResetTimer = setTimer (shopResetFunction ,900000,0)
end)
shopResetFunction = function ()
for i=1, #vehicleShopTable do
respawnVehicle ( vehicleShopTable[i] )
end
end