Configuration

The config.lua file is where you configure the UI, shop locations, NPCs, permissions, item restrictions, and Discord logging for Finals Job Shops.

UI Theme

Lua
Config.UiTheme = 'blackandwhite'

Changes the appearance of the user interface.

Available Themes

Theme
yellow
blue
green
red
cyan
orange
purple
blackandwhite

Example:

Lua
Config.UiTheme = 'yellow'

Custom Theme Presets

Lua
Config.CustomThemePresets = {}

Create your own custom UI theme or override an existing one.

Example:

Lua
Config.CustomThemePresets = {
    custom = {
        primary = '#00BFFF',
        primaryRgb = '0, 191, 255'
    }
}

Config.UiTheme = 'custom'

Properties

PropertyDescription
primaryPrimary color in HEX format
primaryRgbSame color in RGB format

Default Ped Model

Lua
Config.DefaultPedModel = 'a_m_m_bevhills_02'

Default NPC model used if a shop does not specify its own pedModel.

Example:

Lua
Config.DefaultPedModel = 'a_m_y_business_01'

Shops

All shops are defined inside:

Lua
Config.Shops = {}

You can create as many shops as you like by adding new entries.

Example:

Lua
Config.Shops = {
    [1] = {},
    [2] = {},
    [3] = {}
}

Shop Name

Lua
name = 'Bean Machine'

The display name of the shop.

Example:

Lua
name = '24/7 Supermarket'

Ped Model

Lua
pedModel = 'a_f_y_hipster_02'

NPC model used for this shop.

If omitted, the script will use Config.DefaultPedModel.

Example:

Lua
pedModel = 'mp_m_shopkeep_01'

Ped Coordinates

Lua
PedCoords = vec4(x, y, z, heading)

Location where the shop NPC will spawn.

Example:

Lua
PedCoords = vec4(119.93, -1041.76, 29.34, 72.99)

Format

Lua
vec4(X, Y, Z, Heading)

Blip

Lua
blip = true

Enable or disable the map blip.

ValueDescription
trueShow map blip
falseHide map blip

Blip Sprite

Lua
blipSprite = 536

The icon displayed on the GTA V map.

Use any valid GTA V Blip Sprite ID.


Blip Color

Lua
blipColor = 1

Sets the color of the map blip.

Use any valid GTA V Blip Color ID.


Blip Scale

Lua
blipScale = 0.8

Controls the size of the map blip.

Example values:

Lua
0.5
0.8
1.0
1.2

Job

Lua
job = 'police'

Defines which job owns this shop.

Only employees of this job can manage the business.

Example:

Lua
job = 'mechanic'
Lua
job = 'ambulance'
Lua
job = 'burgershot'

Management Grade

Lua
minManageGrade = 2

Minimum job grade required to access the management panel.

Example:

Lua
minManageGrade = 3

Only employees with grade 3 or higher can manage the shop.


Withdrawal Grade

Lua
minManageWithdrawalGrade = 4

Minimum job grade required to withdraw money from the business account.

Example:

Lua
minManageWithdrawalGrade = 5

Management Location

Lua
manageshop = vec4(x, y, z, heading)

Location where employees can access the management menu.

Example:

Lua
manageshop = vec4(112.40, -1044.50, 29.32, 71.98)

Prevent Job Purchases

Lua
preventJobBuy = false

Prevent employees from purchasing items from their own business.

ValueDescription
trueEmployees cannot purchase from their own shop
falseEmployees can purchase normally

Blacklisted Items

Lua
BlacklistedItems = {
    'money'
}

Items that can never be stocked or sold by this shop.

These items remain blocked even when AllowItems = 'all'.

Example:

Lua
BlacklistedItems = {
    'money',
    'weapon_pistol',
    'bank_card'
}

Maximum Purchases Per Player

Lua
MaxPurchasePerson = 200

Maximum quantity a single player can purchase from this shop.

Example:

Lua
MaxPurchasePerson = 50

Discord Webhook

Lua
discordWebhook = {
    enabled = false,
    webhookUrl = '',
    color = 3066993,
}

Logs shop activity to Discord.

Enable Logging

Lua
enabled = true

Enables Discord webhook logging.


Webhook URL

Lua
webhookUrl = ''

Paste your Discord webhook URL.

Example:

Lua
webhookUrl = 'https://discord.com/api/webhooks/...'

Embed Color

Lua
color = 3066993

Color used for Discord embeds.

Use any decimal embed color.


Allowed Items

Determines which items this shop is allowed to stock and sell.

Allow All Items

Lua
AllowItems = 'all'

Allows every inventory item except those listed in BlacklistedItems.


Allow Specific Items Only

Lua
AllowItems = {
    'water',
    'bread',
    'coffee',
    'burger'
}

Only the listed items can be stocked and sold.


Creating Multiple Shops

Simply duplicate an existing shop configuration.

Example:

Lua
Config.Shops = {

    [1] = {
        name = '24/7 Supermarket',
        ...
    },

    [2] = {
        name = 'Bean Machine',
        ...
    },

    [3] = {
        name = 'Burger Shot',
        ...
    }

}

Each shop can have its own:

  • Shop Name
  • NPC Model
  • NPC Location
  • Management Location
  • Job Owner
  • Employee Permissions
  • Allowed Items
  • Blacklisted Items
  • Purchase Limit
  • Blip Settings
  • Discord Webhook

There is no limit to the number of shops you can create.