Files
overextended.github.io/docs/ox_inventory/Functions/Server/Inventory/CustomDrop.md
T
2022-05-15 22:27:07 +10:00

613 B

Drops can be created from other resources, containing a variety of items and utilising a custom label (instead of 'Drop 32648').

-- prefix: string
-- items: table
    -- name: string
    -- count: number
    -- metadata: table (optional)
-- coords: vector3
-- slots: number (optional)
-- maxWeight: number (optional)
-- instance: string | number (optional)
exports.ox_inventory:CustomDrop(prefix, items, coords, slots, maxWeight, instance)
exports.ox_inventory:CustomDrop('Carcass', {
    {'meat', 5, { grade = 2, type = 'deer' }},
    {'hide', 5, { grade = 2, type = 'deer' }}
}, coords)