Test Command
You can paste this command into client.lua and test the map.
RegisterCommand('addblip', function()
local deneme = 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' })
Wait(500)
exports['bp_mapui']:UpdateStaticBlip(deneme, { coords = vec3(189.204391, -1610.676880, 29.279907), size = { width = 20, height = 20 }, color = "blue" })
Wait(1000)
exports['bp_mapui']:UpdateStaticBlip(deneme, { coords = vec3(189.204391, -1510.676880, 29.279907), size = { width = 20, height = 20 }, color = "blue" })
Wait(1000)
exports['bp_mapui']:UpdateStaticBlip(deneme, { coords = vec3(189.204391, -1610.676880, 29.279907), size = { width = 20, height = 20 }, color = "blue" })
Wait(3000)
exports['bp_mapui']:RemoveStaticBlip(deneme)
local areid = exports['bp_mapui']:AddAreaBlip({ type = "circle", coords = vector3(182.769226, -1609.727417, 29.313599), radius = 100, color = "blue", opacity = 0.6, name = "Baลlangฤฑรง Alanฤฑ" })
Wait(1000)
exports['bp_mapui']:UpdateAreaBlip(areid, { coords = vector3(182.769226, -1909.727417, 29.313599), radius = 150, color = "green", name = "Yeni Alan" })
Wait(3000)
exports['bp_mapui']:RemoveAreaBlip(areid)
local textid = exports['bp_mapui']:AddTextBlip({ coords = vector3(106.562637, -796.246155, 31.470337), text = "Test Blip", color = "blue", backgroundcolor = "white", size = { width = 120, height = 60, fontSize = 16 }, opacity = 0.8 })
Wait(1000)
exports['bp_mapui']:UpdateTextBlip(textid, { coords = vector3(106.562637, -896.246155, 31.470337), text = "Update Blip", color = "green", size = { fontSize = 18 } })
Wait(3000)
exports['bp_mapui']:RemoveTextBlip(textid)
Wait(2000)
exports['bp_mapui']:DeleteAllBlips(4);
end)
Last updated