Lua:getCustomType

From Cheat Engine
Revision as of 18:42, 11 July 2025 by Leunsel (talk | contribs) (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....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

function getCustomType(TypeName) : CustomType or nil

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

Function Parameters

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

Returns

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

Examples

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

See also