Binds a callback to a specific key or multiple keys.
// two keycodes (similar to two separate keybinds with the same handler) const bind = new alt.Utils.Keybind([KeyCode.G, KeyCode.H], () => { alt.log('pressed G or H') })
Single or multiple keys to bind.
Function to call.
On which event callback should be called. Defaults to "keyup".
Binds a callback to a specific key or multiple keys.
// two keycodes (similar to two separate keybinds with the same handler) const bind = new alt.Utils.Keybind([KeyCode.G, KeyCode.H], () => { alt.log('pressed G or H') })