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
  • Firts Steps. Before start to installing
  • ๐Ÿ“•INSTALLATION
  • ๐ŸคExample of Use
  1. ESX
  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

es_extended

Minimal 1.9.4/ Recommended: 1.10.1


๐Ÿ“•INSTALLATION

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.

---@Vars
local helpNotifications = {}
local OrigenNotify = exports.origen_notify

---@Funcs

---@param text string
local function Trim(text)
    return (text:gsub("^%s*(.-)%s*$", "%1"))
end

---@param text string
---@param secondKey string
local function CreateHelpNotification(text, secondKey)
    local key, textAfter = text:match('%[([^%]]+)%]%s*(para%s+.*)')
    if (not key or Trim(key) == '') then
        key, textAfter = text:match('%[([^%]]+)%]%s*(.*)')
    end
    return OrigenNotify:CreateHelp(secondKey and secondKey or (key and key or ''),
        textAfter and textAfter or (text and text or ''))
end

local function RemoveExpiredNotifications()
    local currentTime = GetGameTimer()

    for key, notification in pairs(helpNotifications) do
        if (currentTime - notification.time) > 200 then
            OrigenNotify:RemoveHelp(notification.id)
            helpNotifications[key] = nil
        end
    end
end

---@param text string
---@param key string
local function ShowHelpNotification(text, key)
    local notification = helpNotifications[text]
    if (notification) then
        notification.time = GetGameTimer()
        return
    end
    helpNotifications[text] = { time = GetGameTimer(), id = CreateHelpNotification(text, key or nil) }
end

---@Threads
CreateThread(function()
    while (true) do
        local sleepThread = 1000
        local hasNotifications = next(helpNotifications) ~= nil

        if hasNotifications then
            sleepThread = 200
            RemoveExpiredNotifications()
        end

        Wait(sleepThread)
    end
end)

function ESX.ShowHelpNotification(...)
    ShowHelpNotification(...)
end

function ESX.ShowNotification(...)
    return OrigenNotify:ShowNotification(...)
end

๐ŸคExample of Use

---@Example Thread
CreateThread(function()
    while(true)do
        local w = 1000
        local playerPed = PlayerPedId()
        local playerCoords = GetEntityCoords(playerPed)
        local coords = vec3(255,100,100)
        local dist = #(playerCoords - coords)

        if (dist < 5) then
            --[[
                ---@param message string
                ---@param key string
                ESX.ShowHelpNotification(
                    message,
                    key
                )
            ]]
            ESX.ShowHelpNotification('Interact', 'E')
        end

        Wait(w)
    end
end)

---@Example Command
RegisterCommand('testNotify',
    function(playerId, args)
        --[[
            ---@param message string
            ESX.ShowNotification(
                messsage
            )
        ]]
        ESX.ShowNotification(
            'How are you guys!',
        )
    end, false
)

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

Login into Keymaster:

๐Ÿ’ฌ
๐Ÿ”ง
https://keymaster.fivem.net/login
https://github.com/esx-framework/esx_core
/artifacts/fivem/build_server_windows/master/ / FiveM Artifacts