Lua:unregisterAutoAssemblerTemplate
Revision as of 00:23, 11 July 2025 by Leunsel (talk | contribs) (Created page with "Category:Lua '''function''' unregisterAutoAssemblerTemplate(''ID'') Unregisters a previously registered Auto Assembler template using its ID. Use this to remove a templ...")
function unregisterAutoAssemblerTemplate(ID)
Unregisters a previously registered Auto Assembler template using its ID. Use this to remove a template that was added with registerAutoAssemblerTemplate.
Function Parameters
| Parameter | Type | Description |
|---|---|---|
| ID | Integer | The ID returned by registerAutoAssemblerTemplate when the template was registered. |
Examples
-- Register and then unregister a template
local templateID = registerAutoAssemblerTemplate("Temporary Template", function(script, sender)
script.insert(0, "-- Temporary template")
end)
-- Later, remove the template
unregisterAutoAssemblerTemplate(templateID)