GraphicsClient

beginTextCommandScaleformString

BEGIN_TEXT_COMMAND_SCALEFORM_STRING0x80338406F3475E55

The GTA V native BEGIN_TEXT_COMMAND_SCALEFORM_STRING of the GRAPHICS namespace, as LS:MP client scripts call it: the global function beginTextCommandScaleformString, in JavaScript and in Lua.

SignatureJavaScript
beginTextCommandScaleformString(componentType: string): void
SignatureLua
beginTextCommandScaleformString(componentType: string)

Usage

JavaScript
beginTextCommandScaleformString(componentType);
Lua
beginTextCommandScaleformString(componentType)

Parameters

ParameterTypeJavaScriptLua
componentTypestringstringstring

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.

Called prior to adding a text component to the UI. After doing so, endTextCommandScaleformString is called.

Examples:

beginTextCommandScaleformString("NUMBER");
addTextComponentInteger(absi(a_1));
endTextCommandScaleformString();

beginTextCommandScaleformString("STRING");
addTextComponentSubstringPlayerName(a_2);
endTextCommandScaleformString();

beginTextCommandScaleformString("STRTNM2");
addTextComponentSubstringTextLabelHashKey(v_3);
addTextComponentSubstringTextLabelHashKey(v_4);
endTextCommandScaleformString();

beginTextCommandScaleformString("STRTNM1");
addTextComponentSubstringTextLabelHashKey(v_3);
endTextCommandScaleformString();

Reference

Namespace
Graphics GRAPHICS
In the game
void BEGIN_TEXT_COMMAND_SCALEFORM_STRING(const char* componentType)
Hash
0x80338406F3475E55
Formerly
_BEGIN_TEXT_COMPONENT

Open in the interactive natives reference