Installation

circle-info

QBCore (client/functions.lua)

function QBCore.Functions.Notify(text, texttype, length)
    exports['ph-notify']:Notify(texttype or 'info', 'SYSTEM', text, length)
end
-- Simple Info
exports['ph-notify']:Notify('info', 'SYSTEM', 'Welcome to the server!')

-- Warning with custom time
exports['ph-notify']:Notify('warning', 'FUEL', 'Your tank is almost empty.', 7000)

circle-info

ESX Version (client/functions.lua)

  • Option 1 — ESX style override (recommended) add this in a client file that loads early:

function ESX.ShowNotification(text, texttype, length)
    exports['ph-notify']:Notify(texttype or 'info', 'SYSTEM', text, length)
end
  • Then anywhere in ESX you can use:

ESX.ShowNotification('Hello from ESX!', 'success')
Option 2Custom ESX Notify Function (safer)
  • Option 2 — Custom ESX Notify Function (safer)

  • If you don’t want to override ESX default:

Usage:

Last updated