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) {
let 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 !== null) {
cb(res)
}
})
}Parameters
Property
Type
Description
Last updated
Was this helpful?

