#HOTBAR

1 messages · Page 1 of 1 (latest)

dusky belfry
#

Make Sure you put correct event in your ox_inventory items.lua for phone like this.

    ['phone'] = {
        label = 'Phone',
        weight = 190,
        stack = false,
        consume = 0,
        client = {
            add = function(total)
                if total > 0 then
                    pcall(function() return exports.npwd:setPhoneDisabled(false) end)
                end
            end,

            remove = function(total)
                if total < 1 then
                    pcall(function() return exports.npwd:setPhoneDisabled(true) end)
                end
            end
        }
    },

I use different phone and function.