Jump to content

hide blip


ÆBKV

Recommended Posts

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 by ÆBKV
Link to comment
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 by #x1AhMeD,-09
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...