Page cover

Installation guide

Welcome to the Brutal Mechanic Job installation guide, here you can learn how to completely install our asset.

triangle-exclamation

Asset download

circle-check
  • Put the script folder to your server.

  • Start the script in the server.cfg. (ensure brutal_mechanicjob)

  • Restart your server! (And you get permission to use the script)


Upload the items

circle-exclamation
triangle-exclamation

This asset depends on certain items for its operation, so don't forget to integrate all items correctly into your database or inventory system, depending on how you use your server.

If your inventory is not among the following, you can create the file yourself using the examples of each item by displaying any of the following tabs.

chevron-rightItems for esx_inventoryhashtag
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES
('tool_box', 'Tool Box', 1, 0, 1),
('vehicle_door', 'Vehicle Door', 1, 0, 1),
('vehicle_window', 'Vehicle Window', 1, 0, 1),
('suspension', 'Suspension', 1, 0, 1),
('vehicle_tyre', 'Vehicle Tyre', 1, 0, 1);
chevron-rightItems for qb-inventoryhashtag
chevron-rightItems for qs-inventoryhashtag
chevron-rightItems for ox_inventoryhashtag

Here you can find the images which we used for the items

file-archive
222KB
archive
Item images

Asset positioning

triangle-exclamation

Setting up the Webhook

If you want to use the opportunnities which can be given by a webhook then you will have to set it up in our assets. You can do it by changeing a value to your discord webhook in the sv-utils.lua file.

sv-utils.lua
Discord Webhookchevron-right

Setting the loaded event

triangle-exclamation

In the client-core.lua file go to the LoadedEvent variable and if you are using a different event then paste there your event which is used on your server.

client-core.lua

Editing framework

triangle-exclamation

ESX

Navigate to esx_society/server/main.lua and replace this function:

If you want the players only get paycheck if they are on duty then replace this file: es_extended/server /paycheck.lua

file-download
30KB

QBCORE

Navigate to qb-core/shared/job.lua and set the defaultDuty to false:

qb-core/shared/job.lua

Installing the props

triangle-exclamation

Download the attached file and then you have to start this assets just like any other script on your server.

file-archive
945KB

Checking the Config file

Please make sure that you go through the whole file during the installation and check everything. It is one of the most important things as if you miss this step the script might won't work propetly.

Most important steps

The most important things always at the top of the config so pay the most attencion to these elements.

chevron-rightSetting the Corehashtag

Set your server's core wether it's using es_extended or qb-core, other cores aren't supported .

chevron-rightSetting the Notifyhashtag

If you are using the Brutal Notify then it is good news, you don't have to do anything. If you aren't then set the BrutalNotify value to false in the config and set up your own notify in the cl-utils.lua

chevron-rightSetting the TextUIhashtag

Set the TextUI from the options which are commented out. If your server using an other TextUI it is not a problem, you can set it up in the cl-utils.lua.


triangle-exclamation

Remove the basic Mechanic Job from your server

If you got any error

If you followed the installation guide and the script still don't work or you get any errors the please check the common errors, here in the docs and in our discordarrow-up-right server, for more informations.

Last updated

Was this helpful?