GM:PlayerBindPress
Description
Runs when a bind has been pressed. Allows to block commands.
By using the "alias" console command, this hook can be effectively circumvented. To prevent this use input.TranslateAlias.
To stop the user from using +attack
, +left
and any other movement commands of the sort, please look into using GM:StartCommand instead.
Arguments
Returns
Example
Prevents players from using flashlight.