SetRadiusBlipEdge
DocsSetRadiusBlipEdge(blip, toggle)Description
Enabling this on a radius blip will make it outline only.
Please note that this only works on a radius blip (i.e. one generated using <code>ADD_BLIP_FOR_RADIUS</code>), not a normal blip.
Example result:
!example-image
Parameters
| Name | Type | Description |
|---|---|---|
blip | Blip | The blip handle |
toggle | BOOL | Whether to turn off or on the effect |
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 coords = GetEntityCoords(PlayerPedId())
local radiusBlip = AddBlipForRadius(coords, 100.0) -- need to have .0
SetBlipColour(radiusBlip, 1)
SetBlipAlpha(radiusBlip, 255)
SetRadiusBlipEdge(radiusBlip, true)