Client

On Remove Item:

RegisterNetEvent('ak47_inventory:onRemoveItem', function(item, amount, slot, has)
    print(item, amount, slot, has)
    -- item name
    -- number of item removed
    -- slot number
    -- how many item player has
end)

On Add Item:

RegisterNetEvent('ak47_inventory:onAddItem', function(item, amount, slot, has)
    print(item, amount, slot, has)
    -- item name
    -- number of item added
    -- slot number
    -- how many item player has
end)

On Equip Weapon:

RegisterNetEvent('ak47_inventory:onEquipWeapon', function(currentWeapon)
    print(json.encode(currentWeapon))
end)

On UnEquip Weapon:

RegisterNetEvent('ak47_inventory:onUnEquipWeapon', function(currentWeapon)
    print(json.encode(currentWeapon))
end)

Last updated