Skip to main content
The Notification component displays on-screen toast messages to provide feedback to players. Supports multiple styles, custom icons, durations, and persistent notifications.

Overview

Access via Notification (client-side only).

Multiple Types

Success, error, warning, info, standard

Custom Styling

Custom colors and styles

Auto-Dismiss

Configurable duration (default 2.5s)

Persistent

Sticky notifications with manual dismiss
Client-Side Only: Notifications are local to each player. Use TriggerClientEvent from server to send notifications.

Standard Notifications

Success

Display success message (green). Parameters: Example:

Error

Display error message (red). Parameters: Example:

Warn

Display warning message (orange/yellow). Parameters: Example:

Info

Display info message (blue). Parameters: Example:

Standard

Display neutral message (gray). Parameters: Example:

Custom

Display notification with custom styling. Parameters: Example:

Persistent Notifications

Persistent notifications stay on screen until manually dismissed. Useful for ongoing events, warnings, or status indicators.

Persistent.Success

Parameters: Example:

Persistent.Error

Example:

Persistent.Warn

Example:

Persistent.Info

Example:

Persistent.Standard

Example:

Persistent.Custom

Parameters: Example:

Persistent.Remove

Remove a persistent notification. Parameters: Example:

Clear

Clear ALL notifications (temporary and persistent). Parameters: Example:

Complete Examples

Server to Client

Wanted Level System

Race System

Fuel Warning

Heist System


Icon Reference

Common Font Awesome icon names:

General

  • check - Checkmark
  • xmark - X mark
  • circle-info - Info circle
  • triangle-exclamation - Warning triangle
  • bell - Bell

Money & Shopping

  • dollar-sign - Dollar sign
  • coins - Coins
  • credit-card - Credit card
  • shopping-cart - Shopping cart
  • cash-register - Cash register

Vehicles

  • car - Car
  • truck - Truck
  • motorcycle - Motorcycle
  • gas-pump - Gas pump
  • wrench - Wrench

People & Jobs

  • user - User
  • shield - Shield (police)
  • truck-medical - Medical
  • briefcase - Business
  • hammer - Mechanic

Actions

  • key - Key
  • lock - Lock
  • unlock - Unlock
  • door-open - Door open
  • box - Box

Status

  • heart - Health
  • battery-full - Full battery/status
  • signal - Signal
  • wifi - Wifi/connection
Full icon list: https://fontawesome.com/icons

Best Practices

Appropriate Types

Duration Guidelines

Persistent Notifications


Next Steps

Progress Bars

Timed action progress bars

Menus

Input forms and menu systems

HUD Exports

Main HUD controls

Status System

Hunger, thirst, stress
Icons: All Font Awesome icons work. Use https://fontawesome.com/icons to find icon names. Use the name without the “fa-” prefix.
Spam: Avoid spamming notifications. If you’re sending multiple notifications rapidly, consider using a persistent notification that updates instead.