Lua:getCustomType
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[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