Checkpoint::setColor

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Sets the checkpoint color

Parameters

  • r: Number Red color value (0 to 255)
  • g: Number Green color value (0 to 255)
  • b: Number Blue color value (0 to 255)
  • a: Number Alpha color value (0 to 255)

Syntax

Server-Side

checkpoint.setColour(r, g, b, a);

Example

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

checkpoint.setColour(255, 0, 0, 255);

See also