mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 07:26:02 +01:00
fix(callback): incorrect args in __call method
This commit is contained in:
@@ -43,7 +43,7 @@ function callback.await(event, delay, ...)
|
||||
end
|
||||
|
||||
return setmetatable(callback, {
|
||||
__call = function(event, delay, cb, ...)
|
||||
__call = function(self, event, delay, cb, ...)
|
||||
if callbackTimer(event, delay) then
|
||||
event = RegisterNetEvent(triggerCallback(event, ...), function(response)
|
||||
cb(table.unpack(response))
|
||||
|
||||
Reference in New Issue
Block a user