S-Service
S-Service
  • S-SERVICE
    • πŸ’₯About S-Service
  • Docs for our Products
    • πŸ”«S-Gangwar
      • πŸ› οΈInstallation
      • βš™οΈConfiguration
      • 🧩Exports and Events
      • πŸ“ŒInformations / Typical Errors
    • ✨S-FFA
      • πŸ› οΈInstallation
      • βš™οΈConfiguration
      • 🧩Exports and Events
      • πŸ“ŒInformations / Typical Errors
    • πŸ‘¨β€βš•οΈS-Revivestation
      • πŸ› οΈInstallation
      • βš™οΈConfiguration
      • 🧩Exports and Events
      • πŸ“ŒInformations / Typical Errors
    • πŸ“¦S-Postal
      • πŸ› οΈInstallation
      • βš™οΈConfiguration
      • 🧩Exports and Events
      • πŸ“ŒInformations / Typical Errors
    • πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦S-Factions
      • πŸ› οΈInstallation
      • βš™οΈConfiguration
      • 🧩Exports and Events
      • πŸ“ŒInformations / Typical Errors
    • πŸ–ΌοΈS-Loadingscreen
      • πŸ› οΈInstallation
      • βš™οΈConfiguration
      • 🧩Exports and Events
      • πŸ“ŒInformations / Typical Errors
    • πŸ“©S-Identity
      • πŸ› οΈInstallation
      • βš™οΈConfiguration
      • 🧩Exports and Events
      • πŸ“ŒInformations / Typical Errors
    • πŸš—S-Garage
      • πŸ› οΈInstallation
      • βš™οΈConfiguration
      • 🧩Exports and Events
      • πŸ“ŒInformations / Typical Errors
    • 🎫S-Namechange
      • πŸ› οΈInstallation
      • βš™οΈConfiguration
      • 🧩Exports and Events
      • πŸ“ŒInformations / Typical Errors
    • πŸ—ΊοΈS-HUD
      • πŸ› οΈInstallation
        • HUD setup into ESX
      • βš™οΈConfiguration
      • 🧩Exports and Events
      • πŸ“ŒInformations / Typical Errors
    • πŸ””S-Notify
      • πŸ› οΈInstallation
        • Notify setup into ESX
      • βš™οΈConfiguration
      • 🧩Exports and Events
      • πŸ“ŒInformations / Typical Errors
    • πŸ€–S-Admin
      • πŸ› οΈInstallation
      • βš™οΈConfiguration
        • Permissions
        • Commands
      • 🧩Exports and Events
      • πŸ“ŒInformations / Typical Errors
    • 🚘S-Rental
      • πŸ› οΈInstallation
      • βš™οΈConfiguration
      • 🧩Exports and Events
      • πŸ“ŒInformations / Typical Errors
    • πŸ“‚S-Scoreboard
      • πŸ› οΈInstallation
      • βš™οΈConfiguration
      • 🧩Exports and Events
      • πŸ“ŒInformations / Typical Errors
    • πŸ’€S-Deathscreen
      • πŸ› οΈInstallation
      • βš™οΈConfiguration
      • 🧩Exports and Events
      • πŸ“ŒInformations / Typical Errors
    • 🏠S-Housing
      • πŸ› οΈInstallation
        • Guides
          • Insert new Shells
        • Default Settings
          • Default Garages
          • Default Shells
      • βš™οΈConfiguration
      • 🧩Exports and Events
      • πŸ“ŒInformations / Typical Errors
    • πŸ§‚S-SaltyNUI
      • πŸ› οΈInstallation
      • βš™οΈConfiguration
      • 🧩Exports and Events
      • πŸ“ŒInformations / Typical Errors
    • πŸ’»S-Inventory
      • πŸ› οΈInstallation
      • βš™οΈConfiguration
      • 🧩Exports and Events
      • πŸ“ŒInformations / Typical Errors
    • πŸ‘•S-Clothingshop
      • πŸ› οΈInstallation
      • βš™οΈConfiguration
      • 🧩Exports and Events
      • πŸ“ŒInformations / Typical Errors
    • πŸŽ„S-Christmas
      • πŸ› οΈInstallation
        • Tebex Wrapper (Premium)
      • βš™οΈConfiguration
      • 🧩Exports and Events
      • πŸ“ŒInformations / Typical Errors
    • πŸ›„S-Warehouse
      • πŸ› οΈInstallation
      • βš™οΈConfiguration
      • 🧩Exports and Events
      • πŸ“ŒInformations / Typical Errors
    • πŸͺS-Dealerships
      • πŸ› οΈInstallation
      • βš™οΈConfiguration
      • 🧩Exports and Events
      • πŸ“ŒInformations / Typical Errors
    • πŸ›’S-Shops
      • πŸ› οΈInstallation
      • βš™οΈConfiguration
      • 🧩Exports and Events
      • πŸ“ŒInformations / Typical Errors
    • πŸ“’S-Lifeinvader
      • πŸ› οΈInstallation
      • βš™οΈConfiguration
      • 🧩Exports and Events
      • πŸ“ŒInformations / Typical Errors
    • πŸ’΅S-Moneywash
      • πŸ› οΈInstallation
      • βš™οΈConfiguration
      • 🧩Exports and Events
      • πŸ“ŒInformations / Typical Errors
    • 🏎️S-Platechange
      • πŸ› οΈInstallation
      • βš™οΈConfiguration
      • 🧩Exports and Events
      • πŸ“ŒInformations / Typical Errors
Powered by GitBook
On this page
  • Notifys
  • Help Notify
  • Progress Bar
  1. Docs for our Products
  2. S-HUD
  3. Installation

HUD setup into ESX

This is a short and simple guide that explains how to set up our notifications in your es_extended

Notifys

Search in the es_extended/client/functions.lua for this function:

function ESX.ShowNotification(message, notifyType, length)
	return IsResourceFound('esx_notify') and exports['esx_notify']:Notify(notifyType, length, message)
end

Replace the old one with this

function ESX.ShowNotification(message, notifyType, length)
    local titel = "Notify"
    if notifyType == nil then  
        notifyType = "info"
    end
    if notifyType == "info" then  	
        titel = "Information"
    elseif notifyType == "success" then 
        titel = "Success"
    elseif notifyType == "error" then
        titel = "Error"
    end
    exports["S-HUD"]:MakeNotifyInfo(notifyType, titel, message, length)
end

Help Notify

Search in the es_extended/client/functions.lua for this function:

function ESX.ShowHelpNotification(msg, thisFrame, beep, duration)
    AddTextEntry("esxHelpNotification", msg)
    if thisFrame then
        DisplayHelpTextThisFrame("esxHelpNotification", false)
    else
        BeginTextCommandDisplayHelp("esxHelpNotification")
        EndTextCommandDisplayHelp(0, false, beep == nil or beep, duration or -1)
    end
end

Replace the old one with this

function ESX.ShowHelpNotification(msg, thisFrame, beep, duration)
    exports["S-HUD"]:MakeHelpNotify("E", msg)
end

Progress Bar

Search in the es_extended/client/functions.lua for this function:

function ESX.Progressbar(message, length, options)
	return IsResourceFound('esx_progressbar') and exports['esx_progressbar']:Progressbar(message, length, options)
end

Replace the old one with this

function ESX.Progressbar(message, length, options)
    exports["S-HUD"]:MakeProgressbar(message, length)
end
PreviousInstallationNextConfiguration

Last updated 6 months ago

πŸ—ΊοΈ
πŸ› οΈ