Difference between revisions of "Lua:getCustomType"

From Cheat Engine
Jump to navigation Jump to search
(Created page with "Category:Lua '''function''' getCustomType(''TypeName'') ''':''' CustomType or nil Returns the custom type object registered with the specified name, or nil if not found....")
 
(No difference)

Latest revision as of 18:42, 11 July 2025

function getCustomType(TypeName) : CustomType or nil

Returns the custom type object registered with the specified name, or nil if not found.

Function Parameters[edit]

Parameter Type Description
TypeName String The name of the custom type to retrieve.

Returns[edit]

CustomType — The custom type object if found, or nil if not found.

Examples[edit]

local myType = getCustomType("3ByteInt")
if myType then
  print("Custom type found!")
else
  print("Custom type not found.")
end

See also[edit]