Object::Object: Difference between revisions

From RAGE Multiplayer Wiki
m (Cat)
Line 27: Line 27:
// TODO
// TODO
</syntaxhighlight>
</syntaxhighlight>
[[Category:Object API]]
[[Category:Shared Function]]
[[Category:TODO: Example]]

Revision as of 18:05, 16 May 2019

Shared
Function

 JavaScript


Creates a new Object.

Parameters

  • model: Hash (use mp.joaat)
  • position: Vector3
  • rotation: Vector3
  • alpha: Number
  • dimension: Number

Syntax

mp.objects.new(model, position,
{
    rotation: rotation,
    alpha: alpha,
    dimension: dimension
});

Example

// TODO