Adding category to the items so that the outputs are better and more accurate
Much more than it is
Here's a real-life example
for k, v in pairs(QBCore.Shared.Items) do
if v["category"] == "ammoitems" then
slots = slots + 1
table.insert(tempTable, v["name"])
end
end
print(json.encode(tempTable))
Checklist
[x] I have personally loaded this code into an updated qbcore project and checked all of its functionality.
Description
Adding category to the items so that the outputs are better and more accurate Much more than it is Here's a real-life example
Checklist