View Single Post
psychonic

BAFFLED
Join Date: May 2008
Old 01-17-2018 , 19:53   Re: [SNIPPET] Detecting button presses (and releases)
Reply With Quote #16

Quote:
Originally Posted by Spirit_12 View Post
Is there a way to hook other buttons that are not on the list? To be specific, I'm trying to hook lastinv or slot1 key presses.
Those are client commands that do not get transmitted to the server (as commands nor buttons). You'd have to watch the weapon parameter in OnPlayerRunCommand for having a value (and then take as-is or infer the command from there).
psychonic is offline