GCMod

Notifications

Overview, architecture, and core flow for gcm_vipsystem.




To change the notification system, edit:

  • gcm_vips/client/editablecl.lua
  • gcm_vips/server/editablesv.lua (for paycheck notifications)
lua
function notify(msg, type)
    -- type = 'inform' | 'error' | 'success'
    lib.notify({
        title = Lang[Config.Language].general.titlle,
        description = msg,
        duration = 7000,
        position = 'top',
        type = type
    })
end
lua
RegisterNetEvent('gcm_vips:notifyPaycheck', function(source, ammount, isVip)
    if isVip then
        TriggerClientEvent('gcm_vips:client:notify', source, 'You have received a bonus $'..ammount..' for your VIP', 'success')
    else
        TriggerClientEvent('gcm_vips:client:notify', source, 'You have received a bonus $'..ammount..' If you want to increase this acquire a membership', 'success')
    end
end)