Jump to content

Error using blip.routeFor


Recommended Posts

Hello, i am coding the EMS System for a RP server, and now i need to create a client-side BLIP and create a route on the map.

i can create the correct blip that i wanyt but cant create the GPS route, because it gives me this error:


And this is my code:

var blips = {};

const BlipIcon = 1; 
const BlipColor = 1; 

mp.events.add('marcarGPS', (player, posicion) =>

	blips[player.id] = mp.blips.new(BlipIcon, posicion);
	blips[player.id].name = player.name;
	blips[player.id].dimension = player.dimension;
	blips[player.id].colour = BlipColor;
	blips[player.id].routeFor(player, 2, 1);


Thnx for the help!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...