Add Temp Blip

This endpoint allows you to add a new custom blip for a set amount of time to your community's live map!

This API endpoint requires the pro version of Sonoran CAD or higher. For more information, see our pricing page.

This framework export handles the Add Blip API endpoint.

function addTempBlipData(blipId, blipData, waitSeconds, returnToData)
    exports["sonorancad"]:performApiRequest({{
        ["id"] = blipId,
        ["data"] = blipData
    }}, "MODIFY_BLIP", function(_)

    end)

    Citizen.CreateThread(function()
        Citizen.Wait(waitSeconds * 1000)
        exports["sonorancad"]:performApiRequest({{
            ["id"] = blipId,
            ["data"] = returnToData
        }}, "MODIFY_BLIP", function(_)

        end)
    end)
end

Parameters

Last updated