Jump to content

How to remove blip


Perfect

Recommended Posts

Posted

Hello Perfect,

lets assume you create your blip. Create it like this.

  
perfectBlip = createBlip ( 0, 0, 0 ) 
  
-- now destroy it 
destroyElement(perfectBlip) 
  

And destroy it with destroyElement.

Posted
function blipper () 
local perfectBlip = createBlip (sintax) 
destroyElement (perfectBlip) 
addEvent ("onPlayerCommand", true) 
addCommandHandler("hiddeblip", blipper) 

i think that it not will work...

Posted
function blipper () 
local perfectBlip = createBlip (sintax) 
destroyElement (perfectBlip) 
addEvent ("onPlayerCommand", true) -- Why are you creating an event ;o? 
addCommandHandler("hiddeblip", blipper) 

i think that it not will work...

Anyways is it a blip you had created with a script, or the normal blip attached to you player?

Posted
addCommandHandler ( "destroyblip", 
    function ( thePlayer ) 
        for index, element in ipairs ( getAttachedElements ( thePlayer ) ) do 
            if ( getElementType ( element ) == "blip" ) then 
                destroyElement ( element ) 
            end 
        end 
    end 
) 

That'll destroy ANY blip attached to the player who uses the /destroyblip command.

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