Skip to main content

GameVersionUtils

Utility functions to automatically detect the version a game is running at

Functions

getBuild

GameVersionUtils.getBuild() → string

Gets the game build

getBuildWithServerType

GameVersionUtils.getBuildWithServerType() → string

Gets the game build with a server type specified for debugging

getServerType

GameVersionUtils.getServerType() → string

Gets a string label for the current server type

isVIPServer

GameVersionUtils.isVIPServer() → boolean

Returns true if we're a VIP server

Show raw api
{
    "functions": [
        {
            "name": "getBuild",
            "desc": "Gets the game build",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 14,
                "path": "src/gameversionutils/src/Server/GameVersionUtils.lua"
            }
        },
        {
            "name": "getBuildWithServerType",
            "desc": "Gets the game build with a server type specified for debugging",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 26,
                "path": "src/gameversionutils/src/Server/GameVersionUtils.lua"
            }
        },
        {
            "name": "getServerType",
            "desc": "Gets a string label for the current server type",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 34,
                "path": "src/gameversionutils/src/Server/GameVersionUtils.lua"
            }
        },
        {
            "name": "isVIPServer",
            "desc": "Returns true if we're a VIP server",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 50,
                "path": "src/gameversionutils/src/Server/GameVersionUtils.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "GameVersionUtils",
    "desc": "Utility functions to automatically detect the version a game is running at",
    "source": {
        "line": 5,
        "path": "src/gameversionutils/src/Server/GameVersionUtils.lua"
    }
}