qbcore-framework / qb-core

FiveM RP Framework Core :muscle:
GNU General Public License v3.0
582 stars 962 forks source link

Adding category to the items #1066

Closed bicatcho11 closed 8 months ago

bicatcho11 commented 9 months ago

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


        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