Disable ox_inventory Search
To disable the default ox_inventory dumpster search do the following:
Navigate to
ox_inventory/modules/inventory/client.lua
Find the line of code that looks like:
exports.ox_target:addModel(Inventory.Dumpsters, { icon = 'fas fa-dumpster', label = locale('search_dumpster'), onSelect = function(data) return Inventory.OpenDumpster(data.entity) end, distance = 2 })
Comment out all of these lines of code so that they look like this:
-- exports.ox_target:addModel(Inventory.Dumpsters, { -- icon = 'fas fa-dumpster', -- label = locale('search_dumpster'), -- onSelect = function(data) return Inventory.OpenDumpster(data.entity) end, -- distance = 2 -- })
Alternatively you can just delete these lines as well, if you prefer.
Last updated