ÆBKV Posted January 24, 2018 Share Posted January 24, 2018 (edited) function hideBlip(player) for index,elements in ipairs(getAttachedElementsTo(player)) do local blip = getElementType(elements) == "blip" if isElement(blip) then destroyElement(blip) else local r,g,b = getPlayerNametagColor(player) createBlipAttachedTo(player,0,2,r,g,b,255) end end end addCommandHandler("blip",hideBlip) One question, does it hide the blip of the player who entered the command or of all players? Edited January 24, 2018 by ÆBKV Link to comment
SycroX Posted January 24, 2018 Share Posted January 24, 2018 (edited) 1 hour ago, ÆBKV said: function hideBlip(player) for index,elements in ipairs(getAttachedElementsTo(player)) do local blip = getElementType(elements) == "blip" if isElement(blip) then destroyElement(blip) else local r,g,b = getPlayerNametagColor(player) createBlipAttachedTo(player,0,2,r,g,b,255) end end end addCommandHandler("blip",hideBlip) One question, does it hide the blip of the player who entered the command or of all players? it's depended on the file if the file is a client side file so it's gonna hide all the blips and the source player wouldn't able to see them but the other players could else if the file is a server side file , it's gonna hide all the blips, and the source player and other players wouldn't be able to see them Edited January 24, 2018 by #x1AhMeD,-09 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