[help] blips

hi i have added blip on my map but how can i get name on the blip and on the right side on map ?

Here’s a full blip syntax :

Citizen.CreateThread(function()

  local blip = AddBlipForCoord(x, y, z)

  SetBlipSprite (blip, 1) --Blip sprite id
  SetBlipDisplay(blip, 4)
  SetBlipScale  (blip, 1.0)
  SetBlipColour (blip, 1) --Blip color ID
  SetBlipAsShortRange(blip, true)

  BeginTextCommandSetBlipName("STRING")
  AddTextComponentString("YOUR BLIP NAME")
  EndTextCommandSetBlipName(blip)

end)