DropWeapon command
Command defined in core/commands/sh_dropweapon.lua
Registers the /DropWeapon command (alias /Drop), which drops the caller's active weapon as an item entity where
they are looking.
Summary
Methods
OnRun(player, arguments)shared
Drops the caller's active weapon as an item where they are looking; takes no arguments.
Methods
COMMAND:OnRun(player, arguments)
shared gamemodes/catwork/gamemode/core/commands/sh_dropweapon.lua:13Drops the caller's active weapon as an item where they are looking; takes no arguments.
Runs the PlayerCanDropWeapon hook first and PlayerDropWeapon after.
Parameters
- player
- arguments