Skip to main content

Blip::routeFor

Not available on SYNC MP yet

This member is part of the RAGE:MP API but SYNC MP does not implement it yet (Server-side JavaScript). Calling it does nothing or throws.

Server-side function

Creates a route to the blip from the player's location.

Syntax​

blip.routeFor(player, color, scale);

Required Arguments​

  • player:' Player object or an array of player objects
  • color: Int (All colors available on Blip Colors page)
  • scale: Float

Example​

This example will create a command for creating blip and add route to the player who entered it:

Server-Side

mp.events.addCommand("routeBlip", (player) => {
const position = player.position;
const blip = mp.blips.new(1, position);

blip.routeFor(player, 2, 1);
});