getOnlineVersion
GET_ONLINE_VERSION0xFCA9373EF340AC0AThe 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.
getOnlineVersion(): stringgetOnlineVersion(): stringUsage
JavaScript
const text = getOnlineVersion();Lua
local text = getOnlineVersion()Parameters
None.
Returns
string JavaScript string, Lua stringNotes
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