HUDClientChecked by LS:MP

requestAdditionalText

REQUEST_ADDITIONAL_TEXT0x71A78003C8E71424

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

SignatureJavaScript
requestAdditionalText(gxt: string, slot: number): void
SignatureLua
requestAdditionalText(gxt: string, slot: integer)

Usage

JavaScript
requestAdditionalText(gxt, slot);
Lua
requestAdditionalText(gxt, slot)

Parameters

ParameterTypeJavaScriptLua
gxtstringstringstring
slotintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

On LS:MP

ℹ
Checked by LS:MP

slot must be between 0 and 21; gxt is required. Otherwise the call is ignored: nothing reaches the game, and no error is raised.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Request a gxt into the passed slot.

Reference

Namespace
HUD HUD
In the game
void REQUEST_ADDITIONAL_TEXT(const char* gxt, int slot)
Hash
0x71A78003C8E71424

Open in the interactive natives reference