NetworkClientBlocked

convertPosixTime

CONVERT_POSIX_TIME0xAC97AF97FA68E5D5

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

SignatureJavaScript
convertPosixTime(posixTime: number, timeStructure: null): void
SignatureLua
convertPosixTime(posixTime: integer, timeStructure: nil)
✕
Blocked for scripts: Raw memory and structures

This native reads or fills a memory structure a script has no way to provide, so it is not callable. For entity lists, use lsmp.getGamePool. For JSON, use lsmp.json.

Calling it raises disabled by LSMP script policy, which try / catch (JavaScript) or pcall (Lua) can intercept. Nothing reaches the game. See Blocked natives.

Reference

Namespace
Network NETWORK
In the game
void CONVERT_POSIX_TIME(int posixTime, Any* timeStructure)
Hash
0xAC97AF97FA68E5D5
Formerly
_GET_DATE_AND_TIME_FROM_UNIX_EPOCH

Open in the interactive natives reference