InvAction command
Command defined in core/commands/sh_invaction.lua
Registers the /InvAction command, which runs destroy, drop, use or a custom function on an item instance in
the caller's inventory and is what the inventory menu sends.
Summary
Methods
OnRun(player, arguments)shared
Runs an action on an item in the caller's inventory; arguments are the action, item ID and instance ID.
Methods
COMMAND:OnRun(player, arguments)
shared gamemodes/catwork/gamemode/core/commands/sh_invaction.lua:16Runs an action on an item in the caller's inventory; arguments are the action, item ID and instance ID.
The action is destroy, drop, use or one of the item's customFunctions; any other action fires
PlayerUseUnknownItemFunction.
Parameters
- player
- arguments