HUDClient

endTextCommandDisplayText

END_TEXT_COMMAND_DISPLAY_TEXT0xCD015E5BB0D96A57

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

SignatureJavaScript
endTextCommandDisplayText(x: number, y: number, p2: number): void
SignatureLua
endTextCommandDisplayText(x: number, y: number, p2: integer)

Usage

JavaScript
endTextCommandDisplayText(x, y, p2);
Lua
endTextCommandDisplayText(x, y, p2)

Parameters

ParameterTypeJavaScriptLua
xfloatnumbernumber
yfloatnumbernumber
p2intnumberinteger

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.

After applying the properties to the text (See HUD::SET_TEXT_), this will draw the text in the applied position. Also 0.0f < x, y < 1.0f, percentage of the axis.

Reference

Namespace
HUD HUD
In the game
void END_TEXT_COMMAND_DISPLAY_TEXT(float x, float y, int p2)
Hash
0xCD015E5BB0D96A57
Formerly
_DRAW_TEXT

Open in the interactive natives reference