Files
esx_core/client/bootstrap.lua
T
2020-05-11 04:21:10 +02:00

18 lines
228 B
Lua

OnESX = function(cb)
local ESX = nil
Citizen.CreateThread(function()
while ESX == nil do
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
Citizen.Wait(0)
end
cb(ESX)
end)
end