Download the purchased resource from - the official site of FiveM with purchased resources.
2. Modification es_extended
Before running your script, you need to modify the following files in es_extended:
Go to client/functions.lua and make the changes below.
Replace line 156:
function ESX.ShowNotification(message, notifyType, length)
return IsResourceFound('esx_notify') and exports['esx_notify']:Notify(notifyType, length, message)
end
function ESX.ShowAdvancedNotification(sender, subject, msg, textureDict, iconType, flash, saveToBrief, hudColorIndex)
AddTextEntry("esxAdvancedNotification", msg)
BeginTextCommandThefeedPost("esxAdvancedNotification")
if hudColorIndex then
ThefeedSetNextPostBackgroundColor(hudColorIndex)
end
EndTextCommandThefeedPostMessagetext(textureDict, textureDict, false, iconType, sender, subject)
EndTextCommandThefeedPostTicker(flash, saveToBrief == nil or saveToBrief)
end
To start a resource in your server.cfg, ensure that it begins after your framework has been initiated. For instance, if you are using a framework like es_extended, you should start resource after it, like so:
ensure [core] # For example, here is your framework (esx/qb-core)
# DyScrypt Resources
ensure ds-notifications
# Here you run your other resources like esx_policejob etc.
Ensure there are no syntax errors or incorrect paths in your server.cfg.