Checkpoint::getColor

From RAGE Multiplayer Wiki
Revision as of 16:51, 17 May 2019 by RoboN1X (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Function: Returns an array of 4 numbers, with a checkpoint color

Return

  • Array<Number>

Example

Server-Side
const checkpoint = mp.checkpoints.new(2, new mp.Vector3(10, 10, 72), new mp.Vector3(), 4, 150, 255, 255, 255, true);
const color = checkpoint.getColor();

console.log(color); // -> [150, 255, 255, 255]
console.log(color[0]); // -> 150