TopX Notify Free Release

poster

Client Side Usage:

exports['TopXNotify']:Notify(type, time, message, sound)
exports.TopXNotify:Notify(type, time, message, sound)

Server Side Usage:

TriggerClientEvent("TopXNotify:Notify", source, type, time, message, sound)

Examples:

Success

68747470733a2f2f63646e2e646973636f72646170702e636f6d2f6174746163686d656e74732f313133363938303930323634303131313731372f313137333934373836373432363231343031302f696d6167652e706e673f65783d36353635636632362669733d36353533356

Error

68747470733a2f2f63646e2e646973636f72646170702e636f6d2f6174746163686d656e74732f313133363938303930323634303131313731372f313137333934373831303738363332383730372f696d6167652e706e673f65783d36353635636631382669733d36353533356

Warning

68747470733a2f2f63646e2e646973636f72646170702e636f6d2f6174746163686d656e74732f313133363938303930323634303131313731372f313137333934383032333530383832383139302f696d6167652e706e673f65783d36353635636634622669733d36353533356

Info

68747470733a2f2f63646e2e646973636f72646170702e636f6d2f6174746163686d656e74732f313133363938303930323634303131313731372f313137333934373931313338363731343133322f696d6167652e706e673f65783d36353635636633302669733d36353533356

Download

9 Likes

I want to add code that should be the main notification of qb-core

3 Likes

At the first you need to ensure Topx Notify before qb-core script then you can replace this function you will find it in

qb-core/client/functions.lua
function QBCore.Functions.Notify(text, textype, length)
    if type(text) == "table" then
        local ttext = text.text or 'Placeholder'
        local caption = text.caption or 'Placeholder'
        local ttype = textype or 'info'
        local length = length or 5000
        exports['TopXNotify']:Notify(ttype, length, ttext, true) -- caption or title not allowed on our notify yet
    else
        local ttype = textype or 'info'
        local length = length or 5000
        exports['TopXNotify']:Notify(ttype, length, text, true)
    end
end
4 Likes

Thank you very much, you are a very respectful and creative person :heart::heart::heart::heart:

3 Likes

Amazing work keep up the good work

4 Likes

how can i join iam egyptian

3 Likes