Var-Documentation
  • 📚Var Documentation
  • 🌎Theme / Translate
    • Change theme
    • Change language
  • 🔓For open source
    • Change UI
  • 👕Clothes Shop
    • Installation
    • 🔩Configuration
      • đŸŗī¸Blips/Marker
      • 📚Translate
      • 📷Change cam and pos
  • 🃏Casino
    • Installation
    • 🔩Configuration
      • đŸŗī¸Main config
      • 🏇Horse
      • 🎡Lucky Whell
      • 📚Translate
  • đŸ•ēEmote
    • Installation
    • 🔩Configuration
      • đŸŗī¸Main config
      • 💃Emote List
      • 📚Translate
  • âš”ī¸Crew
    • Installation
    • đŸĒ›Export
  • 👮Alert Job
    • Installation
    • đŸĒ›Server Export
  • 🔐Pin Code
    • Installation
    • đŸĒ›Export
  • đŸĸSociety Manager
    • Installation
    • đŸĒ›Export
    • 🔩Configuration
      • 📚Translate
      • đŸ’ĩMax salary
      • 📜Last invoice
  • đŸ˜ī¸Property
    • Installation
    • 🔩Configuration
      • 📚Translate
      • đŸ–ŧī¸Add interior
  • 💈Barber shop
    • Installation
    • 🔩Configuration
      • 🔓Change menu (Open source)
      • đŸŗī¸Blips
      • 📚Translate
      • âœ‚ī¸Add shop
  • 🛒Shop with basket
    • Installation
    • 🔩Configuration
      • 🍏Item/Category config
      • đŸŗī¸Blips/Marker
      • 📚Translate
      • ➕Add shop
  • đŸ–‹ī¸Tattoo shop
    • Installation
    • 🔩Configuration
      • âœī¸Edit Tattoo
      • đŸŗī¸Blips/Marker
      • 📚Translate
      • ➕Add shop
  • 🏡Gardener Job
    • Installation
    • 🔩Configuration
      • â„šī¸Change pos farm
      • đŸŗī¸Blips
      • 📚Translate
  • 🏧Heist ATM
    • Installation
    • 🔩Configuration
      • 💰Event money
      • 📚Translate
      • 👮Police alert
  • đŸĻHeist Fleeca
    • Installation
    • 🔩Configuration
      • 📚Translate
      • 📍Pos Fleeca Heist
  • đŸ™ī¸Poster Job
    • Installation
    • 🔩Configuration
      • â„šī¸Change pos farm
      • đŸ–ŧī¸Change poster texture
      • đŸŗī¸Blips/Marker
      • 📚Translate
  • đŸ–ŧī¸Loading Screen
    • Installation
    • âš™ī¸Configuration
  • đŸĻBank
    • Installation
    • 🔩Configuration
      • đŸ§â€â™‚ī¸Ped
      • đŸŗī¸Blips
      • 📚Translate
      • 🚩Add Bank Pos
      • đŸĸSociety
  • 🚘AutoCarDealer
    • Installation
    • 🔩Configuration
      • ➕Add Vehicles
      • 📚Translate
      • đŸŗī¸Blips
      • 📍Coords
  • 📸Character Creator
    • Installation
    • 🔩Configuration
      • 📚Translate
      • 😃Expression
      • âš™ī¸Spawn
  • đŸ‘ĨMulti Character
    • Installation
    • 🔩Configuration
      • 📚Translate
      • 📸Change Character Creator
      • âš™ī¸Commands
  • 📝Bill
    • Installation
    • 🔩Configuration
      • 📚Translate
      • #ī¸âƒŖControl
Powered by GitBook
On this page
  1. Barber shop
  2. Configuration

Change menu (Open source)

If you want to change the menu and put that of your server it is possible go to the client/main.lua file

If you really don't want the menu you can delete the web folder and modify the line that requests the web folder in fxmanifest.lua

In the EnterBarber function on line 41 replaced ToggleNuiFrame(true) with opening your menu, and to close it you can for example put your menu closing function in the ExitChair function

Or you can directly do it in the CallBack like this, this code must be added

ESX.TriggerServerCallback("BarberShop:Buy", function(Success) 
    if Success then
        -- Close menu
        PlaySoundFrontend(-1, 'Bus_Schedule_Pickup', 'DLC_PRISON_BREAK_HEIST_SOUNDS', false)
        GetHaircut()
        print("Succes")
    else
        print("Failure")
    end
end, {Type = Data.Type, Price = Data.Price})
PreviousConfigurationNextBlips

Last updated 1 year ago

💈
🔩
🔓