getTimeAsString
GET_TIME_AS_STRING0x9E23B1777A927DADThe 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.
getTimeAsString(time: number): stringgetTimeAsString(time: integer): stringUsage
JavaScript
const text = getTimeAsString(time);Lua
local text = getTimeAsString(time)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
time | int | number | integer |
Returns
string JavaScript string, Lua stringReference
- Namespace
- Network NETWORK
- In the game
const char* GET_TIME_AS_STRING(int time)- Hash
0x9E23B1777A927DAD- Formerly
_FORMAT_TIME