HUDClient

addTextComponentSubstringTime

ADD_TEXT_COMPONENT_SUBSTRING_TIME0x1115F16B8AB9E8BF

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

SignatureJavaScript
addTextComponentSubstringTime(timestamp: number, flags: number): void
SignatureLua
addTextComponentSubstringTime(timestamp: integer, flags: integer)

Usage

JavaScript
addTextComponentSubstringTime(timestamp, flags);
Lua
addTextComponentSubstringTime(timestamp, flags)

Parameters

ParameterTypeJavaScriptLua
timestampintnumberinteger
flagsintnumberinteger

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.

Adds a timer (e.g. "00:00:00:000"). The appearance of the timer depends on the flags, which needs more research.

Reference

Namespace
HUD HUD
In the game
void ADD_TEXT_COMPONENT_SUBSTRING_TIME(int timestamp, int flags)
Hash
0x1115F16B8AB9E8BF

Open in the interactive natives reference