Object::Object: Difference between revisions

From RAGE Multiplayer Wiki
m (Cat)
No edit summary
Line 4: Line 4:
   
   
*'''[https://cdn.rage.mp/public/odb/index.html Objects gallery]'''
*'''[https://cdn.rage.mp/public/odb/index.html Objects gallery]'''
==Parameters==
 
{{JSContainer|
==Required Arguments==
*'''model''': {{RageType|Hash}} (use [[Globals::joaat|mp.joaat]])
*'''model''': {{RageType|Hash}} (use [[Globals::joaat|mp.joaat]])
*'''position''': {{RageType|Vector3}}
*'''position''': {{RageType|Vector3}}
Line 12: Line 14:


==Syntax==
==Syntax==
 
{{SharedCode|
<syntaxhighlight lang="javascript">
<pre>
mp.objects.new(model, position,
mp.objects.new(model, position,
{
{
Line 20: Line 22:
     dimension: dimension
     dimension: dimension
});
});
</syntaxhighlight>
</pre>
}}


=Example=
=Example=


<syntaxhighlight lang="javascript">
<pre>
// TODO
// TODO
</syntaxhighlight>
</pre>
 
}}
[[Category:Object API]]
[[Category:Object API]]
[[Category:Shared Function]]
[[Category:Shared Function]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 11:44, 3 December 2019

Shared
Function

 JavaScript


Creates a new Object.

JavaScript Syntax

{{{1}}}