refactor(init): throw an error if ox_lib is not started

This commit is contained in:
Linden committed 2022-03-10 15:54:13 +11:00
1 parent 55c32d91f4
commit 3c7cd3dc6b
3 files changed
+201 -199

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
local callback = {}
---@param name string
---@param callback function
---@param cb function
--- Registers an event handler and callback function to respond to client requests.
function callback.register(name, cb)
name = ('__cb_%s'):format(name)