<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/IsObjectRespawnable?action=history&amp;feed=atom</id>
	<title>IsObjectRespawnable - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/IsObjectRespawnable?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsObjectRespawnable&amp;action=history"/>
	<updated>2026-05-09T19:05:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsObjectRespawnable&amp;diff=80108&amp;oldid=prev</id>
		<title>FileEX: Created page with &quot;__NOTOC__ {{Shared function}} {{New feature/item|3.0161|1.6.0|22708|This function checks if the object has respawn enabled, which can be toggled using toggleObjectRespawn.}}  ==Syntax==  &lt;syntaxhighlight lang=&quot;lua&quot;&gt;bool isObjectRespawnable( object theObject )&lt;/syntaxhighlight&gt;  {{OOP||object:isRespawnable}} ===Required Arguments===  *'''theObject:''' an object element.  ===Returns=== Returns true if the object has respawning enabled, false otherwise.  ==Examp...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsObjectRespawnable&amp;diff=80108&amp;oldid=prev"/>
		<updated>2024-09-04T12:20:43Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ {{Shared function}} {{New feature/item|3.0161|1.6.0|22708|This function checks if the object has respawn enabled, which can be toggled using &lt;a href=&quot;/wiki/ToggleObjectRespawn&quot; title=&quot;ToggleObjectRespawn&quot;&gt;toggleObjectRespawn&lt;/a&gt;.}}  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool isObjectRespawnable( object theObject )&amp;lt;/syntaxhighlight&amp;gt;  {{OOP||&lt;a href=&quot;/wiki/Object&quot; class=&quot;mw-redirect&quot; title=&quot;Object&quot;&gt;object&lt;/a&gt;:isRespawnable}} ===Required Arguments===  *&amp;#039;&amp;#039;&amp;#039;theObject:&amp;#039;&amp;#039;&amp;#039; an &lt;a href=&quot;/wiki/Object&quot; class=&quot;mw-redirect&quot; title=&quot;Object&quot;&gt;object&lt;/a&gt; element.  ===Returns=== Returns true if the object has respawning enabled, false otherwise.  ==Examp...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Shared function}}&lt;br /&gt;
{{New feature/item|3.0161|1.6.0|22708|This function checks if the object has respawn enabled, which can be toggled using [[toggleObjectRespawn]].}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool isObjectRespawnable( object theObject )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[object]]:isRespawnable}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theObject:''' an [[object]] element.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns true if the object has respawning enabled, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler('checkobjects', function()&lt;br /&gt;
    local count = 0&lt;br /&gt;
    for k,v in ipairs(getElementsByType('object')) do&lt;br /&gt;
        if (isObjectRespawnable(v)) then&lt;br /&gt;
            count = count + 1&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    outputChatBox(count..' objects on map are respawnable!')&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Shared_object_functions}}&lt;/div&gt;</summary>
		<author><name>FileEX</name></author>
	</entry>
</feed>