For the complete documentation index, see llms.txt. This page is also available as Markdown.

Client

📦 Item Events

Events triggered on the client when their local inventory items change.

On Remove Item

Triggered when the local player successfully removes an item from their inventory.

RegisterNetEvent('ak47_inventory:onRemoveItem', function(item, amount, slot, has)
    -- Your code here
end)

Parameters:

  • 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

On Add Item

Triggered when the local player successfully receives an item into their inventory.

Parameters:

  • 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

⚔️ Weapon Events

Events related to weapon interactions on the client side.

On Equip Weapon

Triggered when the local player equips a weapon.

Parameters:

  • currentWeapon: table

    • The item data table of the equipped weapon

On UnEquip Weapon

Triggered when the local player unequips their currently held weapon.

Parameters:

  • currentWeapon: table

    • The item data table of the weapon that was unequipped

👕 Clothing Events

Events triggered when clothing items (masks, helmets, etc.) are added or removed.

On Add Clothing

Triggered when the local player puts on a clothing item.

Parameters:

  • clothingType: string

    • The type of clothing equipped (e.g., 'mask', 'helmet')

  • skinData: table

    • The metadata associated with the clothing item

  • toOtherInventory: boolean

    • true if this clothing item was transferred from another inventory

On Remove Clothing

Triggered when the local player takes off a clothing item.

Parameters:

  • clothingType: string

    • The type of clothing unequipped (e.g., 'mask', 'helmet')

  • toOtherInventory: boolean

    • true if this clothing item was transferred to another inventory

Last updated