Module cl_blips

Blip System

Functions

GetBlips () GetBlips function.
CreateBlip (identifier, name, coords, blipsprite, blipscolour, displayid, scale, shortrange, heading, flash) CreateBlip function.
DeleteBlip (identifier) DeleteBlip function.
UpdateBlip (identifier, coords, heading) UpdateBlip function.


Functions

GetBlips ()
GetBlips function. This function returns the 'mapblips' table which contains all the blips on the map. Each blip in the 'mapblips' table is a table itself containing the blip's properties such as its coordinates, color, icon, etc. This will return the 'mapblips' table containing all the blips on the map.

Returns:

    table

Usage:

    local blips = exports.sd_util:GetBlips()
CreateBlip (identifier, name, coords, blipsprite, blipscolour, displayid, scale, shortrange, heading, flash)
CreateBlip function. This function creates a blip on the map.

Parameters:

  • identifier The blip identifier. string
  • name The blip name. string
  • coords The blip coordinates. vector3
  • blipsprite The blip sprite. number
  • blipscolour The blip color. number
  • displayid The blip display id. number
  • scale The blip scale. number
  • shortrange The blip short range. boolean
  • heading The blip heading. boolean
  • flash The blip flash. boolean

Usage:

    exports.sd_util:CreateBlip("blip", "Blip", vector3(0.0, 0.0, 0.0), 1, 1, 0, 1.0, false, false, false)
DeleteBlip (identifier)
DeleteBlip function. This function deletes a blip on the map.

Parameters:

  • identifier The blip identifier. string

Usage:

    exports.sd_util:DeleteBlip("blip")
UpdateBlip (identifier, coords, heading)
UpdateBlip function. This function updates a blip on the map.

Parameters:

  • identifier The blip identifier. string
  • coords The blip coordinates. vector3
  • heading The blip heading. number

Usage:

    exports.sd_util:UpdateBlip("blip", vector3(0.0, 0.0, 0.0), 0.0)
generated by LDoc 1.5.0 Last updated 2023-11-28 19:34:18