Skip to content

Commit

Permalink
fix(bridge/qb): maintaining param order of the callback (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
Manason authored Apr 8, 2024
1 parent b42ce31 commit a417d57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bridge/qb/server/commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ function commands.Add(name, help, arguments, argsrequired, callback, permission)
end
lib.addCommand(name, properties, function(source, args, raw)
local _args = {}
for _, v in pairs(args) do
_args[#_args + 1] = v
for i = 1, #arguments do
_args[i] = args[arguments[i].name]
end
callback(source, _args, raw)
end)
Expand Down

0 comments on commit a417d57

Please sign in to comment.