๐งInstallations origen_notify
Remember that this resource has verified DMCA protection, and its illegal use or distribution could imply a claim for protection of Title 17 of Chapter 512 (c)(3) of the Digital Millennium Copyright Act.

We utilize the FiveM Tebex Escrow mechanism, launched in the latter part of 2021, for the verification and dissemination of our assets. Hence, any asset acquired via us can be centrally accessed and downloaded via your Keymaster profile using the following link.
Assets function exclusively on servers employing a key associated with the identical Keymaster profile. This approach guarantees the safety of the assets and restricts unauthorized usage, should the files be inadvertently shared. It's an integral component of the FiveM Tebex Escrow mechanism.
Firts Steps. Before start to installing
Prior to initiating the asset installation, verify your Server Artifacts version. It's imperative to operate on one of its recent versions for our assets to function seamlessly. This stipulation is established by FiveM in line with their Asset Escrow Framework.
To refresh your server artifacts, locate the newest version outlined below for Windows:
Setting Up
Direct yourself to the resources directory on your server; this is your asset installation point.
Construct a dedicated directory for the asset, and transfer the unzipped content you downloaded earlier into this directory.
Activating the Asset
It's crucial to ascertain the correct startup of your asset. This could entail incorporating it into your server.cfg or possibly adjusting settings in txAdmin.
Post the installation of any of our assets, a server reboot is necessary to confirm appropriate synchronization with the Keymaster framework.

Instructions for updating client/main.lua
in your GTA V script:
Locate the Code: Navigate to the
client/main.lua
file and search for the code block starting at line 81 which pertains to a thread.Identify the Target Setting: Within this block, you should find an indication related to the use of the target.
Remove the Existing Code: Delete the thread which spans from line 81 to line 128.
Paste the New Code: In place of the removed code, paste the following replacement code:
CreateThread(function()
if Config.UseTarget then
for k, v in pairs(Config.Zones) do
exports["qb-target"]:AddBoxZone("Bank_"..k, v.position, v.length, v.width, {
name = "Bank_"..k,
heading = v.heading,
minZ = v.minZ,
maxZ = v.maxZ
}, {
options = {
{
type = "client",
event = "qb-banking:openBankScreen",
icon = "fas fa-university",
label = "Access Bank",
}
},
distance = 1.5
})
end
else
local notifyId = nil
local bankPoly = {}
for k, v in pairs(Config.BankLocations) do
bankPoly[#bankPoly+1] = BoxZone:Create(vector3(v.x, v.y, v.z), 1.5, 1.5, {
heading = -20,
name="bank"..k,
debugPoly = false,
minZ = v.z - 1,
maxZ = v.z + 1,
})
local bankCombo = ComboZone:Create(bankPoly, {name = "bankPoly"})
bankCombo:onPlayerInOut(function(isPointInside)
if isPointInside then
if notifyId == nil then
notifyId = exports["origen_notify"]:CreateHelp("E", "Acceder al banco")
end
end
BankControl()
else
BankControlPress = false
exports["origen_notify"]:RemoveHelp(notifyId)
notifyId = nil
-- exports['qb-core']:HideText()
end
end)
end
end
end)
Final Step: Once you've made these changes, you should run the command
ensure qb-banking
to ensure that everything is properly integrated.Validation: Check to see if the script is functioning as expected after making these changes.
Locate the Function: In your script,
qb-core/client/functions.lua
search for the existingNotify
function. It might look something likefunction QBCore.Functions.Notify(...)
.Replace with New Code: Once you find it, replace the entire function with the following:
function QBCore.Functions.Notify(text, texttype, length)
exports["origen_notify"]:ShowNotification(text)
end
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 thefunction 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)
end
Always make a backup of your script before making any changes to ensure you can revert if needed.
Locate the Function: In your script,
qb-core/client/drawtext.lua
search for the existing hideText and drawtext function, located from lines 1 to 17 of this code:
local function hideText()
SendNUIMessage({
action = 'HIDE_TEXT',
})
end
local function drawText(text, position)
if type(position) ~= 'string' then position = 'left' end
SendNUIMessage({
action = 'DRAW_TEXT',
data = {
text = text,
position = position
}
})
end
Replace with this code:
local __buffer = {}
local function hideText()
for k, v in pairs(__buffer) do
exports["origen_notify"]:RemoveHelp(v)
__buffer[k] = nil
end
end
local function drawText(text, position)
local key = ""
local formattedText = text or ""
if string.find(formattedText, "%[.-%]") then
key, formattedText = string.match(formattedText, "%[(.)%](.+)")
end
__buffer[text] = exports["origen_notify"]:CreateHelp(key, formattedText or text)
end
Last updated