For the complete documentation index, see llms.txt. This page is also available as Markdown.

Exports, Events

On this page you can see the exports of the map script.

Map open and close exports

exports['bp_mapui']:openmap('minimap', {['width'] = '18%', ['height'] = '18%', ['radius'] = '0', ['top'] = '80%', ['left'] = '1%', ['opacity'] = '0.9' , ['zoom'] = '4'})
exports['bp_mapui']:openmap('bigmap', {['width'] = '70%', ['height'] = '70%', ['radius'] = '0', ['top'] = '50%', ['left'] = '50%', ['opacity'] = '1.0' , ['zoom'] = '4'})
  1. maptype : 'minimap' or 'bigmap'

  2. data : width,height, radius(for circle) , top , left , opactity and zoom

  3. zoom : 3, 4 ,5

exports['bp_mapui']:closemap();

Add Static Blip (or Dynamic)

exports['bp_mapui']:AddStaticBlip({['name'] = 'Police Run!', ['type'] = 'image', ['coords'] = vec3(206.887909, -1632.079102, 29.717896), ['size'] = {['width'] = 20, ['height'] = 20}, ['url'] = 'https://docs.fivem.net/blips/radar_police_chase.gif'  })

AddStaticBlip >> With AddStaticBlip you can add a blip to be added to the list. return >> blipid

  1. name : Blip name

  2. type : 'image' or 'svg'

 exports['bp_mapui']:UpdateStaticBlip(blipid, { coords = vec3(189.204391, -1610.676880, 29.279907), size = { width = 20, height = 20 }, color = "blue" })

UpdateStaticBlip >> You can change the coordinate and size of an actively created blip.

exports['bp_mapui']:RemoveStaticBlip(blipid)

RemoveStaticBlip >> You can delete Blip here.

Add Area Blip

AddareaBlip >> You can add area blip here !

  1. type = 'cricle' , 'square' , 'poly'

UpdateAreaBlip >> Here you can update the area blip !

Add Text Blip

DELETE ALL BLIPS

This export deletes all blips.

  • 1 > deletes only static blips

  • 2 > deletes only area blips

  • 3 > deletes only text blips

  • 4 > deletes all clips

Last updated