ShowFriendIndicatorOnBlip
DocsShowFriendIndicatorOnBlip(blip, toggle)Description
Highlights a blip by a half cyan circle on the right side of the blip.  Indicating that that player is a friend (in GTA:O). This color can not be changed.
To toggle the left side (crew member indicator) of the half circle around the blip, use: <code>SHOW_CREW_INDICATOR_ON_BLIP</code>.
Parameters
| Name | Type | Description |
|---|---|---|
blip | Blip | The blip to toggle the half circle on. |
toggle | BOOL | Enables or disables the half circle around the blip (on the right side of the blip). |
Quick Snippet: Create Blipblip
blipUse this to create or reference a map blip for this native.
-- Create a blip at the player's position
local coords = GetEntityCoords(PlayerPedId())
local blip = AddBlipForCoord(coords.x, coords.y, coords.z)
SetBlipSprite(blip, 1) -- Standard blip icon
SetBlipColour(blip, 1) -- Red color
SetBlipScale(blip, 0.8)
SetBlipAsShortRange(blip, true)
BeginTextCommandSetBlipName("STRING")
AddTextComponentSubstringPlayerName("My Blip")
EndTextCommandSetBlipName(blip)
print("Blip created: " .. blip)Returns
voidThis native does not return a value.
Examples
Official
local player = 1 -- make sure this is an actual player, dont just use this example code!
local blip = GetBlipFromEntity(GetPlayerPed(player))
-- Toggle the friend outline indicator on the blip.
ShowFriendIndicatorOnBlip(blip, true)