Checkpoint::Checkpoint

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


Creates a Checkpoint.

JavaScript Syntax
Jslogo.png


Parameters

  • type: Number
  • position: Vector3
  • radius: Number
  • Mandatory parameters: object:
    • direction: Vector3
    • color: number[4]
      • red: number (0-255)
      • green: number (0-255)
      • blue: number (0-255)
      • alpha: number (0-255)
    • visible: Boolean
    • dimension: Number

Example

mp.checkpoints.new(1, new mp.Vector3(0, 0, 75), 10,
{
    direction: new mp.Vector3(0, 0, 75),
    color: [ 255, 255, 255, 255 ],
    visible: true,
    dimension: 0
});


See Also