ControlsClient

getDisabledControlNormal

GET_DISABLED_CONTROL_NORMAL0x11E65974A982637C

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

SignatureJavaScript
getDisabledControlNormal(control: number, action: number): number
SignatureLua
getDisabledControlNormal(control: integer, action: integer): number

Usage

JavaScript
const value = getDisabledControlNormal(control, action);
Lua
local value = getDisabledControlNormal(control, action)

Parameters

ParameterTypeJavaScriptLuaDescription
controlintnumberintegersee isControlEnabled
actionintnumberinteger

Returns

float JavaScript number, Lua number

On LS:MP

ℹ
Input while LS:MP has the focus

While the LS:MP menu, the console or a focused browser holds the keyboard and mouse, this native does not reach the game: it returns 0.0, or 0.5, the centre of the screen, for the two cursor axes.

Reference

Namespace
Controls PAD
In the game
float GET_DISABLED_CONTROL_NORMAL(int control, int action)
Hash
0x11E65974A982637C

Open in the interactive natives reference