Lua:getCheatEngineFileVersion

From Cheat Engine
Revision as of 18:17, 11 July 2025 by Leunsel (talk | contribs) (Created page with "Category:Lua '''function''' getCheatEngineFileVersion() ''':''' Integer, Table Returns the full version data of the Cheat Engine executable. The first return value is a...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

function getCheatEngineFileVersion() : Integer, Table

Returns the full version data of the Cheat Engine executable. The first return value is a raw integer representing the version. The second return value is a table containing the fields: major, minor, release, and build.

Returns

  • Integer — The raw version as an integer.
  • Table — A table with the following fields:
    • major (integer)
    • minor (integer)
    • release (integer)
    • build (integer)

Examples

local raw, version = getCheatEngineFileVersion()
print("Raw version:", raw)
print(string.format("Version: %d.%d.%d build %d", version.major, version.minor, version.release, version.build))
-- Raw version: 1970346311818503 
-- Version: 7.5.0 build 7431 

See also