Checkpoint::hideFor: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "Hiding a checkpoint for a particular player ==Parameters== * '''player: <span style="color:#008017>Player</span>''' ==Example== <div class="header" style="background-color:...")
 
Line 4: Line 4:


==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, 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 11: Line 10:
checkpoint.hideFor(player);
checkpoint.hideFor(player);
</syntaxhighlight>
</syntaxhighlight>
</div>


==See Also==
==See Also==
{{Checkpoint_function}}
{{Checkpoint_function}}

Revision as of 14:41, 16 January 2018

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