cristianmec

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:

e8eed6799de5feeb5a58ba441f2e54b2.png

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!

Share this post


Link to post
Share on other sites
5 minutes ago, MrPancakers said:

routeFor is a serverside function and not a clientside one

Is there any clientside function? 

Share this post


Link to post
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.