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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.