BIT - DOCUMENTATION
  • BIT DOCUMENTATION
  • ℹ️INFORMATION
    • Licensing System
    • Terms of Service
    • Common issues
    • Support
  • ❓HOW TO...
    • Change inventory
      • Add Item
      • Remove Item
    • How to update an asset
    • How to add items
    • Items images
    • Change notifications
  • 🖥️PAID SCRIPTS
    • 💳 BIT-Licenses
      • Installation
      • Commands
      • Triggers & Exports
      • Items
    • 🦠 BIT-Diseases
      • Installation
      • Triggers, Export and Commands
    • 🔓 BIT-Unlock
      • Installation
      • Trigger
      • How it works?
    • 🔊 BIT-Radio
      • Installation
      • Configuration
      • Trigger
      • Items
    • 💊 BIT-DrugsCreator
      • Installation
      • Configuration
      • Trigger
      • Target
    • ⚠️ BIT-Notifications
      • Installation
      • Configuration
      • Trigger
    • 🖐️BIT-InteractiveCity
      • Installation
      • Dependencies
      • Configuration
      • Actions
      • Target
    • 🚘 BIT-UsedCars
      • Installation
      • Dependencies
      • Configuration
      • Target
    • 🗑️ BIT-GarbageJob
      • Installation
      • Dependencies
      • Configuration
      • Target
      • Items
    • 🛠️ BIT-AdvancedTasks
      • Installation
      • Dependencies
      • Custom Voices
      • Custom NPC
      • Rewards
      • Target
    • 🏆 BIT-Rewards
      • Installation
      • SQL
      • Configuration
      • Trigger
    • 📊 BIT-Scoreboard
      • Installation
      • Configuration
    • 🛍️ BIT-Stores
      • Installation
      • Example Items
      • Configuration
      • Create a polyzone
      • Add Items
    • 🔪 BIT-Gangs
      • Installation
      • SQL and Items
      • Configuration
      • Triggers and Exports
    • 💼 BIT-Jobs
      • Installation
      • SQL and Items
      • Create Jobs
      • ProgressBar
      • Configuration
      • Add Jobs
      • Random position
      • Triggers
      • Possible mistakes
    • 🏨 BIT-Motels
      • Installation
      • MLO
      • SQL
      • Configuration
      • Triggers
    • 👗 BIT-ClothingShop v.2
      • Installation
      • Create Images
      • Image Resolution
      • Debug & Test
      • SQL
      • Configuration
      • Possible mistakes
    • ✨ BIT-Creator
      • Installation
      • SQL
      • Configuration
      • Triggers
    • 🏢 BIT-Business 2.0
      • Installation
      • SQL
      • Configuration
      • Colors
      • Income
      • Payment Methods
    • 🚗 BIT-Garage
      • Installation
      • Dependencies
      • Configuration
      • Functions
      • Jobs/Gangs
      • Triggers
      • Commands
      • Possible mistakes
    • 🚘 BIT-VehControl
      • Installation
      • Dependencies
      • Configuration
      • Triggers
      • Possible mistakes
    • 🐾 BIT-Pets
      • Installation
      • SQL
      • Dependencies
      • Configuration
      • Target
      • Triggers
      • Questions
      • Possible mistakes
    • 👮‍♂️ BIT-PoliceMDT
      • Installation
      • SQL
      • Configuration
      • Dependencies
      • Triggers
      • Possible mistakes
    • ⛽ BIT-Fuel
      • Installation
      • Configuration
      • Exports
      • Questions
    • 💰 BIT-Crypto
      • Installation
      • SQL
      • Configuration
      • Triggers & Exports
      • Questions
    • 🚙 BIT-Carrental
      • Installation
      • Configuration
    • 📻 BIT-Carradio
      • Installation
      • Dependencies
      • Configuration
    • 📝 BIT-Reportsystem
      • Installation
      • SQL
      • Configuration
      • Questions
    • 🚦BIT-Drivingschool
      • Installation
      • SQL
      • MLO
      • Configuration
      • Triggers
      • Add routes
      • License Item
      • Transcription
    • ⚓ BIT-BoatSchool
      • Installation
      • SQL
      • Configuration
      • Triggers
      • Add routes
      • License Item
      • Transcription
    • 🛩️ BIT-Flightschool
      • Installation
      • SQL
      • Configuration
      • Triggers
      • Add routes
      • License Item
      • Transcription
    • 🚜 BIT-Dealership
      • Installation
      • Configuration
      • Possible mistakes
    • 🪙 BIT-Coin System
      • Installation
      • Configuration
      • Trigger
    • 🏦 BIT-Bank
      • Installation
      • SQL
      • Configuration
    • 🖥️ BIT-HUD
      • Installation
      • Configuration
      • Triggers
    • 🎮 BIT-Battlepass 3
      • Installation
      • SQL
      • Configuration
      • Commands
      • Triggers
      • Questions
      • Possible mistakes
    • 📋 BIT-Pausemenu
      • Installation
      • SQL
      • Configuration
    • 📦 BIT-TreasureHunting
      • Installation
      • Dependencies
      • Configuration
      • Target
Powered by GitBook
On this page
  • QB
  • ESX
  • BIT-Notifications
  • CODEM-Notification
  • OKOKNotify
  • ORIGEN Notify
  • OX lib
  1. HOW TO...

Change notifications

Most of our scripts have the same structure with notifications. In the configuration file you will find the following function:

function notifications(notitype, message, time)
    -- Change this trigger for your notification system keeping the variables
end

-- Notifications types:
Noti.info = 'info'
Noti.check = 'check'
Noti.error = 'error'

-- Notification time:
Noti.time = 5000

Here are some sample notification scripts for you to adapt the script to your needs. If the notification script is not among these you will have to check the documentation of its developer and adapt it.

QB

function notifications(notitype, message, time)
    QBCore.Functions.Notify(message, notitype, time)
end

-- Notifications types:
Noti.info = 'primary'
Noti.check = 'success'
Noti.error = 'error'

-- Notification time:
Noti.time = 5000

ESX

function notifications(notitype, message, time)
    TriggerEvent('esx:showNotification', message, notitype, time)
end

-- Notifications types:
Noti.info = 'info'
Noti.check = 'success'
Noti.error = 'error'

-- Notification time:
Noti.time = 5000

BIT-Notifications

function notifications(title, message, time, type)
    TriggerEvent("bit-notifications:open", 'Alert', message, time, type)
end

-- Notifications types:
Noti.info = 'info'
Noti.check = 'success'
Noti.error = 'error'

-- Notification time:
Noti.time = 5000

CODEM-Notification

function notifications(notitype, message, time)
    TriggerEvent('codem-notification', message, time, notitype)
end

-- Notifications types:
Noti.info = 'info'
Noti.check = 'check'
Noti.error = 'error'

-- Notification time:
Noti.time = 5000

OKOKNotify

function notifications(title, text, time, type)
    exports['okokNotify']:Alert('Alert', text, time, type)
end

--Notifications types:
Noti.info = 'info'
Noti.check = 'success'
Noti.error = 'error'

--Notification time:
Noti.time = 5000

ORIGEN Notify

function notifications(notitype, message, time)
    exports["origen_notify"]:ShowNotification(message) 
end


Noti.info = 'info'
Noti.check = 'check'
Noti.error = 'error'
Noti.time = 5000

OX lib

function notifications(notitype, message, time)
    lib.notify({
        title = 'Alert',
        description = message,
        type = notitype
    })
end

-- Notifications types:
Noti.info = "inform"
Noti.check = "success"
Noti.error = "error"
PreviousItems imagesNext💳 BIT-Licenses

Last updated 5 months ago

❓