🔧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.

Login into Keymaster: https://keymaster.fivem.net/login


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.

Experiencing issues with FileZilla? On occasion, file transmission tools can disrupt encrypted files, causing startup issues with the asset. We advocate for the use of WinSCP, available at the given link. There have been documented challenges with FileZilla previously.

To refresh your server artifacts, locate the newest version outlined below for Windows:

Setting Up

  1. Direct yourself to the resources directory on your server; this is your asset installation point.

  2. 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.


REQUIERED RESOURCES MINIMAL VERSIONDOWNLOAD

qb-core

Minimal 1.2 / Recommended: 1.2.6

EXAMPLE HOW TO PUT INTO A QB-SHOPS THE HELP MENU

Instructions for updating client/main.lua in your GTA V script:

  1. 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.

  2. Identify the Target Setting: Within this block, you should find an indication related to the use of the target.

  3. Remove the Existing Code: Delete the thread which spans from line 81 to line 128.

  4. 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)
  1. Final Step: Once you've made these changes, you should run the command ensure qb-banking to ensure that everything is properly integrated.

  2. Validation: Check to see if the script is functioning as expected after making these changes.


CHANGE THE NOTIFY'S

  1. Locate the Function: In your script, search for the existing Notify function. It might look something like function QBCore.Functions.Notify(...).

  2. 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
  1. Save and Test: After replacing, make sure to save your file and test the function in your game to ensure it's working as expected.


Always make a backup of your script before making any changes to ensure you can revert if needed.

Last updated