Disable ox_inventory Search

To disable the default ox_inventory dumpster search do the following:

  1. Navigate to ox_inventory/modules/inventory/client.lua

  2. 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
    })
  3. 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
    -- })
    1. Alternatively you can just delete these lines as well, if you prefer.

Last updated