Jump to content

Recommended Posts

Posted (edited)

Hello Guys,

is there any way to create player only blips? like players who have a job and for them create the blips...

Greetz,

Concil

Edited by concil
Posted (edited)

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

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...