Var FiveM
ScriptsPacksSuscripcionesDocs
VAR
Var FiveM
ScriptsPacksSuscripcionesDocs
Personalizar temaNosotrosContacto
Comprar ahora

-- 28 sections

  • ›paintball
    • configuration
    • features
    • anti-cheat-integration
    • game-modes
    • api
    • arenas
    • command
    • config
  • ›chess
    • configuration
    • events
    • integration-example
    • exports
    • controls
    • config
  • ›supermarket simulator
    • configuration
    • catalog-manager
    • commands-and-permissions
    • props-editors
    • owning-and-running-a-store
    • config
  • ›coins shop
    • configuration
    • identifier
    • export
    • server-event
    • languages
    • products
    • delivery
    • owner-panel
    • webhooks-discord
  • ›clothes shop
    • installation
    • configuration
    • blips-marker
    • translate
    • change-cam-and-pos
  • ›casino
    • installation
    • configuration
    • main-config
    • horse
    • lucky-whell
    • translate
  • ›drugs
    • installation
    • configuration
    • labs-and-interiors
    • maintenance-and-modules
    • missions
    • street-selling
    • administration
  • ›clothes shop v2
    • installation
    • configuration
    • position
    • advice-and-troubleshooting
    • configure-clothing-shops
  • ›interaction
    • configuration
    • public-api
    • interaction-config-reference
    • dialog-system
  • ›emote
    • configuration
    • config
    • adding-emote
    • menu
    • keybind
    • modules
    • 3d-placement
    • playlist
    • wheel
    • shared-emotes
  • ›crew
    • installation
    • export
  • ›alert job
    • installation
    • server-export
  • ›pin code
    • installation
    • export
  • ›society manager
    • installation
    • export
    • configuration
    • translate
    • max-salary
    • last-invoice
  • ›property
    • installation
    • configuration
    • translate
    • add-interior
  • ›barber shop
    • installation
    • configuration
    • change-menu-open-source
    • blips
    • translate
    • add-shop
  • ›shop with basket
    • installation
    • configuration
    • item-category-config
    • blips-marker
    • translate
    • add-shop
  • ›tattoo shop
    • installation
    • configuration
    • edit-tattoo
    • blips-marker
    • translate
    • add-shop
  • ›gardener job
    • installation
    • configuration
    • change-pos-farm
    • blips
    • translate
  • ›heist atm
    • installation
    • configuration
    • event-money
    • translate
    • police-alert
  • ›heist fleeca
    • installation
    • configuration
    • translate
    • pos-fleeca-heist
  • ›poster job
    • installation
    • configuration
    • change-pos-farm
    • change-poster-texture
    • blips-marker
    • translate
  • ›loading screen
    • installation
    • configuration
  • ›bank
    • installation
    • configuration
    • position
    • blips
    • translate
    • society
  • ›autocardealer
    • installation
    • configuration
    • add-vehicles
    • translate
    • blips
    • coords
  • ›character creator
    • installation
    • configuration
    • translate
    • expression
    • spawn
  • ›multi character
    • installation
    • configuration
    • translate
    • change-character-creator
    • commands
  • ›bill
    • installation
    • configuration
    • translate
    • control

~/docs/alert-job/server-export

alert job docs›
  • installation
  • server-export

Alert Job

Server Export

-- 7 code blocks · 2 min read

get var-jobalerttry it on the test server

SendAlert

Sends an alert notification to all players with the specified job type.

Syntax

lua
exports["Var-Alert"]:SendAlert(title, message, duration, code, alertType, coords, jobType, icon)
Parameters Type Description
title string The title of the alert.
message string The message/content of the alert.
duration number The duration (in ms) that the alert should be active.
code string A code associated with the alert.
alertType (string, optional) The type/category of the alert (default: "general").
coords vector3 The coordinates where the alert originated.
jobType string The job that should receive the alert.
icon string An icon identifier for the alert.

GetPendingAlertsByJob

Retrieves all pending (not accepted) alerts for a specific job type.

Syntax

lua
local alerts = exports["Var-Alert"]:GetPendingAlertsByJob(jobType)
Parameters Type Description
jobType string The job type for which to fetch pending alerts.
Returns Type Description
alerts table A list of pending alerts for the specified job.

Example Usage

lua
local pendingPoliceAlerts = exports["Var-Alert"]:GetPendingAlertsByJob("police")
for _, alert in ipairs(pendingPoliceAlerts) do
    print(alert.title, alert.message)
end

GetAlertsByJob

Retrieves all alerts (both pending and accepted) for a specific job type.

Syntax

lua
local alerts = exports["Var-Alert"]:GetAlertsByJob(jobType)
Parameters Type Description
jobType string The job type for which to fetch alerts.
Returns Type Description
alerts table A list of all alerts for the specified job.

Example Usage

lua
local policeAlerts = exports["Var-Alert"]:GetAlertsByJob("police")
for _, alert in ipairs(policeAlerts) do
    print(alert.title, alert.message, alert.accepted)
end

GetAllPendingAlerts

Retrieves all pending alerts across all job types.

Syntax

lua
local allPendingAlerts = exports["Var-Alert"]:GetAllPendingAlerts()
Returns Type Description
allPendingAlerts table A table containing all pending alerts categorized by job type.

Example Usage

lua
local pendingAlerts = exports["Var-Alert"]:GetAllPendingAlerts()
for job, alerts in pairs(pendingAlerts) do
    print("Job: " .. job)
    for _, alert in ipairs(alerts) do
        print(alert.title, alert.message)
    end
end
previousinstallation

-- on this page

  1. sendalert
  2. getpendingalertsbyjob
  3. getalertsbyjob
  4. getallpendingalerts
VAR
Var FiveM

Scripts FiveM premium. Low resmon, alta calidad. Para ESX, QBCore & Standalone.

28scripts
1,500+ventas

Scripts

  • Marketplace
  • Packs
  • Suscripciones
  • Personalizar tema

Mas populares

  • Supermarket Simulator
  • FiveM Casino Script
  • FiveM Coin Shop
  • FiveM Emote Menu
  • FiveM Paintball Script

Recursos

  • Free Scripts
  • Guides
  • Documentacion
  • Soporte

Empresa

  • Nosotros
  • Contacto
  • Discord

Legal

  • Terminos
  • Privacidad
  • Devoluciones

© 2026 Var FiveM. Todas las ventas son definitivas.

Pagos porTebex