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
  • Ice-O-Rink System
    • Installation
    • Configuration
      • Ice Skates
      • Language
      • Setting up controls
      • Setting up wardrobe
      • Setting up peds
      • Setting up store
      • Keybinds and commands
    • Frameworks
      • Server guide
    • Inventorys
      • Server guide
      • Items
    • Exports and events
      • Server exports
      • Server events
      • State bags
Powered by GitBook
On this page
  • Framework event
  • Notify
  1. Cinema System
  2. Frameworks

Client guide

Make sure to check the qb.lua and esx.lua files for examples on how to implement the script for your framework. They are always up to date with the latest changes.

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

Last updated 19 days ago