HUDClient

addTextComponentFloat

ADD_TEXT_COMPONENT_FLOAT0xE7DCB5B874BCD96E

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

SignatureJavaScript
addTextComponentFloat(value: number, decimalPlaces: number): void
SignatureLua
addTextComponentFloat(value: number, decimalPlaces: integer)

Usage

JavaScript
addTextComponentFloat(value, decimalPlaces);
Lua
addTextComponentFloat(value, decimalPlaces)

Parameters

ParameterTypeJavaScriptLua
valuefloatnumbernumber
decimalPlacesintnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
HUD HUD
In the game
void ADD_TEXT_COMPONENT_FLOAT(float value, int decimalPlaces)
Hash
0xE7DCB5B874BCD96E

Open in the interactive natives reference