❤️
FinalZ Scripts
  • Welcome here!
    • ❓How to install
    • FinalZ discord
  • 💲FinalZ Paid
    • 🌱FinalZ-drugSystem
      • 📦Database
    • 🛒FinalZ-Marketplace
      • 📦Config
      • 📦Database
    • 🚗FinalZ-vehicleRent
      • 📦Config
      • 📦database
    • 🔫FinalZ-NPCRobbery
      • 📦Config
    • 🎃FinalZ Dashboard
      • 📦How to set up the discord bot
      • 📦exports
  • 🆓FINALZ FREE
    • 🐟FinalZ-Fishing
      • 👣items
      • 📦Config
    • 👷FinalZ-jobCenter
      • 📦Config
    • 🚘FinalZ-Garagesystem
      • 📦exports
Powered by GitBook
On this page
  1. FINALZ FREE
  2. FinalZ-jobCenter

Config

Here is the original config file

Config          = {}

Config.Core     = "esx"  --esx or qb
Config.openKey  = 38    --E
Config.oxTarget = false -- will use ox_lib
Config.textUI   = function(msg, type)
    if type == "show" then
        lib.showTextUI(msg)
    else
        lib.hideTextUI()
    end
end




Config.JobsCenterPos = {
    [1] = {
        coords = vector3(-249.4956, -965.1389, 31.2200),
        heading = 331.5708,
        drawRange = 10.0,
        openRange = 5.0,
        model = "a_f_m_beach_01",
        text = "job center",
        blipSettings = { type = 408, color = 49, scale = 0.8, name = "JOB CENTER" },
        jobs = {

            ["ambulance"] = {
                job = "ambulance",
                label = "Ambulance",
                description = "Good job for starters, you can make good money with it",
                salary = 300,
                benefits = {
                    "Good salary",
                    "Good dsa",
                    "Good salaryy",
                    "Good salaryy",
                    "Good salaryy",

                },
                grade = 3
            },
            ["mechanic"] = {
                job = "mechanic",
                label = "Mechanic",
                description = "Good job for starters, you can make good money with it",
                salary = 300,
                benefits = {
                    "Good salary",
                    "Good dsa",
                    "Good salaryy",
                    "Good salaryy",
                    "Good salaryy",

                },
                grade = 1
            },
            ["police"] = {
                job = "police",
                label = "Police",
                description = "Good job for starters, you can make good money with it",
                salary = 300,
                benefits = {
                    "Good salary",
                    "Good dsa",
                    "Good salaryy",
                    "Good salaryy",
                    "Good salaryy",

                },
                grade = 1
            },
        }
    },
}


RegisterNetEvent("notify")
AddEventHandler("notify", function(msg, type)
    if Config.Core == "esx" then
        ESX.ShowNotification(msg, 5000, type)
    else
        QBCore.Functions.Notify(msg, type, 5000)
    end
end)


Config.Locales = {
    settedJob = "You have set your job to: %s",
}


Config.SetCore = function()
    if Config.Core == "esx" then
        ESX = exports["es_extended"]:getSharedObject()
        return ESX
    else
        QBCore = exports['qb-core']:GetCoreObject()
        return QBCore
    end
end
PreviousFinalZ-jobCenterNextFinalZ-Garagesystem

Last updated 9 months ago

🆓
👷
📦