mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-19 14:56:02 +01:00
fix createCallback complaining on client side
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
--- end)
|
||||
--- ```
|
||||
function createCallback(callbackName, funct)
|
||||
if isServer() then
|
||||
if isStarted(OXLibExport) then
|
||||
lib.callback.register(callbackName, funct)
|
||||
else
|
||||
@@ -31,6 +32,7 @@ function createCallback(callbackName, funct)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
--- Triggers a server callback and returns the result.
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user