EZ Scripts
DiscordTebex
  • 💡Welcome To EZ Scripts
  • FIVEM
    • 🍀EZ White Widow
      • Config File
      • Add more locations
      • Common Issues
    • 🟣EZ Lean Drug
      • Config File
      • Add more locations
    • ❄️EZ Coke & Crack Drug
      • Config File
      • Add more locations
    • 🔠EZ Plate Changer
      • Config File
    • 📑Ez Lib
      • Config File
    • 🛡️Ez Admin Authority
      • Config File
    • 🫳Ez Item Spawner
      • Config File
      • Permission Check
      • Add Item
      • Get Items
  • RedM
    • 💼EZ Society & Job Meny
      • Config File
      • Exports
      • Syn Society
    • 🌍EZ Fast Travel
      • Config File
    • 🛡️Ez Admin Authority
      • Config File
    • 🍖Ez Consumables
      • Config File
    • 📺Ez HUD
      • Config File
      • Exports and Events
    • 🚷EZ Combat Logging
      • Config File
    • 🗽EZ Life Style
      • Getting Life Style
      • Config File
    • ☢️EZ Radial Menu
      • Config File
    • 🫳Ez Item Spawner
      • Config File
      • Permission Check
      • Add Item
      • Get Items
Powered by GitBook
On this page

Was this helpful?

  1. RedM
  2. EZ Society & Job Meny

Config File

PreviousEZ Society & Job MenyNextExports

Last updated 8 months ago

Was this helpful?

💼
https://github.com/EZ-Scripts/ez_society/blob/main/config.lua
Config = {}

Config.Debug = false -- Set to false on live server. Only used for testing and restarting the script frequently.

-- Using SynSociety will disable the society system in this script and use SynSociety instead.
-- This script will become multijob system only
Config.UseSynSociety = false -- Use SynSociety or not

Config.Locale = 'en'

Config.Commands = {
    SetJob = { command = "setjob", help = "Set a player's job", params = {{name = "id", help = "Player Id"}, {name = "job", help = "Job Name"}, {name = "grade", help = "Job Grade"}}, groupAllowed = { ["admin"] = true }},
    JobMenu = { command = "jobmenu", help = "Open the job menu" },
    RemoveJob = { command = "removejob", help = "Remove a job from player", params = {{name = "id", help = "Player Id"}, {name = "job/ current", help = "Job Name, leave blank for current job"}}, groupAllowed = { ["admin"] = true }},
    CreateJob = { command = "createjob", help = "Create a job", params = {{name = "job", help = "Job Name"}, {name = "label", help = "Job Label"}}, groupAllowed = { ["admin"] = true }},
    DeleteJob = { command = "deletejob", help = "Delete a job", params = {{name = "job", help = "Job Name"},}, groupAllowed = { ["admin"] = true }},
    SetBossMenuLocation = { command = "setbossmenu", help = "Set boss menu location at current spot", params = {{name = "job", help = "Job Name"},}, groupAllowed = { ["admin"] = true }},
    ManageBossMenuLocation = { command = "managebossmenu", help = "Delete/ TP boss menu location", params = {{name = "job", help = "Job Name"},}, groupAllowed = { ["admin"] = true }},
}

Config.BossMenuCommand = false -- "bossmenu" or false(to disable)

Config.SocietyStashLimit = 400 -- Society stash limit

Config.DBChecker = true -- Checks/Creates DB on start (RECOMMENDED TO SET TO FALSE AFTER RUNNING IT FIRST TIME)

Config.BossMenuLocationDistance = 2.0 -- When to display to open the boss menu

Config.PayChecks = {
    Interval = 15, -- Every 15 minutes (Set to false to disable)
    PayOutOfSocietyExcept = { -- Jobs that should not be paid out of society account
        ["police"] = true,
        ["doctor"] = true,
    },
    SetMaxPaycheck = false, -- Set max paycheck for all jobs allowed to set or false
    NotifyIfSocietyBroke = true, -- Notify player when not paid due to society being broke
}

Config.Default = {job = "unemployed", grade = "0"} -- Given to all. Make sure its included below...

-- DO NOT TOUCH
Society = {
    [Config.Default.job] = {
        label = Config.Default.job,
        grades = {
            ['0'] = {
                name = Config.Default.job,
                pay = 0,
                boss = false
            }
        }
    },
}

-- DO NOT TOUCH AT ALL
Config.BossMenuLocations = {
}

-- DO NOT TOUCH UNLESS YOU KNOW WHAT YOU ARE DOING
Config.Prefix = {
    Database = "ez_society_",
    Stash = "ez_society_stash_",
}