HUDClient

addTextComponentFormattedInteger

ADD_TEXT_COMPONENT_FORMATTED_INTEGER0x0E4C749FF9DE9CC4

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

SignatureJavaScript
addTextComponentFormattedInteger(value: number, commaSeparated: boolean): void
SignatureLua
addTextComponentFormattedInteger(value: integer, commaSeparated: boolean)

Usage

JavaScript
addTextComponentFormattedInteger(value, commaSeparated);
Lua
addTextComponentFormattedInteger(value, commaSeparated)

Parameters

ParameterTypeJavaScriptLua
valueintnumberinteger
commaSeparatedBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
HUD HUD
In the game
void ADD_TEXT_COMPONENT_FORMATTED_INTEGER(int value, BOOL commaSeparated)
Hash
0x0E4C749FF9DE9CC4

Open in the interactive natives reference