HUDClient

setTextJustification

SET_TEXT_JUSTIFICATION0x4E096588B13FFECA

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

SignatureJavaScript
setTextJustification(justifyType: number): void
SignatureLua
setTextJustification(justifyType: integer)

Usage

JavaScript
setTextJustification(justifyType);
Lua
setTextJustification(justifyType)

Parameters

ParameterTypeJavaScriptLua
justifyTypeintnumberinteger

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.

Types -
0: Center-Justify
1: Left-Justify
2: Right-Justify

Right-Justify requires setTextWrap, otherwise it will draw to the far right of the screen

Reference

Namespace
HUD HUD
In the game
void SET_TEXT_JUSTIFICATION(int justifyType)
Hash
0x4E096588B13FFECA

Open in the interactive natives reference