❔FAQ & Troubleshooting
Q: I set Config.UseTxAdminAnnouncements = true
, but I still see the default txAdmin notifications. Why?
A: You need to disable the default txAdmin announcements in your server.cfg
by adding the following lines:
setr txAdmin-hideDefaultScheduledRestartWarning true
setr txAdmin-hideDefaultAnnouncement true
Risk Notify & Progressbar for ESX
Installation for ESX users
1. Help Notify Integration
Go to:
es_extended/client/functions.lua
Find the function
ESX.ShowHelpNotification
Replace the entire function with:
function ESX.ShowHelpNotification(message, key) exports['risk-notify']:HelpNotify(key or "E", message) end
2. Notification Integration
Find the function
ESX.ShowNotification
Replace it with:
function ESX.ShowNotification(message, notifyType, length) exports['risk-notify']:Notify({ type = notifyType or 'info', -- success | error | info title = 'Notification', -- or your own title message = message, duration = length or 8000 -- milliseconds }) end
3. Progressbar Integration
Find the function
ESX.Progressbar
Replace it with:
function ESX.Progressbar(message, length, options) options = options or {} exports['risk-notify']:startProgress( length or 5000, message, { prop = options.prop, freeze = options.freeze or false, anim = options.anim, onFinish = options.onFinish, onCancel = options.onCancel, } ) end
Optional: Replace
ESX.CancelProgressbar
with:function ESX.CancelProgressbar() if exports['risk-notify'].cancelProgress then exports['risk-notify']:cancelProgress() end end
Done! All ESX notifications and progress bars now use your Risk Notify system.
If you need more help CONTACT
Risk Notify & Progressbar for QBCore
Help‑Notify
Open qb‑core/client/functions.lua.
Add (or replace) the helper so every script can call it globally:
function QBCore.Functions.HelpNotify(message, key)
exports['risk-notify']:HelpNotify(key or "E", message)
end
Notification wrapper
Locate the original QBCore.Functions.Notify
and replace the whole function with:
function QBCore.Functions.Notify(message, notifyType, length)
exports['risk-notify']:Notify({
type = notifyType or 'info',
title = 'Notification',
message = message,
duration = length or 8000
})
end
(The old signature is preserved, so every existing QBCore.Functions.Notify(...)
call still works.) QBCore Dokumentation
#### 3. Progressbar wrapper
Replace the stock progress‑bar helper with:
function QBCore.Functions.Progressbar(name, label, duration, useWhileDead, canCancel, disableControls, anim, prop, onFinish, onCancel)
exports['risk-notify']:startProgress(
duration or 5000,
label,
{
anim = anim,
prop = prop,
freeze = not canCancel,
onFinish = onFinish,
onCancel = onCancel
}
)
end
Optional cancellation helper (keeps API parity with ESX example):
function QBCore.Functions.CancelProgressbar()
if exports['risk-notify'].cancelProgress then
exports['risk-notify']:cancelProgress()
end
end
(The wrapper keeps every original parameter so scripts using the long QBCore progress‑bar call continue to function.) GitHub
Last updated