Keys::isUp
Function to check if specific key is released.
Syntax
mp.keys.isUp(keyCode);
Required Argument
- keycode - hexadecimal code of key.
Return Value
- Boolean -
trueif the key specified is released, otherwisefalse.
Example
An interval that runs every 100ms and outputs the state of the key bound. (F2)
Client-Side
setInterval(() => {
mp.keys.isUp(0x71)
? mp.gui.chat.push("false")
: mp.gui.chat.push("true");
}, 100);