1
0
2025-05-06 12:21:14 -04:00

550 B

Function: AddItem(Spawn, ItemID, Quantity)

Description: Add an Item to a Spawn/Player with the defined Item ID and Quantity.

Parameters:

  • Spawn: Spawn - The spawn or entity involved.
  • ItemID: UInt32 - Item id to assign to Spawn.
  • Quantity: UInt32 - Quantity of item to assign to Spawn (default 1).

Returns: Boolean: True if successfully assigned the item, otherwise return's False.

Example:

-- Example usage: Assigns Spawn the ItemID 1696 (a fishman scale amulet) with Quantity of 1.
AddItem(Spawn, 1696)