Add Blip
This endpoint allows you to add a new custom blip to your community's live map!
function addBlip(coords, colorHex, subType, toolTip, icon, dataTable, cb)
local data = {{
["serverId"] = GetConvar("sonoran_serverId", 1),
["blip"] = {
["id"] = -1,
["subType"] = subType,
["coordinates"] = {
["x"] = coords.x,
["y"] = coords.y
},
["icon"] = icon,
["color"] = colorHex,
["tooltip"] = toolTip,
["data"] = dataTable
}
}}
exports["sonorancad"]:performApiRequest(data, "ADD_BLIP", function(res)
if cb ~= nil then
cb(res)
end
end)
endParameters
Property
Type
Description
Last updated
Was this helpful?

