hopefully fix esx loading

This commit is contained in:
Jim Shield authored and GitHub committed 2025-04-08 17:47:12 +01:00
1 parent 2da2c56705
commit 2be706a860
6 files changed
+25 -17

No files matched your search

+2
View File
@@ -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