Brunx
  • Home
  • Cinema System
    • Installation
    • Configuration
      • Language
      • Setting up cinema
      • Setting up store
      • Keybinds and commands
    • Frameworks
      • Client guide
      • Server guide
    • Exports and events
      • Client events
      • Server events
      • State bags
Powered by GitBook
On this page
  • Framework event
  • Notify
  1. Cinema System
  2. Frameworks

Client guide

Framework event

Notify

This event is used to synchronize cinema notifications with your city's notification system.

-- This is an example from the brnx-cinemasystem esx.lua file

-- @param css: string
-- @param message: string
-- @param timer: number
RegisterNetEvent('brnx-cinemasystem:notify', function(css, message, timer)
    local types = {
        ['denied'] = 'error',
        ['success'] = 'sucesso',
        ['important'] = 'info',
        ['alert'] = 'info'
    }
    
    exports['esx_notify']:Notify((types[css] or css), nil, message)
end)

PreviousFrameworksNextServer guide