mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-11-18 19:18:33 +00:00
hopefully fix esx loading
This commit is contained in:
1 parent
2da2c56705
commit
2be706a860
6 files changed
+25
-17
No files matched your search
@@ -14,6 +14,7 @@
|
||||
--- ```
|
||||
function createCallback(callbackName, funct)
|
||||
if isServer() then
|
||||
debugPrint("^6Bridge^7: ^3Registering callback^7:", callbackName)
|
||||
if isStarted(OXLibExport) then
|
||||
lib.callback.register(callbackName, funct)
|
||||
else
|
||||
@@ -49,6 +50,7 @@ end
|
||||
--- ```
|
||||
function triggerCallback(callbackName, ...)
|
||||
local result = nil
|
||||
debugPrint("^6Bridge^7: ^3Triggering callback^7:", callbackName)
|
||||
if isStarted(OXLibExport) then
|
||||
result = lib.callback.await(callbackName, false, ...)
|
||||
elseif isStarted(QBExport) then
|
||||
|
||||
Reference in new issue
Block a user