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