From Garry's Mod
Revision as of 14:46, 13 March 2018 by Jvs
Runs when a IN key was released by a player.
This hook is predicted. This means that in singleplayer, it will not be called in the Client realm.
"hi" will be printed to the console when the player releases the IN_USE (E) key.
function GM:KeyRelease( player, key ) if ( key == IN_USE ) then print( "hi" ) end end