Lua:getCheatEngineFileVersion
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...")
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