NetworkClient

getTimeAsString

GET_TIME_AS_STRING0x9E23B1777A927DAD

The GTA V native GET_TIME_AS_STRING of the NETWORK namespace, as LS:MP client scripts call it: the global function getTimeAsString, in JavaScript and in Lua.

SignatureJavaScript
getTimeAsString(time: number): string
SignatureLua
getTimeAsString(time: integer): string

Usage

JavaScript
const text = getTimeAsString(time);
Lua
local text = getTimeAsString(time)

Parameters

ParameterTypeJavaScriptLua
timeintnumberinteger

Returns

string JavaScript string, Lua string

Reference

Namespace
Network NETWORK
In the game
const char* GET_TIME_AS_STRING(int time)
Hash
0x9E23B1777A927DAD
Formerly
_FORMAT_TIME

Open in the interactive natives reference