<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dev.playonset.com/index.php?action=history&amp;feed=atom&amp;title=createtable_ex</id>
	<title>createtable ex - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://dev.playonset.com/index.php?action=history&amp;feed=atom&amp;title=createtable_ex"/>
	<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=createtable_ex&amp;action=history"/>
	<updated>2026-04-24T07:15:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://dev.playonset.com/index.php?title=createtable_ex&amp;diff=3263&amp;oldid=prev</id>
		<title>BlueMountains: Created page with &quot;{{Info|Function|Client|1.0}}  {{FuncDescription|Creates a new table and sets the metatable.}}  {{FuncSyntax|createtable_ex(metatable)}}  {{FuncParameters}} {{FuncParam|metatab...&quot;</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=createtable_ex&amp;diff=3263&amp;oldid=prev"/>
		<updated>2019-12-17T00:19:26Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Info|Function|Client|1.0}}  {{FuncDescription|Creates a new table and sets the metatable.}}  {{FuncSyntax|createtable_ex(metatable)}}  {{FuncParameters}} {{FuncParam|metatab...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Info|Function|Client|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Creates a new table and sets the metatable.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|createtable_ex(metatable)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|metatable|The metatable to set.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|Returns a new table with the desired metatable.}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
Timer = {}&lt;br /&gt;
Timer.name = &amp;quot;Timer&amp;quot;&lt;br /&gt;
Timer.__index = Timer&lt;br /&gt;
Timer.prototype = {}&lt;br /&gt;
Timer.prototype.__index = Timer.prototype&lt;br /&gt;
Timer.prototype.constructor = Timer&lt;br /&gt;
function Timer.new(...)&lt;br /&gt;
    local self = createtable_ex(Timer.prototype)&lt;br /&gt;
    self:____constructor(...)&lt;br /&gt;
    return self&lt;br /&gt;
end&lt;br /&gt;
function Timer.prototype.____constructor(self, id)&lt;br /&gt;
    self.id = id&lt;br /&gt;
    print(&amp;quot;constructor &amp;quot;, self.id)&lt;br /&gt;
end&lt;br /&gt;
function Timer.prototype.pause(self)&lt;br /&gt;
    print(&amp;quot;pause &amp;quot;, self.id)&lt;br /&gt;
end&lt;br /&gt;
function Timer.prototype.unpause(self)&lt;br /&gt;
    print(&amp;quot;unpause &amp;quot;, self.id)&lt;br /&gt;
end&lt;br /&gt;
function Timer.prototype.destroy(self)&lt;br /&gt;
    print(&amp;quot;destroy &amp;quot;, self.id)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
t = Timer.new(12)&lt;br /&gt;
t.pause()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>BlueMountains</name></author>
	</entry>
</feed>