HUDClient

codeWantsScriptToTakeControl

CODE_WANTS_SCRIPT_TO_TAKE_CONTROL0x66E7CB63C97B7D20

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

SignatureJavaScript
codeWantsScriptToTakeControl(): boolean
SignatureLua
codeWantsScriptToTakeControl(): boolean

Usage

JavaScript
const result = codeWantsScriptToTakeControl();
Lua
local result = codeWantsScriptToTakeControl()

Parameters

None.

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
HUD HUD
In the game
BOOL CODE_WANTS_SCRIPT_TO_TAKE_CONTROL()
Hash
0x66E7CB63C97B7D20

Open in the interactive natives reference