NightZoom LogoNightZoom
BJJ Racing Core/BJJ Racing Core v7/Notifications

Notifications Client

Client-side notification system for BJJ Racing Core v7

This page covers client-side notification functionality for BJJ Racing Core v7. The notification system provides a consistent way to display messages to players.

Core Access

Access the core notification system:

local Core = exports.bjj_racingcore:getCore()

Notification Functions

Core.Functions.Notify(title, description, type)

Display notifications to the player.

Core.Functions.Notify(title, description, type)

Parameters:

  • title: string - Notification title (required)
  • description: string - Notification description (optional)
  • type: string - Notification type (optional, default: 'info')
    • 'info' - Information message (blue)
    • 'success' - Success message (green)
    • 'warning' - Warning message (yellow)
    • 'error' - Error message (red)

Example:

-- Basic notifications
Core.Functions.Notify('Success', 'Data saved successfully', 'success')
Core.Functions.Notify('Error', 'Invalid operation', 'error')
Core.Functions.Notify('Warning', 'Low fuel detected', 'warning')
Core.Functions.Notify('Info', 'Race starting in 30 seconds')

-- Title only
Core.Functions.Notify('Race Complete!')

Avoid spamming notifications - combine related messages or use timers to prevent overwhelming players with too many notifications at once.

The notification system is automatically styled to match the server's UI theme and provides consistent visual feedback across all game systems.