HUDClient

beginTextCommandPrint

BEGIN_TEXT_COMMAND_PRINT0xB87A37EEB7FAA67D

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

SignatureJavaScript
beginTextCommandPrint(GxtEntry: string): void
SignatureLua
beginTextCommandPrint(GxtEntry: string)

Usage

JavaScript
beginTextCommandPrint(GxtEntry);
Lua
beginTextCommandPrint(GxtEntry)

Parameters

ParameterTypeJavaScriptLua
GxtEntrystringstringstring

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.

void ShowSubtitle(const char *text)
{
  beginTextCommandPrint("STRING");
 addTextComponentSubstringPlayerName(text);
   endTextCommandPrint(2000, true);
}

Reference

Namespace
HUD HUD
In the game
void BEGIN_TEXT_COMMAND_PRINT(const char* GxtEntry)
Hash
0xB87A37EEB7FAA67D
Formerly
_SET_TEXT_ENTRY_2

Open in the interactive natives reference