NetworkClient

getOnlineVersion

GET_ONLINE_VERSION0xFCA9373EF340AC0A

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

SignatureJavaScript
getOnlineVersion(): string
SignatureLua
getOnlineVersion(): string

Usage

JavaScript
const text = getOnlineVersion();
Lua
local text = getOnlineVersion()

Parameters

None.

Returns

string JavaScript string, Lua string

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Online version is defined here: update\update.rpf\common\data\version.txt

Example:

[ONLINE_VERSION_NUMBER]
1.33

getOnlineVersion() will return "1.33"

Reference

Namespace
Network NETWORK
In the game
const char* GET_ONLINE_VERSION()
Hash
0xFCA9373EF340AC0A
Formerly
_GET_GAME_VERSION _GET_ONLINE_VERSION

Open in the interactive natives reference