Checkpoint::hideFor: Difference between revisions

From RAGE Multiplayer Wiki
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Hiding a checkpoint for a particular player
Hiding a checkpoint for a particular player
==Parameters==
==Parameters==
* '''player: <span style="color:#008017>Player</span>'''
* '''player: {{RageType|Player}}


==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==
[[Category:Checkpoint API]]
{{Checkpoint_function}}
[[Category:Server-side Function]]

Latest revision as of 16:49, 17 May 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);