Configuration

To configure the script to your liking, have a look into config.lua. All the values are described within that file.

Config = {
    AcePerms = { 'group.admin', 'qbcore.admin' }, -- ace permissions that will have access to the /setjobaccess <playerid> <access> (access = 0 is false, 1 is true)
    DefaultJobGrades = { -- when creating a job, these are the default job grades that will be created. All grades with name = 'boss' will have access to the boss menu. The last grade ALWAYS has access to the boss menu.
        { name = 'soilder',   label = 'Associate' },
        { name = 'member',    label = 'Member' },
        { name = 'enforcer',  label = 'Enforcer' },
        { name = 'underboss', label = 'Second-in-Command' },
        { name = 'boss',      label = 'Leader' },
    },
    Lang = {
        -- main title
        notify_title = 'Org Management',


        cooldown = 'You are on cooldown, please wait a moment before trying again.',
        job_announcement_title = 'Job Announcement',


        -- invitation
        invite_title = 'You have been invited to a job!',
        invite_message = '%s has invited you to join %s, would you like to accept?',


        -- formatet success
        success_withdraw = "You have successfully withdrawn $%s from the organization.",
        success_deposit = "You have successfully deposited $%s into the organization.",

        success_delete_job = "You have successfully deleted your job, to create a new one you need to request access to do so.",
        success_set_grade = "You have successfully set the players grade.",
        success_kick = "You have successfully kicked the player.",
        success_grade_label = "You have successfully set the grade label.",
        success_delete_grade = "You have successfully deleted the grade.",
        success_create_grade = "You have successfully created the grade.",
        success_create_job = "You have successfully created a job, you will be able to access the menu by using the Boss Tablet Item.",
        success_save_grade_order = "You have successfully saved the grade order.",
        success_invite_player = "You have successfully invited the player.",


        -- formatet errors
        err_create_job = "Failed to create a job: %s",
        err_withdraw = "Failed to withdraw money: %s",
        err_deposit = "Failed to deposit money: %s",
        err_announce = "Failed to announce: %s",
        err_delete_job = "Failed to delete job: %s",
        err_set_grade = "Failed to set grade: %s",
        err_kick = "Failed to kick player: %s",
        err_grade_label = "Failed to set grade label: %s",
        err_delete_grade = "Failed to delete grade: %s",
        err_create_grade = "Failed to create grade: %s",
        err_save_grade_order = "Failed to save grade order: %s",
        err_invite_player = "Failed to invite player: %s",

        err_grade_label_invalid = "Grade name can only contain letters, spaces and numbers.",
        err_player_id_invalid = "Invalid player ID.",


        -- error messages
        plynotfound = 'Player not found',
        no_access = 'You do not have access to this menu',
        no_access_create = 'You do not have access to create a job',
        already_in_org = 'You are already in an organization',
        invalid_name = 'Invalid Job name',
        name_too_long = 'Job name is too long',
        failed_set_job = 'Failed to set job',
        invalid_amount = 'Invalid amount',
        not_enough_money = 'Not enough money',
        ply_not_in_org = 'Player is not in your organization',
        grade_not_found = 'Grade not found',
        ply_already_in_org = 'Player is already in an organization',
        invite_declined = 'The player declined your invite',
    }
}

Last updated