ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getVersion

Function

getVersion

ServerServerIdentical to MTA:SA

Returns server version information as a table.

Syntax

table getVersion()

Returns

{ number, mta, name, version, type }, e.g. name = "Trilogy Hub Server", type = "Definitive Edition".

Example

local v = getVersion()
outputServerLog(v.name .. " " .. v.version)

See also