Class Blip
- Namespace
- FivemToolsLib.Client.NativeWrappers
- Assembly
- FivemToolsLib.Client.net.dll
Provides helper methods to create and manage map blips in the game.
public static class Blip
- Inheritance
-
Blip
- Inherited Members
Methods
AddBlipForEntity(int, string, int, int)
Creates a blip for an existing entity and assigns it a name, color, and sprite.
public static int AddBlipForEntity(int entityId, string name, int color, int sprite)
Parameters
entityId
intThe entity ID to attach the blip to.
name
stringThe name displayed on the map for the blip.
color
intThe numeric color ID for the blip.
sprite
intThe numeric sprite ID for the blip icon.
Returns
- int
The handle of the created blip.
CreateBlip(string, int, int, Vector3)
Creates a new blip at the specified world position with a custom name, color, and sprite.
public static Blip CreateBlip(string name, int color, int sprite, Vector3 position)
Parameters
name
stringThe name displayed on the map for the blip.
color
intThe numeric color ID for the blip.
sprite
intThe numeric sprite ID for the blip icon.
position
Vector3The world position where the blip should appear.
Returns
- Blip
The created CitizenFX.Core.Blip object.
RemoveBlip(Blip)
Removes a previously created blip from the map.
public static void RemoveBlip(Blip blip)
Parameters
blip
BlipThe blip to be removed.