Notify
client/custom/notify
Config.Notify = 'default' -- default, customif Config.Notify ~= 'default' then
return
end
local vRP
if Config.Framework == 'vrp' then
vRP = Proxy.getInterface('vRP')
end
function Notify(message, type)
if Config.Framework == 'qb-core' then
TriggerEvent('QBCore:Notify', message, type)
elseif Config.Framework == 'qbox' then
exports['qbx_core']:Notify(message, type)
elseif Config.Framework == 'esx' then
TriggerEvent('esx:showNotification', message, type)
elseif Config.Framework == 'vrp' then
vRP.notify({ message, type })
end
endserver/custom/notify
Last updated
Was this helpful?