ControlsClient

disableControlAction

DISABLE_CONTROL_ACTION0xFE99B66D079CF6BC

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

SignatureJavaScript
disableControlAction(
  control: number,
  action: number,
  disableRelatedActions: boolean
): void
SignatureLua
disableControlAction(
  control: integer,
  action: integer,
  disableRelatedActions: boolean
)

Usage

JavaScript
disableControlAction(control, action, disableRelatedActions);
Lua
disableControlAction(control, action, disableRelatedActions)

Parameters

ParameterTypeJavaScriptLuaDescription
controlintnumberintegersee isControlEnabled
actionintnumberinteger
disableRelatedActionsBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Controls PAD
In the game
void DISABLE_CONTROL_ACTION(int control, int action, BOOL disableRelatedActions)
Hash
0xFE99B66D079CF6BC

Open in the interactive natives reference