mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-30 09:48:52 +00:00
Added some modules + Experimental SQL auto-migration stuff
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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
|
||||
|
||||
exports('OnESX', OnESX)
|
||||
Reference in New Issue
Block a user