RemoveBlip
Docslocal blip = RemoveBlip()Description
Removes the blip from your map.
Note: This function only works on the script that created the blip, if you wish to remove blips created by other scripts, see <code>SET_THIS_SCRIPT_CAN_REMOVE_BLIPS_CREATED_BY_ANY_SCRIPT</code>.
Parameters
| Name | Type | Description |
|---|---|---|
blip | Blip* | Blip handle to remove. |
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
-- Create the blip
local coords = vector3(200.0, 200.0, 5.0)
local blip = AddBlipForCoord(coords)
-- When you want to remove it
RemoveBlip(blip)