HUDClient

beginTextCommandGetScreenWidthOfDisplayText

BEGIN_TEXT_COMMAND_GET_SCREEN_WIDTH_OF_DISPLAY_TEXT0x54CE8AC98E120CAB

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

SignatureJavaScript
beginTextCommandGetScreenWidthOfDisplayText(text: string): void
SignatureLua
beginTextCommandGetScreenWidthOfDisplayText(text: string)

Usage

JavaScript
beginTextCommandGetScreenWidthOfDisplayText(text);
Lua
beginTextCommandGetScreenWidthOfDisplayText(text)

Parameters

ParameterTypeJavaScriptLua
textstringstringstring

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
HUD HUD
In the game
void BEGIN_TEXT_COMMAND_GET_SCREEN_WIDTH_OF_DISPLAY_TEXT(const char* text)
Hash
0x54CE8AC98E120CAB
Formerly
_SET_TEXT_ENTRY_FOR_WIDTH _BEGIN_TEXT_COMMAND_WIDTH _BEGIN_TEXT_COMMAND_GET_WIDTH

Open in the interactive natives reference