GetVersion

From Multi Theft Auto: Wiki
Revision as of 11:31, 7 March 2009 by Arc (talk | contribs) (New page: __NOTOC__ {{Server client function}} This function gives you various version information about MTA and the operating system. ==Syntax== <syntaxhighlight lang="lua">table getVersion ( )</syntaxhighlight> ===Require...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function gives you various version information about MTA and the operating system.

Syntax

table getVersion ( )

Required Arguments

None.

Returns

Returns a table with version information. Specifically these keys are present in the table:

  • number: the MTA server or client version (depending where the function was called) in pure numerical form.
  • mta: the MTA server or client version in textual form.
  • name: the full MTA product name.
  • netcode: the netcode version number.
  • os: can be "Windows", "Linux", "FreeBSD" or "OpenBSD".

See Also