Checkpoint::showFor: Difference between revisions
| Line 4: | Line 4: | ||
==Example== | ==Example== | ||
{{ServerSide}} | |||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
const checkpoint = mp.checkpoints.new(2, new mp.Vector3(10, 10, 72), 5, new mp.Vector3(), 4, 255, 255, 255, 255, false); | const checkpoint = mp.checkpoints.new(2, new mp.Vector3(10, 10, 72), 5, new mp.Vector3(), 4, 255, 255, 255, 255, false); | ||
| Line 11: | Line 10: | ||
checkpoint.showFor(player); | checkpoint.showFor(player); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | ==See Also== | ||
{{Checkpoint_function}} | {{Checkpoint_function}} | ||
Revision as of 19:13, 16 January 2018
Showing a checkpoint for a particular player
Parameters
- player: Player
Example
Server-Side
const checkpoint = mp.checkpoints.new(2, new mp.Vector3(10, 10, 72), 5, new mp.Vector3(), 4, 255, 255, 255, 255, false);
const player = mp.players.at(0);
checkpoint.showFor(player);