Alerts

This is a guide of how to add alerts

To add alerts, you need to use our export with this specific data

local data = {
    code = "alert code",
    label = "Alert Label",
    description = "alert description", -- Optional
    coords = coords, -- (Optional) custom coords, will automaticly take the coords if this doesn't exists
    blip = { -- Optional (and all the fields inside it are optional)
      sprite = 280,
      color = 4,
      scale = 1.0,
      name = "911 Call",
      alpha = 255,
      flash = true 
      removeAfter = 5 -- seconds, will remove the blip after this (Optional)
    },
    customSound = "sound mp3 link", -- (Optional) will replace the default sound with a custom sound of your choosing
    jobs = { "police" }, -- Can support multiple jobs, make sure its in a a table and this job exists in the config
}
exports["mr-dispatch"]:CreateAlert(data)

This is all the data available to be used when you create an alert, this has to be triggered from the client side

Last updated