lib.addCommand('giveall', {
help = 'Gives all players a item of your choice',
params = {},
restricted = 'group.admin'
}, true, function(args)
local item = args[1]
local amount = tonumber(args[2])
local players = GetPlayers()
for _, playerId in ipairs(players) do
exports.ox_inventory:AddItem(tonumber(playerId), item, amount)
end
end)
ive got this but its not giving anything
