JG Scripts Docs
DiscordSupportStore
  • Welcome!
  • Claim Purchase
  • FiveM Escrow Errors
  • Permissions Troubleshooting
  • Translations
  • 🛠️Mechanic
    • Introduction
    • Installation & Configuration
      • ox_inventory
      • qb-inventory
      • esx_inventory
      • Setup New Mechanic Location
    • Job Setup
      • ESX Framework Jobs
    • Inventory Items
    • Props
    • Tuning
    • Manual Transmissions & Smooth First Gear
    • Integrations
    • Commands, Events & Exports
      • Commands
      • Events
      • Exports
    • Changelog
      • v1.3.0
      • v1.2.0
      • v1.1.3
      • v1.1.2
      • v1.1.1
      • v1.1
      • v1.0.12
      • v1.0.11
      • v1.0.10
      • v1.0.9
      • v1.0.8
      • v1.0.7
      • v1.0.6
      • v1.0.5 - hotfix
      • v1.0.5
      • v1.0.4
      • v1.0.3
      • v1.0.2
      • v1.0.1
  • 🚘Dealerships
    • Introduction
    • Installation & Configuration
    • Advanced Configuration
    • Job Dealership Setup
    • License Check
    • Importing Vehicles
    • Dealership Locations
    • Employees
    • Custom Payment Options
    • Plate Format
    • Vehicle Images
    • Languages
    • Commands, Events & Exports
      • Commands
      • Events
    • Integrations
      • Quasar Garages
      • Pickle Mods Documents
      • okokContract
      • qb-vehiclesales
    • Changelog
      • v1.4.0
      • v1.3.1
      • v1.3.0
      • v1.2.6
      • v1.2.5
      • v1.2.4
      • v1.2.3
      • v1.2.2
      • v1.2.1
      • v1.2
      • v1.1.9
      • v1.1.8
      • v1.1.7
      • v1.1.6
      • v1.1.5
      • v1.1.4
      • v1.1.3
      • v1.1.2
      • v1.1.1
      • v1.1
      • v1.0.3
      • v1.0.2
      • v1.0.1
  • 🚗Advanced Garages v3
    • Introduction
    • Installation & Configuration
    • Migration from v1
    • Public, Private & Impound Garages
    • Job & Gang Garages
    • Transferring Vehicles
    • Vehicle Duplication Prevention
    • Vehicle Images
    • Languages
    • Commands, Events & Exports
      • Commands
      • Events
      • Exports
    • Misc
      • Spawn Vehicles with ServerSetter
      • Why are you not using CreateVehicleServerSetter by default?
    • Troubleshooting
      • Execution of native... SetDriftTyresEnabled error
      • ucrtbase.dll!strcmp crash
      • SQL error: foreign key constraint fails
    • Integrations
      • qb-phone
      • npwd
      • RoadPhone
      • Quasar Smartphone
      • Quasar Housing
      • okokDeleteVehicles
      • ps-housing
      • nolag_properties
      • Brazzers-FakePlate
      • Custom Fuel System
      • Custom Key System
    • Guides
      • ESX Guides
        • Vehicle Labels
      • QBCore Guides
        • Why isn't /admincar working?!
        • Liveries not saving
    • Changelog
      • v3.2.1
      • v3.2.0
      • v3.1.6
      • v3.1.5
      • v3.1.4
      • v3.1.3
      • v3.1.2
      • v3.1.1
      • v3.1.0
      • v3.0.8
      • v3.0.7
      • v3.0.6
      • v3.0.5
      • v3.0.4
      • v3.0.3
      • v3.0.2
      • v3.0.1
      • v3
      • v2.2.9
      • v2.2.8
      • v2.2.7
      • v2.2.6
      • v2.2.5
      • v2.2.4
      • v2.2.3
      • v.2.2.2
      • v2.2.1
      • v2.2.0
      • v2.1.2
      • v2.1.1
      • v2.1
      • v2.0.7
      • v2.0.6
      • v2.0.5
      • v2.0.4
      • v2.0.3
      • v2.0.2
      • v2.0.1
  • 📊Handling
    • Introduction
    • Installation
    • Exports
  • 🎮Pro Scoreboard
    • Introduction
    • Installation
    • Config & Customisation
  • Advanced Garages v1
    • QB Installation & Config
    • ESX Installation & Config
Powered by GitBook
On this page
  • Built-in job system
  • Framework job system (built into Qbox/QBCore/ESX)
  • Society banking (only with Config.UseFrameworkJobs = true)

Was this helpful?

Edit on GitHub
  1. Mechanic

Job Setup

With JG Mechanic, you have the option of using our built-in job system, with a built in society bank account, employees and more. Or, you can use the job system built into your framework, and a third-party society banking script. This page will explain how you can get the right setup for your server.

Only mechanic locations set as "owned" can be linked to a job.

Built-in job system

Set Config.UseFrameworkJobs = false

Accessing the built-in society banking, employee management and other features is done through the tablet. With Config.AdminsHaveEmployeePermissions = true you can log into the tablet as an admin (/tablet) and manage the mechanic locations yourself; but the preferred way would be to set an initial owner of the mechanic, so they will have access to the tablet and can hire further employees themselves. This could be through the form of them 'buying' the business.

To set the initial owner, use /mechanicadmin and click "Set owner" on the corresponding location (remember it must be set to "owned" in config.lua and NOT "self-service".

The now owner of the mechanic location can use /tablet to log in and manage the business by themselves. All functions can be accessed through the 'Management' app.

Framework job system (built into Qbox/QBCore/ESX)

Set Config.UseFrameworkJobs = true

The location MUST be set up with a type of "owned" (NOT "self-service"), and it needs to have a unique job set. The job is the corresponding job name in your framework. If you want to have unique businesses, you will need to create unique job names within your framework. Here is an example of what a correctly configured location should include:

type = "owned",
job = "mechanic",
jobManagementRanks = {3, 4}, -- which ranks should have access to 'ownership' perms

Once setup correctly, changing your job to the job name configured will allow you to login in the tablet (/tablet).

Society banking (only with Config.UseFrameworkJobs = true)

Out of the box, we support "okokBanking", "fd_banking", "Renewed-Banking", "qb-banking", "qb-management", "esx_addonaccount".

Simply set Config.SocietyBanking to one of the systems above.

If you're using esx_addonaccount and experiencing errors, please try the following guide: ESX Framework Jobs

If you would like to use a custom society banking system, you will need to add the exports into the following server functions, found in framework/sv-functions.lua

function Framework.Server.GetSocietyBalance(society, societyType)

function Framework.Server.PayIntoSocietyFund(societyName, societyType, amount)

function Framework.Server.RemoveFromSocietyFund(societyName, societyType, amount)

Last updated 8 months ago

Was this helpful?

🛠️