KLB Notify

πŸ“’ KLB-Notify

A simple, standalone and modern notification system for FiveM. Built for both standalone use and full QBCore compatibility.


πŸ”§ Installation

🧩 1. Standalone

Just add Klb_Notify to your resources folder and start it in your server.cfg:

ensure Klb_Notify

Use it anywhere in your code:

exports['Klb_Notify']:Alert("βœ… SUCCESS", "System calibrated β€” all functions operational.", 5000, 'success')

βš™οΈ 2. QBCore Integration (optional)

Insert this function into your qb-core/client/functions.lua around line 170:

function QBCore.Functions.Notify(text, textype, length)
    local ttype   = textype or 'info'
    local tlength = length or 8500

    if type(text) == "table" then
        local ttext   = text.text or 'Placeholder'
        local caption = text.caption or ''
        exports['Klb_Notify']:Alert(ttext, caption, tlength, ttype)
    else
        exports['Klb_Notify']:Alert(text or 'Placeholder', "", tlength, ttype)
    end
end

This replaces the default notify handler, so all QBCore scripts using QBCore.Functions.Notify() will automatically use KLB-Notify.


πŸ’¬ Example Commands

You can test each notification type by pasting these in a client file or directly in F8 console for quick preview:


🧠 Notes

  • Works with any framework (QBCore, ESX, or standalone).

  • Supports HTML styling inside message text (<span style="color:#ffc107"> etc).

Last updated