beginTextCommandPrint
BEGIN_TEXT_COMMAND_PRINT0xB87A37EEB7FAA67DThe 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.
beginTextCommandPrint(GxtEntry: string): voidbeginTextCommandPrint(GxtEntry: string)Usage
JavaScript
beginTextCommandPrint(GxtEntry);Lua
beginTextCommandPrint(GxtEntry)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
GxtEntry | string | string | string |
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