<?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=DnAp</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=DnAp"/>
	<link rel="alternate" type="text/html" href="https://wiki.rage.mp/wiki/Special:Contributions/DnAp"/>
	<updated>2026-06-23T15:15:27Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Object::Object&amp;diff=20084</id>
		<title>Object::Object</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Object::Object&amp;diff=20084"/>
		<updated>2020-10-28T11:48:27Z</updated>

		<summary type="html">&lt;p&gt;DnAp: Fix example&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{SharedFunctionJS}}&lt;br /&gt;
&lt;br /&gt;
Creates a new Object.&lt;br /&gt;
 &lt;br /&gt;
*&#039;&#039;&#039;[https://cdn.rage.mp/public/odb/index.html Objects gallery]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{JSContainer|&lt;br /&gt;
==Syntax==&lt;br /&gt;
{{SharedCode|&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mp.objects.new(model, position,&lt;br /&gt;
{&lt;br /&gt;
    rotation: rotation,&lt;br /&gt;
    alpha: alpha,&lt;br /&gt;
    dimension: dimension&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Required Arguments==&lt;br /&gt;
*&#039;&#039;&#039;model&#039;&#039;&#039;: {{RageType|Hash}}&lt;br /&gt;
*&#039;&#039;&#039;position&#039;&#039;&#039;: {{RageType|Vector3}}&lt;br /&gt;
*&#039;&#039;&#039;rotation&#039;&#039;&#039;: {{RageType|Vector3}}&lt;br /&gt;
*&#039;&#039;&#039;alpha&#039;&#039;&#039;: {{RageType|Number}}: The object&#039;s transparency.&lt;br /&gt;
*&#039;&#039;&#039;dimension&#039;&#039;&#039;: {{RageType|Number}}&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mp.events.addCommand(&#039;flag&#039;, (player) =&amp;gt; {&lt;br /&gt;
    mp.objects.new(&#039;apa_prop_flag_portugal&#039;, player.position,&lt;br /&gt;
        {&lt;br /&gt;
            rotation: player.rotation,&lt;br /&gt;
            alpha: 250,&lt;br /&gt;
            dimension: player.dimension&lt;br /&gt;
        });&lt;br /&gt;
});&lt;br /&gt;
&lt;br /&gt;
//Following this code, you&#039;ll create a portuguese flag (apa_prop_flag_portugal) at the players position, facing the same way the player is facing, with no transparency (250 on alpha) and at the same dimension the player is.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
[[Category:Object API]]&lt;br /&gt;
[[Category:Shared Function]]&lt;br /&gt;
[[Category:TODO: Example]]&lt;/div&gt;</summary>
		<author><name>DnAp</name></author>
	</entry>
</feed>