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

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

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)