mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-16 22:46:03 +01:00
fix(callback): incorrect args in __call method
This commit is contained in:
@@ -23,7 +23,7 @@ game 'gta5'
|
||||
--[[ Resource Information ]]--
|
||||
name 'ox_lib'
|
||||
author 'Linden'
|
||||
version '2.0.0'
|
||||
version '2.0.1'
|
||||
repository 'https://github.com/overextended/ox_lib'
|
||||
description 'A library of shared functions to utilise in other resources.'
|
||||
|
||||
|
||||
@@ -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