Common Issues

Common issues and how to resolve them:

Double "Search Dumpster" Target

Remove this bit of code from the modules/inventory/client.lua in ox_inventory. Should be around line 107-112

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
})

This is what the original code looks like so you can find it easier:

if shared.target then
    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
    })

    exports.ox_target:addGlobalVehicle({
        icon = 'fas fa-truck-ramp-box',
        label = locale('open_label', locale('storage')),
        distance = 1.5,
        canInteract = Inventory.CanAccessTrunk,
        onSelect = function(data)
            return Inventory.OpenTrunk(data.entity)
        end
    })
end

Last updated