GCMod
  • Welcome
  • Information
    • 🛒Store
    • 🌎Discord
    • 📓Licensing System
    • 📃Terms of service
  • Resources
    • VIP System
      • How to use
      • Configuration
        • Connectqueue Integration
        • Discord Integration
        • Notifications
        • Tebex Integration
Powered by GitBook
On this page
  1. Resources
  2. VIP System
  3. Configuration

Notifications

To be able to modify the notification system used, we just need to access the file located at: gcm_vips/client/editablecl.lua, and modify it as desired.

function notify(msg, type)
    -- type = 'inform' or 'error' or 'success'
    lib.notify({
        title = Lang[Config.Language].general.titlle,
        description = msg,
        duration = 7000,
        position = 'top',
        type = type
    })
end

You can also modify the paycheck notifications. To do so, you must access the file located at: gcm_vips/client/editablesv.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)
PreviousDiscord IntegrationNextTebex Integration

Last updated 3 months ago