Checkpoint::getColor: Difference between revisions

From RAGE Multiplayer Wiki
m (Adding the ServerSide header template)
m (Specify it's a function)
Line 1: Line 1:
Returns an array of 4 numbers, with a checkpoint color
'''Function''': Returns an array of 4 numbers, with a checkpoint color
==Return==
==Return==
* '''<span style="color:#008017>Array<Number></span>'''  
* '''<span style="color:#008017>Array<Number></span>'''  

Revision as of 15:22, 27 December 2017

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 colour = checkpoint.getColour();

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

See Also