setTextWrap
SET_TEXT_WRAP0x63145D9C883A1A70The GTA V native SET_TEXT_WRAP of the HUD namespace, as LS:MP client scripts call it: the global function setTextWrap, in JavaScript and in Lua.
setTextWrap(start: number, end: number): voidsetTextWrap(start: number, end: number)Usage
JavaScript
setTextWrap(start, end);Lua
setTextWrap(start, end_)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
start | float | number | number |
end | float | number | number |
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.
It sets the text in a specified box and wraps the text if it exceeds the boundries. Both values are for X axis. Useful when positioning text set to center or aligned to the right.
start - left boundry on screen position (0.0 - 1.0)
end - right boundry on screen position (0.0 - 1.0)
Reference
- Namespace
- HUD HUD
- In the game
void SET_TEXT_WRAP(float start, float end)- Hash
0x63145D9C883A1A70