Brutal Scripts
YouTubeDiscordStore
  • 🙉About Us
  • ↗️Translate
  • Informations
    • 🔒Escrow System
    • 🔥Common Problems
  • Scripts
    • 📄Notify
      • Accessible files
      • Installation guide
    • 🔠Text-UI
      • Installation guide
      • Exports & How to use
      • Integrations
    • 🤟Gangs
      • Accessible files
      • Installation guide
      • exports / triggers
      • Create a new gang
    • 🏡Housing
      • Accessible files
      • Installation guide
      • exports / triggers
    • 🔑Keys
      • Accessible files
      • Installation guide
      • exports / triggers
    • 💥Gang Actions
      • Accessible files
      • Installation guide
      • exports / triggers
      • Controlling the menu
    • ⭕Radial
      • Accessible files
      • Installation guide
      • Adding new buttons
    • 🎯Executions
      • Accessible files
      • Installation guide
      • exports / triggers
    • 🐶Pets + K9 V2
      • Accessible files
      • Installation guide
    • 👮Police Job
      • Accessible files
      • Installation guide
      • exports / triggers
    • 🚑Ambulance Job
      • Accessible files
      • Installation guide
      • exports / triggers
    • 🔧Mechanic Job
      • Accessible files
      • Installation guide
      • exports / triggers
    • 💪GYM with Skills V2
      • Accessible files
      • Installation guide
      • exports / triggers
    • 🔫Paintball
      • Accessible files
      • Installation guide
      • exports / triggers
    • 🥊Boxing
      • Accessible files
      • Installation guide
      • exports / triggers
    • 🔨Crafting
      • Accessible files
      • Installation guide
      • Creating a new crafting table
    • 🏦Banking
      • Accessible files
      • Installation guide
      • Paycheck transactions
      • Registering transactions
    • 🎳Bowling
      • Accessible files
      • Installation guide
      • exports / triggers
    • 🦌Hunting
      • Accessible files
      • Installation guide
    • 🏁Racing Script
      • Accessible files
      • Installation guide
    • 🐛Reports
      • Accessible files
      • Installation guide
    • 🛒Shop Robbery
      • Accessible files
      • Installation guide
    • 🛥️Yacht Heist
      • Accessible files
      • Installation guide
    • 🧾Billing
      • Accessible files
      • Installation guide
      • Triggers
    • 💰Truck Robbery
      • Accessible files
      • Installation guide
    • 🏧Atm Robbery
      • Accessible files
      • Installation guide
    • 👶Baby script
      • Installation guide
      • How to add more babys
  • Others
    • Register Key Mapping
    • Drill Minigame
    • Discord Webhook
Powered by GitBook
On this page
  • Asset download
  • Upload the items
  • Asset positioning
  • Setting up the Webhook
  • Setting the loaded event
  • Editing framework
  • ESX
  • QBCORE
  • Installing the props
  • Checking the Config file
  • Most important steps
  • If you got any error

Was this helpful?

  1. Scripts
  2. 🔧Mechanic Job

Installation guide

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

If you don't have any experience in development we are highly recommend to follow each step in this documentation, and if you have a developer ask them to install the script for you as they have more experience.


Asset download

Once the purchase is made on our official website, you will receive your asset directly in your Keymaster, in the Granted Assets panel you will see the asset, download it and do the following steps to install it correctly.

  • 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)

Click here if you haven't installed any script ever


Upload the items

If you don't have the items integrated correctly, you will receive random errors.

Check that you don't have duplicate items in your inventory or database before integrating them, otherwise you might have some errors.

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.

