This commit is contained in:
Nordi98 2025-06-11 16:38:57 +02:00
parent 3ca62609e3
commit 8703f26ab8
52 changed files with 18756 additions and 6 deletions

View file

@ -0,0 +1,23 @@
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)