[Release] [ESX] [Mechanic Job]

i worked it out 50000 x by your mod price in config share it by 100 nice and easy :smiley:

==== Enregistrement du telephone mechanic => Mechanic Customer does anybody know what this means

1 Like

Ever get this sorted? Im having same issue.
Thanks

Can the mechanics doing NPC job get payed instead of paying the company?

Install LS customs, mechanics can pimp cars and change parts etc


1 Like

So i got the car on the flatbed but the marker keeps on the same location and no new objective pops up?

Anybody have an english translation for the SQL?

When i click in f6 the menu dosent show up

Hei mate, is somebody know how to make lscustom is only can do by a mechanic?

I wonder that to

How to add more vehicles to the mechanic’s vehicles list?

Do you know how yet?

How to disable that whenever you /repair , it doesn’t bring the fuel to 65?

Anyone got some premade code for giving half the money to the player and half to the society fund?

1 Like

find it on the client main lua

1 Like

Question does anyone know how to make Repair Kits? At the moment I am on a server where the Head Mechanic will only promote me to be able to make Repair Kits and he wont tell me how so I am trying to fix what am i looking for parts wise to make the bloody things and I can’t if I don’t know where or what I am looking for.

Paste this into your SQL file and run it as normal

USE `essentialmode`;

INSERT INTO `addon_account` (name, label, shared) VALUES
	('society_mechanic', 'MĂ©cano', 1)
;

INSERT INTO `addon_inventory` (name, label, shared) VALUES
	('society_mechanic', 'MĂ©cano', 1)
;

INSERT INTO `jobs` (name, label) VALUES
	('mechanic', 'Mechanic')
;

INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES
	('mechanic',0,'recrue','Recruit',12,'{}','{}'),
	('mechanic',1,'novice','Novice',24,'{}','{}'),
	('mechanic',2,'experimente','Experienced',36,'{}','{}'),
	('mechanic',3,'chief',"Chief",48,'{}','{}'),
	('mechanic',4,'boss','Boss',0,'{}','{}')
;

INSERT INTO `items` (name, label, `limit`) VALUES
	('gazbottle', 'gas cylinder', 11),
	('fixtool', 'repair tools', 6),
	('carotool', 'body tools', 4),
	('blowpipe', 'blow torch', 10),
	('fixkit', 'Repair Kit', 5),
	('carokit', 'Body kit', 3)
;

If anyone wants to pay a person rather than a player just go into client main.lua & replace this code

RegisterServerEvent('esx_mechanicjob:onNPCJobMissionCompleted')
AddEventHandler('esx_mechanicjob:onNPCJobMissionCompleted', function()
	local _source = source
	local xPlayer = ESX.GetPlayerFromId(_source)
	local total   = math.random(Config.NPCJobEarnings.min, Config.NPCJobEarnings.max);

	if xPlayer.job.grade >= 3 then
		total = total * 2
	end

	TriggerEvent('esx_addonaccount:getSharedAccount', 'society_mechanic', function(account)
		account.addMoney(total)
	end)

	TriggerClientEvent("esx:showNotification", _source, _U('your_comp_earned').. total)
end

With this code

RegisterServerEvent('esx_mechanicjob:onNPCJobMissionCompleted')
AddEventHandler('esx_mechanicjob:onNPCJobMissionCompleted', function()
	local _source = source
	local xPlayer = ESX.GetPlayerFromId(_source)
	local total   = math.random(Config.NPCJobEarnings.min, Config.NPCJobEarnings.max);

	if xPlayer.job.grade >= 3 then
		total = total * 2
	end

	TriggerEvent('esx_addonaccount:getSharedAccount', 'bank', function(account)
		xPlayer.addAccountMoney('bank', total)
	end)

	TriggerClientEvent("esx:showNotification", _source, _U('your_comp_earned').. total)
end)

Then go into locals and change this for the

your_comp_earned

from

your company has ~g~earned~s~ ~g~$
You have ~g~earned~s~ ~g~$

how can you give people a rank?

hey how to edit to make mechanic to use their own money instead.because currently mechanic using society money to customize car.