Items for esx_inventory
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);
Items for qb-inventory
['tool_box'] 			 		= {['name'] = 'tool_box', 					['label'] = 'Tool Box', 				['weight'] = 10, 		['type'] = 'item', 		['image'] = 'tool_box.png', 			['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'Not have'},
['vehicle_door'] 			 	= {['name'] = 'vehicle_door', 					['label'] = 'Vehicle Door', 				['weight'] = 10, 		['type'] = 'item', 		['image'] = 'vehicle_door.png', 		['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'Not have'},
['vehicle_window'] 				= {['name'] = 'vehicle_window', 				['label'] = 'Vehicle Window', 				['weight'] = 10, 		['type'] = 'item', 		['image'] = 'vehicle_window.png', 		['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'Not have'},
['vehicle_tyre'] 			 	= {['name'] = 'vehicle_tyre', 					['label'] = 'Vehicle Tyre', 				['weight'] = 10, 		['type'] = 'item', 		['image'] = 'vehicle_tyre.png', 		['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'Not have'},
['suspension'] 			                = {['name'] = 'suspension', 				        ['label'] = 'Suspension', 		                ['weight'] = 10, 		['type'] = 'item', 		['image'] = 'suspension.png',   	        ['unique'] = false, 		['useable'] = true, 	['shouldClose'] = true,	   ['combinable'] = nil,   ['description'] = 'Not have'},
Items for qs-inventory
["tool_box"] = {
    ["name"] = "tool_box",
    ["label"] = "Tool Box",
    ["weight"] = 10,
    ["type"] = "item",
    ["image"] = "tool_box.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "Must be important, who knows?"
},

["vehicle_door"] = {
    ["name"] = "vehicle_door",
    ["label"] = "Vehicle Door",
    ["weight"] = 10,
    ["type"] = "item",
    ["image"] = "vehicle_door.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "Not have"
},

["vehicle_window"] = {
    ["name"] = "vehicle_window",
    ["label"] = "Vehicle Window",
    ["weight"] = 10,
    ["type"] = "item",
    ["image"] = "vehicle_window.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "Not have"
},

["vehicle_tyre"] = {
    ["name"] = "vehicle_tyre",
    ["label"] = "Vehicle Tyre",
    ["weight"] = 10,
    ["type"] = "item",
    ["image"] = "vehicle_tyre.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "Not have"
},

["suspension"] = {
    ["name"] = "suspension",
    ["label"] = "Suspension",
    ["weight"] = 10,
    ["type"] = "item",
    ["image"] = "suspension.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "What the heck is this?"
},
Items for ox_inventory
["tool_box"] = {
    label = "Tool Box",
    weight = 1,
    stack = true,
    close = false,
},

["vehicle_door"] = {
    label = "Vehicle Door",
    weight = 1,
    stack = true,
    close = false,
},

["vehicle_window"] = {
    label = "Vehicle Window",
    weight = 1,
    stack = true,
    close = false,
},

["vehicle_tyre"] = {
    label = "Vehicle Tyre",
    weight = 1,
    stack = true,
    close = false,
},

["suspension"] = {
    label = "Suspension",
    weight = 1,
    stack = true,
    close = false,
},

Click here if you don't know how to upload the sql, here is a quick guide

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


Asset positioning

Correctly position the assets in the server.cfg by following this step, if something goes wrong you will probably get errors about exports not found, do not skip this step!

-- First we will start the cores, never below
ensure es_extended or qb-core

-- The Notify / TextUI / Progressbar / Inventory / Billing have to be above our asset
ensure [notify]
ensure [textui]
ensure [progressbar]
ensure [inventory]
ensure [billing]

-- Start the Brutal Crafting at the end
ensure brutal_mechanicjob

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.

Discord Webhook

Setting the loaded event

If you are using a multicharacter system then this step is really important to make our script working propetly! If you don't use any or the loaded event is the same as the basic core one then you are done with this step.

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.


Editing framework

You have to make some modifications on your framework to to use this asset. Do not skip these steps as it will cause that the script will not work propetly!

ESX

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

function isPlayerBoss(playerId, job)
	local xPlayer = ESX.GetPlayerFromId(playerId)

	if xPlayer.job.name == job then
		return true
	else
		print(('esx_society: %s attempted open a society boss menu!'):format(xPlayer.identifier))
		return false
	end
end

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

QBCORE

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


Installing the props

To use the vehicle lift functionality in the script you have to add props to your server. If you miss this step you will get random errors!

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


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.

Setting the Core

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

Setting the Notify

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

Setting the TextUI

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.


Remove the basic Mechanic Job from your server

If you have the esx_mechanicjob, qb-mechanicjob, or any other similar basic job like these, you don't need them anymore, so you can easily remove them from your server files!

If you got any error

If you followed the installational 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 discord server, for more informations.

PreviousAccessible filesNextexports / triggers

Last updated 4 months ago

Was this helpful?

222KB
Items.zip
archive
Item images
30KB
paycheck.lua
945KB
vehiclelift_props.zip
archive
sv-utils.lua
client-core.lua
qb-core/shared/job.lua
Page cover image