Exports
All exports are client only.
createBlip
Creates a new blip
parameters:
table
group:
string
coords:
vector3
text:
string
sprite:
number
color?:
number
scale?:
number
shortrange?:
boolean
category?:
number
disableText?:
boolean
defaultDisabled?: boolean
onCreate?: function(blip: integer)
Return:
id:
number
Parameters Explained
group: This is the group name to categorize the blip, this must be provided to categorize the blips.
coords: Coordinates of the blip
text: This is the label of the blip and also the identifier, blips with unique names/text will be individual blips that can be toggled. Blips with the same text such as "General Store", will all be grouped into a subcategory called "General Store" and all toggled on/off at once.
disableText: This stops AddTextEntry from running as some scripts such as ox_inventory set the text themselves
defaultDisabled: The first time this blip is created it will be disabled by default
onCreate: This function will run every time a blip is created/made visable and return the blip id
addTextEntry
Adds text entry to a blip by ID and matching text
name:
string
text:
string
removeBlipById
Remove a blip by its ID
id:
number
removeBlipByName
Remove a blip by its name/label/text, if its a subgroup (name used more than once) then all blips with the matching name will be removed
name:
string
openBlipsMenu
Opens the blip menu UI.
Last updated