Class Keybind
Namespace: Utils_1
Module: alt-client
Package: @altmp/altv-types
Syntax
class Keybind
Constructors
| Improve this Doc View SourceKeybind(KeyCode | KeyCode[], () => void, "keydown" | "keyup")
Declaration
Keybind(keyCode: KeyCode | KeyCode[], callback: () => void, eventType?: "keydown" | "keyup"): Keybind
Parameters
Type | Name | Description |
---|---|---|
KeyCode | KeyCode[] | keyCode | |
() => void | callback | |
"keydown" | "keyup" | eventType |
Methods
| Improve this Doc View Sourcedestroy()
Declaration
public destroy(): void