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
entityIdintThe entity ID to attach the blip to.
namestringThe name displayed on the map for the blip.
colorintThe numeric color ID for the blip.
spriteintThe 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
namestringThe name displayed on the map for the blip.
colorintThe numeric color ID for the blip.
spriteintThe numeric sprite ID for the blip icon.
positionVector3The 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
blipBlipThe blip to be removed.