Sends valid item stacks to an online player. Counts above 64 are split into stacks of at most 64.
| Name | Type | Description |
|---|---|---|
itemId | number | The item ID to give. |
count | number, optional | The amount of the item. Defaults to 1. |
Nothing.
command('kit', { op = true }, function(sender)
if not sender.isPlayer then return true end
sender:give(278, 1) -- diamond pickaxe
sender:give(1, 64) -- 64 stone
sender:send("Here is your kit.")
return true
end)