manve1 Posted September 28, 2012 Share Posted September 28, 2012 is there a way i could actually remove a blip from a player after he dies? Link to comment
yayo Posted September 29, 2012 Share Posted September 29, 2012 Never tried it, but if a blip is an element use... setElementAlpha(blipname, 0) can be 0-255. Link to comment
yayo Posted September 29, 2012 Share Posted September 29, 2012 Or destroyElement( blipname ) Link to comment
TAPL Posted September 29, 2012 Share Posted September 29, 2012 addEventHandler("onPlayerWasted", function() for i, att in ipairs (getAttachedElements(source)) do if (getElementType(att == "blip") then destroyElement(att) end end end) Link to comment
Anderl Posted September 29, 2012 Share Posted September 29, 2012 addEventHandler("onPlayerWasted", function() for i, att in ipairs (getAttachedElements(source)) do if (getElementType(att == "blip") then destroyElement(att) end end end) if (getElementType(att) == "blip") then Link to comment
Guest Guest4401 Posted September 29, 2012 Share Posted September 29, 2012 addEventHandler("onPlayerWasted", function() for i, att in ipairs (getAttachedElements(source)) do if (getElementType(att == "blip") then destroyElement(att) end end end) addEventHandler("onPlayerWasted",root, Link to comment
manve1 Posted September 29, 2012 Author Share Posted September 29, 2012 thank you all 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