Troubleshooting
Solutions
Common issues and their solutions for IF Notify.
Quick Fix
Most issues can be resolved by ensuring the resource is started correctly and the configuration is valid.
Installation Issues
Resource not starting
Error: "Resource if-notify failed to start"
Possible Causes:
- Incorrect folder name
- Missing or corrupted files
- Server version too old
Solutions:
Check folder name - Must be exactly
if-notifybash# Correct: resources/if-notify/ # Wrong: resources/if-notify-main/ resources/if-notify/Verify all files exist
if-notify/ ├── fxmanifest.lua ├── config.lua ├── client.lua (encrypted) ├── server.lua (encrypted) └── html/ (encrypted)Update your server to build 5000+ (latest recommended)
Check server console for specific error messages
"ensure if-notify" not working
Make sure the line is added to server.cfg:
ensure if-notify
# NOT:
start if-notify # This also works but 'ensure' is recommendedRestart your server completely after editing server.cfg.
Notification Issues
Notifications not showing
Notifications Don't Appear
Troubleshooting Steps:
Test the notification system
lua-- In client console (F8): exports['if-notify']:ShowNotification('success', 'Test', 'If you see this, it works!', 5000)Check if the resource is running
# In server console: status if-notify # Or in client console (F8): resmonVerify the export syntax
lua-- Correct: exports['if-notify']:ShowNotification('success', 'Title', 'Message', 5000) -- Wrong: exports['if-notify']:ShowNotification(...) -- Wrong resource name TriggerEvent('if-notify', ...) -- Wrong methodCheck for UI conflicts
- Temporarily disable other UI resources
- Check browser console (F8) for JavaScript errors
Ensure you're on the client side
lua-- Server-side (use TriggerClientEvent): TriggerClientEvent('if-notify:show', source, 'success', 'Title', 'Message', 5000) -- Client-side (use export): exports['if-notify']:ShowNotification('success', 'Title', 'Message', 5000)
Notifications appear in wrong position
Check
config.lualuaConfig.Position = 'top-right' -- Make sure this is set correctlyValid positions:
'top-right''top-left''bottom-right''bottom-left''bottom-center''center-right''center-left'
Restart the resource after changing config
# In server console: restart if-notify
Notifications disappear too quickly/slowly
Adjust the duration parameter (in milliseconds):
-- 3 seconds
exports['if-notify']:ShowNotification('info', 'Title', 'Message', 3000)
-- 7 seconds
exports['if-notify']:ShowNotification('info', 'Title', 'Message', 7000)
-- Default (5 seconds) if omitted
exports['if-notify']:ShowNotification('info', 'Title', 'Message')Sound Issues
Sounds not playing
No Sound
Solutions:
Enable sounds in config
luaConfig.Sound = { Enabled = true, -- Make sure this is true Volume = 0.5 -- 0.0 to 1.0 }Check volume isn't muted
luaConfig.Sound.Volume = 0.5 -- Should be > 0Verify game audio isn't muted
- Check GTA V sound settings
- Check Windows volume mixer
Restart the resource
restart if-notify
Sounds too loud/quiet
Adjust in config.lua:
Config.Sound = {
Enabled = true,
Volume = 0.3 -- Lower = quieter (0.0 to 1.0)
}Custom Type Issues
Custom type not showing correct icon/color
Custom Type Not Working
Check the type is defined in config
luaConfig.Types = { ['mytype'] = { color = '#10b981', icon = 'wallet', label = 'MY TYPE' } }Use the exact key name
lua-- Correct (matches the key): exports['if-notify']:ShowNotification('mytype', 'Title', 'Message') -- Wrong: exports['if-notify']:ShowNotification('MyType', ...) -- Case sensitive!Verify icon name is supported - See Custom Types for valid icons
Use valid hex color
luacolor = '#10b981' -- ✅ Correct color = '10b981' -- ❌ Missing # color = 'green' -- ❌ Not hex
Performance Issues
High resmon usage
Normal Performance
IF Notify should show 0.00ms when idle and 0.01-0.02ms when displaying notifications.
If you're seeing high usage:
Check for conflicts with other resources
- Disable other UI resources temporarily
- Check for scripts that spam notifications
Verify you're running latest version
Check for notification spam
lua-- Bad (creates infinite notifications): Citizen.CreateThread(function() while true do exports['if-notify']:ShowNotification('info', 'Spam', 'This spams!') Citizen.Wait(0) -- Too fast! end end) -- Good: Citizen.CreateThread(function() while true do exports['if-notify']:ShowNotification('info', 'Good', 'Reasonable rate') Citizen.Wait(5000) -- 5 seconds between notifications end end)
Integration Issues
ESX/QB integration not working
For ESX:
-- Replace ESX notifications with IF Notify
ESX.ShowNotification = function(msg, type, duration)
local notifType = type or 'info'
exports['if-notify']:ShowNotification(notifType, 'Notification', msg, duration or 5000)
endFor QBCore:
-- In qb-core/client/functions.lua, replace QBCore.Functions.Notify
QBCore.Functions.Notify = function(text, texttype, length)
local type = texttype or 'info'
local duration = length or 5000
exports['if-notify']:ShowNotification(type, 'Notification', text, duration)
endBrowser/UI Issues
UI not visible or glitched
Clear FiveM cache
- Close FiveM completely
- Navigate to
%localappdata%/FiveM/FiveM Application Data/cache - Delete everything in the cache folder
- Restart FiveM
Check for JavaScript errors
- Press F8 in game
- Look for red errors in console
- Screenshot and send to support
Verify NUI is enabled
- Make sure you don't have NUI disabled in any other resources
Still Having Issues?
Get Help
If none of these solutions work:
- Join our Discord - discord.gg/7FxW9JaDnx
- Open a support ticket with:
- Your server.cfg line for if-notify
- Server console logs
- Client F8 console screenshot
- Description of the issue
- Steps to reproduce
We're here to help! 💚
