Registers the /DropWeapon command (alias /Drop), which drops the caller's active weapon as an item entity where they are looking.

Summary

Methods

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:13

Drops 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

Defined in