Blip::unrouteFor: Difference between revisions
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 | ||
{{ServerSide}} | |||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
mp.events.addCommand("unrouteFirstBlip", (player) => { | mp.events.addCommand("unrouteFirstBlip", (player) => { | ||
| Line 24: | Line 23: | ||
}); | }); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==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
- Functions
- Properties