Nass Scripts
  • Nass Scripts
  • 📚nass_lib
    • Dependencies
    • Changelog
    • Config
  • Scripts
    • 💰Serverstore
    • 🎵Music Player
      • Dependencies
      • Installation
      • Changelog
      • Config
    • 👮Bossmenu
      • Dependencies
      • Installation
      • Changelog
      • Exports
        • Server Exports
      • Config
      • Common Issues
    • 💵Billing
      • Dependencies
      • Installation
      • Changelog
      • Exports
        • Server Exports
      • Config
      • Common Issues
    • 🔫Paintball
      • Dependencies
      • Installation
      • Changelog
      • Exports
        • Client Exports
      • Config
      • Common Issues
    • 💡Neons
      • Installation
      • Changelog
      • Exports
        • Client Exports
      • Config
    • 🏎️Dragstrips
      • Dependencies
      • Installation
      • Changelog
      • Config
Powered by GitBook
On this page
  • Qbox Users
  • QBCore Users
  1. Scripts
  2. Bossmenu

Installation

PreviousDependenciesNextChangelog

Last updated 4 months ago

  1. Remove either esx_society or qb-management from your server

  2. Make sure all of the are installed and running.

  3. Drag the script into your resources folder

    Make sure to add it to your `server.cfg` after the

  4. Upload the upload.sql file to your database

  5. Restart your server

Qbox Users

In order to have some of the functions of the Qbox version working, you need to make some edits to your framework.

First, in qbx_core/server/groups.lua near line 90, above the GetJob function, add this event

RegisterNetEvent("nass_bossmenu:editSalary", function(job, data)
    jobs[job] = data
end)

Next, in qbx_core/config/server.lua near line 120, find these functions

getSocietyAccount = function(accountName)
    return exports['Renewed-Banking']:getAccountMoney(accountName)
end,

removeSocietyMoney = function(accountName, payment)
     return exports['Renewed-Banking']:removeAccountMoney(accountName, payment)
end,

and replace them both with

getSocietyAccount = function(accountName)
    return exports["nass_bossmenu"]:getAccount(accountName)
end,

removeSocietyMoney = function(accountName, payment)
    return exports["nass_bossmenu"]:removeMoney(accountName, payment)
end,

and your boss menu should now work perfectly.

QBCore Users

In order to have some of the functions of the QBcore version working, you need to make some edits to your script. Go to the PaycheckInterval function near line 207 of qb-core/server/functions.lua

Place this event anywhere in the file

RegisterNetEvent("nass_bossmenu:editSalary", function(job, data)
    QBCore.Shared.Jobs[job] = data
end)

Then near line 215 find

 local account = exports['qb-banking']:GetAccountBalance(Player.PlayerData.job.name)

And replace it with

local account = exports['nass_bossmenu']:getAccount(Player.PlayerData.job.name)

You will also need to change this export near line 221

exports['qb-banking']:RemoveMoney(Player.PlayerData.job.name, payment, 'Employee Paycheck')

And replace it with

exports['nass_bossmenu']:removeMoney(Player.PlayerData.job.name, payment)

If you have followed all of the steps correctly, it should look something like this

👮
dependencies
dependencies