A comprehensive standalone blip manager designed to streamline the creation, management, and manipulation of blips in your projects. It provides a robust set of functions for creating, updating, toggling, and removing blips.
Functions
create_blip
Creates a new blip.
--- Define blip datalocal blip = { coords =vector3(100.0, 200.0, 30.0), -- Coordinates sprite =1, -- Sprite ID color =2, -- Color ID scale =0.8, -- Scale label ="Shop", -- Label category ="shops" -- Category}--- Utils objectutils.blips.create_blip(blip)--- Direct exportexports.boii_utils:create_blip(blip)
--- Utils objectutils.blips.remove_all_blips()--- Direct exportexports.boii_utils:remove_all_blips()
remove_blips_by_category
Remove blips by specified category.
--- Specify the category to removelocal category ='shops'--- Utils objectutils.blips.remove_blips_by_category(category)--- Direct exportexports.boii_utils:remove_blips_by_category(category)
toggle_blips_by_category
Toggle blip visibility by category.
--- Define categorylocal category ='shops'--- Set to true to show, false to hidelocal state =true--- Utils objectutils.blips.toggle_blips_by_category(category, state)--- Direct exportexports.boii_utils:toggle_blips_by_category(category, state)
update_blip_property
Update properties of a blip.
--- Define blip IDlocal blip ='your blip id'--- Specify propert to update; (label, sprite, color, scale)local property ='label'--- Define value for the propertylocal value ='New Label'--- Utils objectutils.blips.update_blip_property(blip, property, value)--- Direct exportexports.boii_utils:update_blip_property(blip, property, value)