Perfect Posted August 17, 2012 Share Posted August 17, 2012 Hi All, How to remove blip via command (I mean my own blip not others) Link to comment
Taalasmaa Posted August 17, 2012 Share Posted August 17, 2012 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. Link to comment
CheiN Posted August 17, 2012 Share Posted August 17, 2012 function blipper () local perfectBlip = createBlip (sintax) destroyElement (perfectBlip) addEvent ("onPlayerCommand", true) addCommandHandler("hiddeblip", blipper) i think that it not will work... Link to comment
albers14 Posted August 17, 2012 Share Posted August 17, 2012 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
Castillo Posted August 17, 2012 Share Posted August 17, 2012 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
Perfect Posted August 17, 2012 Author Share Posted August 17, 2012 Thnx everyone but i also need create blip by command, anyway Thnx so much all!!! EDIT: How to get Blip back ? Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now