setTextJustification
SET_TEXT_JUSTIFICATION0x4E096588B13FFECAThe 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.
setTextJustification(justifyType: number): voidsetTextJustification(justifyType: integer)Usage
JavaScript
setTextJustification(justifyType);Lua
setTextJustification(justifyType)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
justifyType | int | number | integer |
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