mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-12-05 16:44:45 +00:00
fix createCallback complaining on client side
This commit is contained in:
1 parent
c947993e9e
commit
daa9dca142
1 file changed
+2
@@ -13,6 +13,7 @@
|
||||
--- end)
|
||||
--- ```
|
||||
function createCallback(callbackName, funct)
|
||||
if isServer() then
|
||||
if isStarted(OXLibExport) then
|
||||
lib.callback.register(callbackName, funct)
|
||||
else
|
||||
@@ -30,6 +31,7 @@ function createCallback(callbackName, funct)
|
||||
print("^6Bridge^7: ^1ERROR^7: ^3Can't find any script to register callback with", callbackName)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
--- Triggers a server callback and returns the result.
|
||||
|
||||
Reference in new issue
Block a user