Installation

1. Start Resource

Download the purchased resource from CFX Portal - 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

With:

ESX.ShowNotification = function(msg, flash, saveToBrief, hudColorIndex, title, subject, icon)
    exports['ds-notification']:addNotification(nil, nil, nil, nil, msg, 10000)
end

Then replace line 178:

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

With:

3. Start Resource

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 there are no syntax errors or incorrect paths in your server.cfg.

Mis à jour