QBCoreshared
QBCore.Functions.Notify
QBCore shared documentation with a FiveM Lua example.
Summary
Shows a notification to the player. Works client-side directly, or server-side by passing the source.
Returns
void
Parameters
textstringThe message.typestring'success', 'error', or 'primary'.durationnumberOptional milliseconds.Example
-- CLIENT
QBCore.Functions.Notify('Job complete', 'success', 5000)
-- SERVER (to a player)
TriggerClientEvent('QBCore:Notify', src, 'Welcome', 'primary')Common pitfalls
- Client and server call it slightly differently — server usually triggers the notify event to a source.
- Notification styling depends on the server's qb-core version/theme.
Related functions
Related guides
FiveM scripts done right
Optimized, dual-framework scripts for QBCore and ESX from Viper Development — escrow protected, delivered instantly to your Cfx portal.
Browse Scripts →