HUDClient

setPlayerIsInDirectorMode

SET_PLAYER_IS_IN_DIRECTOR_MODE0x808519373FD336A3

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

SignatureJavaScript
setPlayerIsInDirectorMode(toggle: boolean): void
SignatureLua
setPlayerIsInDirectorMode(toggle: boolean)

Usage

JavaScript
setPlayerIsInDirectorMode(toggle);
Lua
setPlayerIsInDirectorMode(toggle)

Parameters

ParameterTypeJavaScriptLua
toggleBOOLbooleanboolean

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.

If toggle is true, hides special ability bar / character name in the pause menu
If toggle is false, shows special ability bar / character name in the pause menu

Reference

Namespace
HUD HUD
In the game
void SET_PLAYER_IS_IN_DIRECTOR_MODE(BOOL toggle)
Hash
0x808519373FD336A3
Formerly
_SET_DIRECTOR_MODE _SET_PLAYER_IS_IN_DIRECTOR_MODE

Open in the interactive natives reference