This commit is contained in:
Cooldude2606
2017-10-16 20:28:49 +01:00
parent 5b407d3d9c
commit 46f0710470

View File

@@ -47,7 +47,7 @@ function server.emit(code, callback)
end
--adds a call back that can be ran with a command
function server.add_callback(callback,uuid)
if type(command) == 'function' then
if type(callback) == 'function' then
local args = args or {}
local uuid = uuid or server.get_uuid(callback)
debug_write({'callback','ADD'},uuid)