SetBlipDisplay
DocsSetBlipDisplay(blip, displayId)Description
displayId Behaviour
| display ID | Behaviour |
|---|---|
0 | Doesn't show up, ever, anywhere. |
1 | Doesn't show up, ever, anywhere. |
2 | Shows on both main map and minimap. (Selectable on map) |
3 | Shows on main map only. (Selectable on map) |
4 | Shows on main map only. (Selectable on map) |
5 | Shows on minimap only. |
6 | Shows on both main map and minimap. (Selectable on map) |
7 | Doesn't show up, ever, anywhere. |
8 | Shows on both main map and minimap. (Not selectable on map) |
9 | Shows on minimap only. |
10 | Shows on both main map and minimap. (Not selectable on map) |
Rockstar seem to only use 0, 2, 3, 4, 5 and 8 in the decompiled scripts.
Parameters
| Name | Type | Description |
|---|---|---|
blip | Blip | — |
displayId | int | — |
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.