Main/resources/[housing]/oph3z-motels/client/utils.lua
2025-06-11 16:38:57 +02:00

23 lines
No EOL
520 B
Lua

local QBCore = exports["qb-core"]:GetCoreObject()
ScriptLoaded = false
local function StartScript()
while true do
Wait(1000)
if NetworkIsPlayerActive(PlayerId()) then
TriggerServerEvent("oph3z-motels:ReqData")
Wait(2000)
break
end
end
end
RegisterNetEvent("oph3z-motels:Update", function (table, loaded, table2)
Config.Motels = table
ScriptLoaded = loaded
if not table2 then
return
end
end)
Citizen.CreateThread(StartScript)