Blips
Functions.CreateRoutedBlipOnCoords()
This function is used to create a blip with a route displayed on the map at the specified coordinates. It adds a blip at the given coordinates, sets the blip's name, and enables the route for the blip. The function returns the blip entity created.
Parameters:
coords
: A vector3 representing the coordinates where the blip should be created.text
: A string representing the name or label to be displayed for the blip.cb
(optional): A callback function to be executed, taking the blip entity as a parameter.
Returns:
The blip entity created.
Functions.CreateRoutedBlipOnEntity()
This function is used to create a blip with a route displayed on the map for a specified entity. It adds a blip for the given entity, sets the blip's name, and enables the route for the blip. The function returns the blip entity created.
Parameters:
entity
: The entity for which the blip should be created.text
: A string representing the name or label to be displayed for the blip.cb
(optional): A callback function to be executed, taking the blip entity as a parameter.
Returns:
The blip entity created.
Functions.CreateBlipOnPosition()
This function is used to create a blip on the map at the specified position. It adds a blip at the given position and sets the blip's sprite. The function returns the blip entity created.
Parameters:
blipType
: The type of blip to be created.position
: A vector3 representing the position where the blip should be created.cb
(optional): A callback function to be executed, taking the blip entity as a parameter.
Returns:
The blip entity created.
Functions.CreateBlipRadius()
This function is used to create a circular blip with a radius on the map. It adds a blip with a specified radius at the given position, sets the blip's details such as color and name, and returns the blip entity created.
Parameters:
position
: A vector3 representing the center position of the blip radius.radius
: The radius of the blip in game units (default is 100.0).name
(optional): A string representing the name or label to be displayed for the blip.color
(optional): The color of the blip (default is 1).cb
(optional): A callback function to be executed, taking the blip entity as a parameter.
Returns:
The blip entity created.
Functions.DestroyBlip()
This function is used to destroy a blip by removing it from the game world. It removes the specified blip entity if it exists and removes it from the blips table. If the blip is successfully destroyed, the function returns true.
Parameters:
blip
: The blip entity to be destroyed.
Returns:
true
if the blip was successfully destroyed, ornil
if the blip does not exist.
Last updated
Was this helpful?