ControlsClient

isUsingCursor

IS_USING_CURSOR0x13337B38DB572509

The GTA V native IS_USING_CURSOR of the PAD namespace, as LS:MP client scripts call it: the global function isUsingCursor, in JavaScript and in Lua.

SignatureJavaScript
isUsingCursor(control: number): boolean
SignatureLua
isUsingCursor(control: integer): boolean

Usage

JavaScript
const result = isUsingCursor(control);
Lua
local result = isUsingCursor(control)

Parameters

ParameterTypeJavaScriptLuaDescription
controlintnumberintegersee isControlEnabled

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Controls PAD
In the game
BOOL IS_USING_CURSOR(int control)
Hash
0x13337B38DB572509
Formerly
_IS_INPUT_JUST_DISABLED _IS_USING_KEYBOARD_2

Open in the interactive natives reference