<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.rage.mp/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=GettyPlays</id>
	<title>RAGE Multiplayer Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.rage.mp/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=GettyPlays"/>
	<link rel="alternate" type="text/html" href="https://wiki.rage.mp/wiki/Special:Contributions/GettyPlays"/>
	<updated>2026-06-04T22:31:36Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Entity::destroy&amp;diff=19977</id>
		<title>Entity::destroy</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Entity::destroy&amp;diff=19977"/>
		<updated>2020-08-28T14:58:19Z</updated>

		<summary type="html">&lt;p&gt;GettyPlays: Adjusting some grammatical mistakes.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
{{SharedFunctionJS}}&lt;br /&gt;
&lt;br /&gt;
This function is used to destroy a created entity.&lt;br /&gt;
&lt;br /&gt;
{{JSContainer|&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
entity.destroy();&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example creates a vehicle, and destroys after waiting 5 seconds.&lt;br /&gt;
{{SharedCode|&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mp.events.addCommand(&#039;veh&#039;, (player) =&amp;gt; {&lt;br /&gt;
    let vehicle = mp.vehicles.new(mp.joaat(`zentorno`), player.position); //Create a Vehicle&lt;br /&gt;
    setTimeout(()=&amp;gt;{ //Create a Timer&lt;br /&gt;
        if(vehicle){&lt;br /&gt;
            vehicle.destroy(); //Destroy the Vehicle&lt;br /&gt;
        }&lt;br /&gt;
    },5000);&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Entity API]]&lt;br /&gt;
[[Category:Shared Function]]&lt;/div&gt;</summary>
		<author><name>GettyPlays</name></author>
	</entry>
</feed>