[FREE][STANDALONE] Notify, Announce, Progressbar & Interaction notify

download:
b-notify_v2.zip (2.3 MB)

testing commands:

/notify -- for all notifys
/announce -- for a test announce
/progressbar -- for a test progressbar

exports:

-- this script works with exports e.g (no events.)
exports["b-notify_v2"]:Notify(type, title, message, time) -- types: success, error, lifeinvade, police, medic, mechanic & teamchat
exports["b-notify_v2"]:Announce(type, message, time) -- type: information, admin, restart
exports["b-notify_v2"]:Progressbar(message, time, callback)
exports["b-notify_v2"]:HelpNotify(message, title)
exports["b-notify_v2"]:KillNotify() -- to kill the current helpnotify
-- for examples check the client.lua

Previews:



Code is accessible Yes
Subscription-based Yes
Lines (approximately) 300±
Requirements A bit of Lua knowledge
Support Yes
6 Likes

clean

1 Like

I want to add a main notification for es_extended + qbcore

So why use this when TxAdmin does the same thing?

who wants the default noti wtf

Its just a alternative modern and clean design.

1 Like

For esx you need to replace the ESX.ShowNotification function in the client/functions.lua file.

1 Like

it’s free. why are you complaining?

2 Likes

Can you show the code?

function ESX.ShowNotification(message, type, length)
    if GetResourceState("b-notify") ~= "missing" then
       exports['b-notify']:Alert("NOTIFICATION", message, length, type)
    else
       print("[^1ERROR^7] ^5b-notify^7 is Missing!")
    end
 end

That is not an export from our script. Please check the exports in the post and replace them.

function ESX.ShowNotification(message, notifyType, length)
    if GetResourceState("b-notify") ~= "missing" then
        return exports["b-notify"]:Notify(notifyType, length, message)
    end

    print("[^1ERROR^7] ^5B NOTIFY^7 is Missing!")
end

It is still not our export.

Use this please.

exports["b-notify_v2"]:Notify("success", "info", message, 5000) -- types: success, error, lifeinvade, police, medic, mechanic & teamchat

the code work on es_extended/client/functions.lua ?

it should work if the resource b-notify_v2 is started

image

    if GetResourceState("'b-notify_v2") ~= "missing" then
        return exports['b-notify_v2']:Notify("length", "message", "notifyType")
    end

    print("[^1ERROR^7] ^5ESX Notify^7 is Missing!")
end```

This is not the code i provided in my post.

your code not work

You can use the command /notify ingame and you gonna see that it work. You messed with all parameters of the exports. So again use the code i provided above.