class Blip
package fivem.client.core
A map or radar marker.
var shop = Blip.atCoords(shopPosition, 52, 2);
shop.label = "Hardware Store";
shop.shortRange = true;
Blips are client-side and are not cleaned up when your resource stops — restarting a resource that creates blips without removing them leaves duplicates on the map. Remove them in a stop handler:
Resource.onStop(() -> shop.remove());Static methods
staticatCoords(position:Vector3, sprite:Int = 1, colour:Int = 0, ?label:String):Blip
Creates a blip at a fixed position.
Parameters:
sprite | The icon index — 1 is the default circle, 52 a shop, 161 a garage. The FiveM docs list them all. |
|---|---|
colour | The palette index, not an RGB value — 1 red, 2 green, 3 blue, 5 yellow. |
Constructor
Variables
write onlylabel:String
The name shown in the pause-menu map legend.
Setting one runs a small text-command sequence rather than a single native, which is why it's a property here instead of a constructor argument you might forget.