forked from Simnation/Main
ed
This commit is contained in:
parent
7dda7bb446
commit
159fe87e92
49 changed files with 4 additions and 18605 deletions
File diff suppressed because it is too large
Load diff
|
@ -1,23 +0,0 @@
|
|||
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)
|
Loading…
Add table
Add a link
Reference in a new issue