Blip::unrouteFor

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Server-Side
Function

Js.png JavaScript



This function used for remove route to blip for player.

JavaScript Syntax
Jslogo.png

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