Checkpoint::setColor: Difference between revisions

From RAGE Multiplayer Wiki
Line 7: Line 7:


==Syntax==
==Syntax==
<div class="header" style="background-color: #408DAE; color: #FFFFFF; border: 2px solid #408DAE;">
{{ServerSide}}
<div style="margin: 10px 10px 10px 10px;"><b>Server-Side</b></div>
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
checkpoint.setColour(r, g, b, a);
checkpoint.setColour(r, g, b, a);
</syntaxhighlight>
</syntaxhighlight>
</div>


==Example==
==Example==

Revision as of 19:13, 16 January 2018

Sets the checkpoint color

Parameters

  • r: Number
  • g: Number
  • b: Number
  • a: Number

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