Object::Object

From RAGE Multiplayer Wiki
Jump to navigation Jump to search
Js.png JavaScript


Creates a new Object.


JavaScript Syntax
Jslogo.png

Syntax

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

Required Arguments

  • model: Hash
  • position: Vector3
  • rotation: Vector3
  • alpha: Number
  • dimension: Number

Example

// TODO