Skip to content

Commit

Permalink
fix(callback): incorrect args in __call method
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Mar 3, 2022
1 parent 2a14391 commit 5c157db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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.'

Expand Down
2 changes: 1 addition & 1 deletion imports/callback/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 5c157db

Please sign in to comment.