CharGiveItem command
Command defined in core/commands/sh_chargiveitem.lua
Registers the superadmin command /CharGiveItem (aliases /PlyGiveItem, /GiveItem), which gives the target
character one to ten instances of an item and requires the G flag.
Summary
Methods
OnRun(player, arguments)shared
Gives the target character an item; arguments are the character name, the item ID and an optional amount.
Methods
COMMAND:OnRun(player, arguments)
shared gamemodes/catwork/gamemode/core/commands/sh_chargiveitem.lua:15Gives the target character an item; arguments are the character name, the item ID and an optional amount.
Requires the G flag; the amount must be between 1 and 10 and defaults to 1. Both players are notified.
Parameters
- player
- arguments