Checkpoint::setColor: Difference between revisions
(→Syntax) |
|||
| Line 13: | Line 13: | ||
==Example== | ==Example== | ||
{{ServerSide}} | |||
<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> | ||
==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);