Paid Resources🍔 filo_consumables
Exports
Giving consumables from other scripts.
These work with or without the ox_inventory bridge. Names can be the spawn name or the label.
Server
exports.filo_consumables:GiveConsumable(source, 'mac_n_cheese', 1)
exports.filo_consumables:RemoveConsumable(source, 'mac_n_cheese', 1)
exports.filo_consumables:GetConsumableCount(source, 'mac_n_cheese')Server and client
exports.filo_consumables:GetMetadata('mac_n_cheese') -- metadata to give filo_consumable with
exports.filo_consumables:IsConsumable('Mac n Cheese') -- true / false
exports.filo_consumables:GetConsumable('mac_n_cheese') -- full definition
exports.filo_consumables:GetConsumables() -- [name] = definition
exports.filo_consumables:ResolveItem('mac_n_cheese') -- 'filo_consumable', metadataClient
exports.filo_consumables:ClearEffects() -- for example on reviveWith the ox_inventory bridge
exports.ox_inventory:AddItem(source, 'mac_n_cheese', 1)
exports.ox_inventory:AddItem(source, 'Mac n Cheese', 1)
exports.ox_inventory:RemoveItem(source, 'mac_n_cheese', 1)
exports.ox_inventory:GetItemCount(source, 'mac_n_cheese')
exports.ox_inventory:Search(source, 'count', { 'water', 'mac_n_cheese' })/giveitem 1 mac_n_cheese 2, /removeitem and /setitem work too.