Checkpoint::Checkpoint: Difference between revisions
(Improve checkpoints documentation) |
No edit summary |
||
| Line 1: | Line 1: | ||
{{SharedFunctionJS}} | |||
'''Function''': Creates a Checkpoint. | '''Function''': Creates a Checkpoint. | ||
==Parameters== | ==Parameters== | ||
| Line 15: | Line 17: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
mp.checkpoints.new(1, new mp.Vector3(0, 0, 75), 10, | mp.checkpoints.new(1, new mp.Vector3(0, 0, 75), 10, | ||
Revision as of 14:08, 27 November 2018
Function: Creates a Checkpoint.
Parameters
- type: Number
- position: Vector3
- radius: Number
- Mandatory parameters: object:
- direction: Vector3
- color: number[4]
- red: number Between 0 and 255
- green: number Between 0 and 255
- blue: number Between 0 and 255
- alpha: number Between 0 and 255
- visible: Boolean
- dimension: Number
Example
mp.checkpoints.new(1, new mp.Vector3(0, 0, 75), 10,
{
direction: new mp.Vector3(0, 0, 75),
color: [ 255, 255, 255, 255 ],
visible: true,
dimension: 0
});
See Also
- Functions
- Properties