<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mr.DeViLsS</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mr.DeViLsS"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Mr.DeViLsS"/>
	<updated>2026-04-23T04:33:48Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetObjectBreakable&amp;diff=49841</id>
		<title>SetObjectBreakable</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetObjectBreakable&amp;diff=49841"/>
		<updated>2016-11-12T00:04:18Z</updated>

		<summary type="html">&lt;p&gt;Mr.DeViLsS: /* Синтаксис */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function sets an object to be breakable/unbreakable.&lt;br /&gt;
&lt;br /&gt;
==Синтаксис== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setObjectBreakable ( object theObject, bool breakable )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[object]]:setBreakable|breakable|isObjectBreakable}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''object''' the [[object]] that's being set.&lt;br /&gt;
*'''breakable''' a boolean whether the object is breakable(true) or unbreakable (false).&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
* ''true'' if the object is now breakable.&lt;br /&gt;
* ''false'' if it can't or if invalid arguments are passed.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates an object when the resource starts and sets it to be breakable.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function toggleObjectVulnerability()&lt;br /&gt;
	local object = createObject(1337, 5540.6654, 1020.55122, 1240.545)&lt;br /&gt;
	if isObjectBreakable(object) then&lt;br /&gt;
		setObjectBreakable(object, false)&lt;br /&gt;
		outputChatBox(&amp;quot;The object is now not breakable.&amp;quot;)&lt;br /&gt;
	else&lt;br /&gt;
		setObjectBreakable(object, true)&lt;br /&gt;
		outputChatBox(&amp;quot;The object is now breakable.&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, resourceRoot, toggleObjectVulnerability)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|n/a|1.3.0-9.03783|}}&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_object_functions}}&lt;/div&gt;</summary>
		<author><name>Mr.DeViLsS</name></author>
	</entry>
</feed>