Checkpoint::hideFor: Difference between revisions

From RAGE Multiplayer Wiki
m (category)
Line 4: Line 4:


==Example==
==Example==
{{ServerSide}}
{{ServersideCode|
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
const checkpoint = mp.checkpoints.new(2, new mp.Vector3(10, 10, 72), new mp.Vector3(), 4, 255, 255, 255, 255, true);
const checkpoint = mp.checkpoints.new(2, new mp.Vector3(10, 10, 72), new mp.Vector3(), 4, 255, 255, 255, 255, true);
Line 10: Line 10:
checkpoint.hideFor(player);
checkpoint.hideFor(player);
</syntaxhighlight>
</syntaxhighlight>
}}


==See Also==
==See Also==
{{Checkpoint_function}}
{{Checkpoint_function}}
[[Category:Checkpoint]]
[[Category:Server-side Function]]

Revision as of 11:19, 30 April 2019

Hiding a checkpoint for a particular player

Parameters

  • player: Player

Example

Server-Side
const checkpoint = mp.checkpoints.new(2, new mp.Vector3(10, 10, 72), new mp.Vector3(), 4, 255, 255, 255, 255, true);
const player = mp.players.at(0);
checkpoint.hideFor(player);

See Also