How does blip work?

For example if I’ve attached a blip to an entity, and there is one player in the server, and after some time the other player connects.

  1. Will that second player see that blip on entity?
  2. How AddBlipForEntity(entity) works, does entity has this blip for all players? Because the name says, that entity has it, so all players will see it or how? Is the second player be able to get already attached blip to an entity if he connects after setting a blip for entity?

Hello @Xbatista_Yo,

  1. If you’re running the same scripts for the new player, then in theory yes, however that’s assuming that you’ve coded it properly
  2. AddBlipForEntity adds a blip to an entity (player, vehicle, object etc). Whether it works as you intend it to depends on how you code it. For example if you just attach a blip to a player when they connect, that will not be enough and won’t work the way you want it to. Instead, you should place the AddBlipForEntity in a loop that adds it to all existing players (for it to work the way you want it to)

Okey thanks for your answer, So I need to loop through all players/entities and set them blips from client script, because blips works locally only for current client script.