HUDClient

setTextCentre

SET_TEXT_CENTRE0xC02F4DBFB51D988B

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

SignatureJavaScript
setTextCentre(align: boolean): void
SignatureLua
setTextCentre(align: boolean)

Usage

JavaScript
setTextCentre(align);
Lua
setTextCentre(align)

Parameters

ParameterTypeJavaScriptLua
alignBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
HUD HUD
In the game
void SET_TEXT_CENTRE(BOOL align)
Hash
0xC02F4DBFB51D988B

Open in the interactive natives reference