forked from Simnation/Main
motel
This commit is contained in:
parent
3e470d3240
commit
c24f9e8d60
45 changed files with 18596 additions and 0 deletions
1289
resources/[housing]/oph3z-motels/client/main.lua
Normal file
1289
resources/[housing]/oph3z-motels/client/main.lua
Normal file
File diff suppressed because it is too large
Load diff
23
resources/[housing]/oph3z-motels/client/utils.lua
Normal file
23
resources/[housing]/oph3z-motels/client/utils.lua
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue