Blip::routeFor
Function: creates a route to blip from the player(s).
Syntax
blip.routeFor(Player player, int color, float scale);
blip.routeFor(Player[] players, int color, float scale);Required Arguments
- player(s): Array or object of player to which to apply route
- color: ID colour. (All colors available on Blip Colors page)
- scale: Blip route scale
Example
That's example will create 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);
});
See Also
- Functions
- Properties