HUDClient

takeControlOfFrontend

TAKE_CONTROL_OF_FRONTEND0xEC9264727EEC0F28

The GTA V native TAKE_CONTROL_OF_FRONTEND of the HUD namespace, as LS:MP client scripts call it: the global function takeControlOfFrontend, in JavaScript and in Lua.

SignatureJavaScript
takeControlOfFrontend(): void
SignatureLua
takeControlOfFrontend()

Usage

JavaScript
takeControlOfFrontend();
Lua
takeControlOfFrontend()

Parameters

None.

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Disables frontend (works in custom frontends, not sure about regular pause menu) navigation keys on keyboard. Not sure about controller. Does not disable mouse controls. No need to call this every tick.

To enable the keys again, use 0x14621BB1DF14E2B2.

Reference

Namespace
HUD HUD
In the game
void TAKE_CONTROL_OF_FRONTEND()
Hash
0xEC9264727EEC0F28

Open in the interactive natives reference