Server
Last updated
Events triggered when items are manipulated in a player's inventory on the server side.
Triggered on the server when a player successfully removes an item from their inventory.
AddEventHandler('ak47_inventory:onRemoveItem', function(source, item, amount, slot, has)
-- Your code here
end)Parameters:
source: number
The server ID of the player
item: string
The name of the item removed
amount: number
The quantity of the item that was removed
slot: number
The slot index the item was removed from
has: number
The total amount of this item the player still has after removal
Triggered on the server when a player successfully receives an item into their inventory.
Parameters:
source: number
The server ID of the player
item: string
The name of the item added
amount: number
The quantity of the item that was added
slot: number
The slot index the item was added to
has: number
The total amount of this item the player now has
Last updated
AddEventHandler('ak47_inventory:onAddItem', function(source, item, amount, slot, has)
-- Your code here
end)