Origen Network Store
  • 👋Welcome to Origen Network Store
  • 🆘¿You need help?
  • ❓FAQS
  • 👮Origen Police
    • ⚠️Dependencies
    • 🔧Installation
      • SQL
      • Pma-Voice
    • 📙Guide of Use
      • 💻Police CAD
        • Dispatch
        • Citizen Search
        • Reports
        • Vehicles
        • Criminal Code
        • Search and Capture
        • Debtors
        • Federal Management
        • Agent Management
        • Security Cameras
        • Radio
        • Time Control
        • Operations
      • 📄Interaction Menu
      • 📹Vehicle Radar
      • 🚔Sirens System
      • 🔦Evidence System
      • 🎛️Mini Dispatch
      • 🚁Helicopter Camera
      • 🪪Badges
      • ⛓️Federal System
      • 🔫Holster
      • 🐕K9 Dog
    • ❓Frequent Questions
    • ⚙️Configuration
      • Framework
      • Armoury
      • Commands
      • Confiscate
      • Evidences
      • Federal
      • Holster
      • K9
      • Licenses
      • Markers
      • Names
      • Outfits
      • Permissions
      • Props
      • Radio
      • Vehicles
    • #️⃣Exports
      • Client Exports
      • Server Exports
  • 📻Origen Radio
    • ⚠️Dependencies
    • 🔧Installation
      • SQL
      • Pma-Voice
    • ⚙️Configuration
  • 🛠️Origen Admin
    • ⚠️Dependencies
    • 🔧Installation
      • SQL
  • 🏎️Origen Races
    • ⚠️Dependencies
    • 🔧Installation
      • SQL
    • #️⃣Exports
      • Client Exports
  • 🔫Origen Ilegal
    • ⚠️Dependencies
    • 🔧Installation
      • SQL
      • qb-inventory
    • 💬Commands
    • ♻️Exports
  • 🏚️Origen Housing
    • ⚠️Dependencies
    • 🔧Installation
      • SQL
    • ⚙️API
      • Exports
      • Hooks
      • Events
      • Scripts Support
        • 📱LB-Phone
  • 🚙Origen Parking
    • ⚠️Dependencies
    • 🔧Installation
      • QBCore SQL
      • ESX SQL
    • ⚙️Configuration
    • ♻️Exports
  • 💼origen_inventory
    • ⚠️Dependencies
    • 🔧Installation
      • SQL
    • ⛏️Scripts Support
      • 📱LB Phone
        • 2️From v2.1.14
      • 🏨QB Apartments
      • 🔫QB-Weapons
      • 🔨Jobs creator (Jaksam)
    • ♻️Exports
      • 🛥️Client Exports
      • ⚓Server
        • Hooks
    • How to
  • 🕵️‍♂️origen_hostage
    • 🔧Installation
  • 👷‍♂️Origen Masterjob
    • 🔧Installation
      • SQL
      • qb-inventory
      • qs-inventory
      • ox_inventory
    • ♻️Exports
  • QBCORE
    • 🍔origen_hud
      • ❔¿What is origen_hud?
      • 🔧Installations origen_hud
      • ❓FAQS origen_hud
    • 💬origen_notify
      • ❔¿What is origen_notify?
      • 🔧Installations origen_notify
      • ❓FAQS origen_notify
        • 🥬Snippets origen_notify
    • ⏸️origen_pausemenu
      • ❔¿What is origen_pausemenu?
      • 🔧Installations origen_pausemenu
      • ❓FAQS origen_pausemenu
      • 🔑EXPORTS origen_pausemenu
    • 🥷origen_blackmarket
      • ❔¿What is origen_blackmarket?
      • 🔧Installations origen_blackmarket
      • ❓FAQS origen_blackmarket
      • 🥬Snippets origen_blackmarket
    • 🧑‍🤝‍🧑origen_titlemenu
      • ❔¿What is origen_titlemenu?
      • 🔧Installations origen_titlemenu
      • ❓FAQS origen_titlemenu
      • 🥬Snippets origen_titles (soon)
    • 🚗origen_importheist
      • ❔¿What is origen_importheist?
      • 🔧Installations origen_importheist
      • ❓FAQS origen_importheist
      • 🥬Snippets origen_importheist (soon)
  • ESX
    • 🍔origen_hud
      • ❔¿What is origen_hud?
      • 🔧Installations origen_hud
      • ❓FAQS origen_hud
    • 💬origen_notify
      • ❔¿What is origen_notify?
      • 🔧Installations origen_notify
      • ❓FAQS origen_notify
      • 🥬Snippets origen_notify
    • ⏸️origen_pausemenu
      • ❔¿What is origen_pausemenu?
      • 🔧Installations origen_pausemenu
      • ❓FAQS origen_pausemenu
      • 🔑EXPORTS origen_pausemenu
    • 🧑‍🤝‍🧑origen_titlemenu
      • ❔¿What is origen_titlemenu?
      • 🔧Installations origen_titlemenu
      • ❓FAQS origen_titlemenu
      • 🥬Snippets origen_titles (soon)
    • 🚗origen_importheist
      • ❔¿What is origen_importheist?
      • 🔧Installations origen_importheist
      • ❓FAQS origen_importheist
      • 🥬Snippets origen_importheist (soon)
Powered by GitBook
On this page
  1. QBCORE
  2. origen_notify

Installations origen_notify

Previous¿What is origen_notify?NextFAQS origen_notify

Last updated 8 months ago

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.

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 VERSION
DOWNLOAD

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, qb-core/client/functions.lua 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. 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) 
end

CHANGE THE HELP TEXT

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

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

Login into Keymaster:

💬
🔧
https://keymaster.fivem.net/login
https://github.com/qbcore-framework/qb-core
/artifacts/fivem/build_server_windows/master/ / FiveM Artifacts