Checkpoint::setColor: Difference between revisions

From RAGE Multiplayer Wiki
Line 13: Line 13:


==Example==
==Example==
<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">
const checkpoint = mp.checkpoints.new(2, new mp.Vector3(10, 10, 72), new mp.Vector3(), 4, 150, 255, 255, 255, true);
const checkpoint = mp.checkpoints.new(2, new mp.Vector3(10, 10, 72), new mp.Vector3(), 4, 150, 255, 255, 255, true);
Line 21: Line 20:


</syntaxhighlight>
</syntaxhighlight>
</div>


==See Also==
==See Also==
{{Checkpoint_functions}}
{{Checkpoint_functions}}

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