Jump to content

How to remove blip


Perfect

Recommended Posts

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?

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

Link to comment

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