Checkpoint::hideFor: Difference between revisions
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: | * '''player: {{RageType|Player}} | ||
==Example== | ==Example== | ||
{{ | {{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> | ||
}} | |||
[[Category:Checkpoint API]] | |||
[[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);