You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The variable to remove evidence is incorrect and therefore does not work.
Framework
All
Resource version
v2.37.2
To Reproduce
Line 533 in ox_inventory/server.lua
lib.addCommand('clearevidence', {
help = 'Clears a police evidence locker with the given id',
params = {
{ name = 'locker', type = 'number', help = 'The locker id to clear' },
},
}, function(source, args)
if not server.isPlayerBoss then return end
local inventory = Inventory(source)
local group, grade = server.hasGroup(inventory, shared.police)
local hasPermission = group and server.isPlayerBoss(source, group, grade)
if hasPermission then
MySQL.query('DELETE FROM ox_inventory WHERE name = ?', {('evidence-%s'):format(args.evidence)}) -- LINE 533 CHANGE args.evidence for args.locker
end
end)
The text was updated successfully, but these errors were encountered:
Describe the bug
The variable to remove evidence is incorrect and therefore does not work.
Framework
All
Resource version
v2.37.2
To Reproduce
Line 533 in ox_inventory/server.lua
The text was updated successfully, but these errors were encountered: