endTextCommandPrint
END_TEXT_COMMAND_PRINT0x9D77056A530643F6The GTA V native END_TEXT_COMMAND_PRINT of the HUD namespace, as LS:MP client scripts call it: the global function endTextCommandPrint, in JavaScript and in Lua.
endTextCommandPrint(duration: number, drawImmediately: boolean): voidendTextCommandPrint(duration: integer, drawImmediately: boolean)Usage
JavaScript
endTextCommandPrint(duration, drawImmediately);Lua
endTextCommandPrint(duration, drawImmediately)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
duration | int | number | integer |
drawImmediately | BOOL | boolean | boolean |
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.
Draws the subtitle at middle center of the screen.
int duration = time in milliseconds to show text on screen before disappearing
drawImmediately = If true, the text will be drawn immediately, if false, the text will be drawn after the previous subtitle has finished
Reference
- Namespace
- HUD HUD
- In the game
void END_TEXT_COMMAND_PRINT(int duration, BOOL drawImmediately)- Hash
0x9D77056A530643F6- Formerly
_DRAW_SUBTITLE_TIMED