Blip::unrouteFor: Difference between revisions

From RAGE Multiplayer Wiki
mNo edit summary
Line 13: Line 13:
That's example get's first blip's and remove route fro
That's example get's first blip's and remove route fro


<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">
mp.events.addCommand("unrouteFirstBlip", (player) => {
mp.events.addCommand("unrouteFirstBlip", (player) => {
Line 24: Line 23:
});
});
</syntaxhighlight>
</syntaxhighlight>
</div>


==See Also==
==See Also==
{{Blip_definition}}
{{Blip_definition}}

Revision as of 13:29, 16 January 2018

This function used for remove route to blip for player.

Syntax

blip.unrouteFor(Player player);
blip.unrouteFor(Player[] players);

Required Arguments

  • player(s): Array or object of player to which to remove route

Example

That's example get's first blip's and remove route fro

Server-Side

mp.events.addCommand("unrouteFirstBlip", (player) => {
	const blip = mp.blips.at(0);

	if (blip) {
		blip.unrouteFor(player);
	}
});

See Also