Code Studio
Tebex DiscordYoutubeGitHub
  • 🌟Welcome to Code Studio
  • Overview
    • 💡What we do
  • 📜Our Scripts
    • Ultimate License System
      • 🛠️Setup
    • Bodycam & Dashcam
      • 🛠️Setup
    • Weather Management
      • 🛠️Setup
    • Car Radio - Car Play Pro
      • 🛠️Setup
    • Modern HUD
      • 🛠️Setup
    • Modern Shops
      • 🛠️Setup
    • Advanced Radio
      • 🛠️Setup
    • Modern ID Card
      • 🛠️Setup
    • Billing Invoice System
      • 🛠️Setup
    • Radial Menu
      • 🛠️Setup
    • Death Screen
      • 🛠️Setup
    • Boss & Gang Menu
      • 🛠️Setup
    • Advanced Notification
      • 🛠️Setup
    • Fingerprint Scanner
      • 🛠️Setup
    • Drunk System + Alcohol Tester
      • 🛠️Setup
    • Advanced Job + ID Card
      • 🛠️Setup
    • Drug Selling + Level Based
      • 🛠️Setup
    • Multi Job System
      • 🛠️Setup
    • Discord2FiveM [V2]
      • 🛠️Setup
    • Modern Radio
      • 🛠️Setup
    • Grappling Gun
      • ♦️Standalone
  • ⚠️FiveM Escrow Protection FAQ
    • Home
    • Error parsing script ... <\1>
    • Failed to verify protected resource
    • You lack the required entitlement
    • What to do if nothing is fixing the errors
Powered by GitBook
On this page
  • Config
  • Setup Guide Example for QBCore and ESX
  1. Our Scripts
  2. Advanced Notification

Setup

This is a detailed setup guide for Advanced Notification. If you have any questions before making a purchase, you can contact us on Discord

PreviousAdvanced NotificationNextFingerprint Scanner

Last updated 1 year ago

Config

  • Notification Panel Settings - You can enable/disable the notification panel - Add a command to open the panel, or you can also open it with a key - You can customize the design mode [Customize = Notification customize section | Position = Notification Position Changer]

  • Default Notification Settings - You can set default notification settings, which will apply when you trigger a notification without specifying a notification type, or if that type of notification doesn't exist in CodeStudio.Type

  • Adding Standard Notification Types - You can add unlimited notification types - Format:

    ['type'] = { -- Notification Type
            title = 'Default Title',    -- Add Default Title
            icon = 'icon name',         -- Add Icon Name
            iconColor = '#C53030',      -- Icon Color
    }

    - You can refer to for icons - If you don't specify an icon or icon color, the system will automatically fetch it from CodeStudio.DefaultNotification

  • Open Notification Panel

    Client Side Event
    TriggerEvent('cs:notify:panel')
  • Standard Notification Event

    Export Method
    exports['cs_notification']:Notify({
        type = 'twitter',  
        title = 'Twitter',    --Put false if you dont want title
        description = 'This is Sample Notification',
        duration = 3000
    })

    Server Event Method
    TriggerClientEvent('cs:notify', source, {
        type = 'twitter',  
        title = 'Twitter',    --Put false if you dont want title
        description = 'This is Sample Notification',
        duration = 3000
    })

    Client Event Method
    TriggerEvent('cs:notify', {
        type = 'twitter',  
        title = 'Twitter',    --Put false if you dont want title
        description = 'This is Sample Notification',
        duration = 3000
    })
  • Custom Notification Event

    TriggerEvent('cs:notify', {
        type = 'facebook',
        title = 'Facebook',
        description = 'This is Customised Notification',
        duration = 3000,
        style = {
            backColor = '#3a6ecf',
            textColor = "#fff"
        }
    })

Setup Guide Example for QBCore and ESX

  • function QBCore.Functions.Notify(text, texttype, length)
        TriggerEvent('cs:notify', {
            type = texttype,
            title = false,
            description = text,
            duration = length
        })
    end

  • function ESX.ShowNotification(message, type, length)
        TriggerEvent('cs:notify', {
            type = type,
            title = false,
            description = message,
            duration = length
        })
    end

For QB: Replace QBCore.Functions.Notify with this

For ESX: Replace ESX.ShowNotification with this

📜
🛠️
⬇️
⬇️
Fontawesome