๐งInstallation
Installation for QBCore
Step 1
Go to resources folder and put into that folder the resource
Step 2
Then go to server.cfg and put ensure origen_notify
Step 3 (Client Side)
If you want to change the Notifications for your server. In your script qb-core/client/functions.lua search for the existing Notify function. It might look something like: function QBCore.Functions.Notify(...)
When you find this section in your file, remplace this code for this code:
function QBCore.Functions.Notify(text, texttype, length)
exports["origen_notify"]:ShowNotification(text)
endStep 4 (Server Side)
Now we will proceed to replace the notifications on the server side, for this we will go to qb-core/server/functions.lua. We will look for the function QBCore.Functions.Notify(...). and we will replace it with the following code:
function QBCore.Functions.Notify(source, text, texttype, length)
exports["origen_notify"]:ShowNotification(source, text)
endStep 5 (Change the DrawText)
Locate the file: In your script,
qb-core/client/drawtext.lua:Replace the code with this file:
Step 6
Enjoy!! ๐
Installation for ESX
Step 1
Go to resources folder and put into that folder the resource
Step 2
Then go to server.cfg and put ensure origen_notify
Step 3
Navigate to the resource es_extended/client/functions.lua. Once in the resource, delete the functions [ESX.ShowHelpNotification] and [ESX.ShowNotification]:
Next, copy the following lines of code that I will provide below for use.
Locate the Function: In your script, es_extended/client/functions.lua find this functions [ESX.TesxUI] and [ESX.HideUI]:
Replace with this code:
Step 4
Enjoy!! ๐
Last updated