[Release] [ESX] [Mechanic Job]

Ls customs in vinewood

Seems like they end up in the garage.

Do you mind giving me the coordinates?

You need the ESX-Garage addon

Ohh, Iā€™ll probably remove the line from the menu then, Iā€™m using eden garage v2, it suits my needs (server needs) better, thanks for your help, I appreciate it :slight_smile:

1 Like

For those of you that are having trouble with the updated mecanojob (The people posting issues on the git), make sure the job in the Database is named ā€œmechanicā€ rather than ā€œmecanoā€. And if for whatever reason you want it kept ā€œmecanoā€, make sure you edit the multiple lines of code inside of the client/main.lua that is checking if a players job name is ā€œmechanicā€ in order to display markers, have the ability to open menus etc etcā€¦ make sure it is edited to ā€œmecanoā€. Example below.

Line 919 - The function that this line is in is what will display the markers if a usersā€™ job is set to ā€œmecanoā€. How it should look if the job is named ā€œmecanoā€ in the database.

if ESX.PlayerData.job and ESX.PlayerData.job.name == 'mecano' then

Line 919 - The function that this line is in is what will display the markers if a usersā€™ job is set to ā€œmechanicā€. How it should look if the job is named ā€œmechanicā€ in the database.

if ESX.PlayerData.job and ESX.PlayerData.job.name == 'mechanic' then

Youā€™d repeat these examples for the rest of the code that checks for the job ā€œmechanicā€.

1 Like

Can someone Help me i have the mechanic job but the invoices dont work if i send a invoice and he paid the invoice you dont get the money

1 Like

How do you modify this line in client.lua to tell billing to pay player and not society?

riggerServerEvent('esx_billing:sendBill', GetPlayerServerId(closestPlayer), 'society_mechanic', _U('mechanic'), amount)
1 Like

i have set society_mechanic do i need to replace society_mechanic to player if i want to get the money not to Society but the player

How can mechanic manage they money?
Why boss is not enough expirianced to craft?

Is the a option to go off duty ?

Hello, how do i trigger the mini-missions ( NPCJob ) @Sorrora

Hey everyone everything seams to be working well, but how do i go about adding a second garage location to the map? with different job points? i know it needs to be in the config, but i cant figure out how to add it into the initial script.

I have the same question ^^ How can i add more mechanic locations?

Its in client.lua

AddEventHandler('esx_mechanicjob:hasEnteredMarker', function(zone)
	if zone == NPCJobTargetTowable then

	elseif zone =='VehicleDelivery' then
		NPCTargetDeleterZone = true
	elseif zone == 'MechanicActions' then
		CurrentAction     = 'mechanic_actions_menu'
		CurrentActionMsg  = _U('open_actions')
		CurrentActionData = {}
	elseif zone == 'MechanicActions1' then
		CurrentAction     = 'mechanic_actions_menu'
		CurrentActionMsg  = _U('open_actions')
		CurrentActionData = {}
	elseif zone == 'Garage' then
		CurrentAction     = 'mechanic_harvest_menu'
		CurrentActionMsg  = _U('harvest_menu')
		CurrentActionData = {}
	elseif zone == 'Garage1' then
		CurrentAction     = 'mechanic_harvest_menu'
		CurrentActionMsg  = _U('harvest_menu')
		CurrentActionData = {}
	elseif zone == 'Craft' then
		CurrentAction     = 'mechanic_craft_menu'
		CurrentActionMsg  = _U('craft_menu')
		CurrentActionData = {}
	elseif zone == 'VehicleDeleter' then
		local playerPed = PlayerPedId()

		if IsPedInAnyVehicle(playerPed, false) then
			local vehicle = GetVehiclePedIsIn(playerPed,  false)

			CurrentAction     = 'delete_vehicle'
			CurrentActionMsg  = _U('veh_stored')
			CurrentActionData = {vehicle = vehicle}
		end
	end
end)

Thx :slight_smile:

I have another question, how can I add another VehicleSpawnPoint?

How i can Refuel Cars, when player cars are Empty?

1 Like

Hi,
it is possible to make that only mechanic will see mechanic job menu when standing on blip in mechanic garage?
Thanks