Jump to content

Create player only blips


concil

Recommended Posts

Thanks buddy works perfectly for me ...

 

for all who wants the same for client side

var jobBlips = new Array();
mp.events.add('createJobBlip', (player, ID, position, name, color, shortRange) => {
	jobBlips[jobBlips.length + 1] = mp.blips.new(parseInt(ID), position, {
        name: name,
        color: parseInt(color),
        shortRange: (shortRange === 'true'),
    });
});

mp.events.add('removeJobBlips', (player) => {
    jobBlips.forEach(function(object, index) {
        jobBlips[index].destroy();
    });

    
    jobBlips = null;
    jobBlips = new Array();
});

 

Edited by concil
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...