[Release] [ESX] [Mechanic Job]

No problem :slight_smile:

1 Like

thanks @DarSha only one problem tattā€™s are not saveing any help?

tatts?

I changed the animation to a laying down animation to repair the vehicles. The issue I am having is I need to be looking at the vehicle to repair it and the animation is flipped so my legs are underneath the car instead of my torso. Any way to change the code so that you dont have to be looking at the vehicle to repair it or flip the animation 180 degrees?

Here is the part of the lua I am working with -

	local playerPed = GetPlayerPed(-1)
	local vehicle   = ESX.Game.GetVehicleInDirection()
	local coords    = GetEntityCoords(playerPed)

	if IsPedSittingInAnyVehicle(playerPed) then
		ESX.ShowNotification(_U('inside_vehicle'))
		return
	end

	if DoesEntityExist(vehicle) then
		IsBusy = true
		TaskStartScenarioInPlace(playerPed, "WORLD_HUMAN_VEHICLE_MECHANIC", 0, true)
		Citizen.CreateThread(function()
			Citizen.Wait(20000)

			SetVehicleFixed(vehicle)
			SetVehicleDeformationFixed(vehicle)
			SetVehicleUndriveable(vehicle, false)
			SetVehicleEngineOn(vehicle, true, true)
			ClearPedTasksImmediately(playerPed)

			ESX.ShowNotification(_U('vehicle_repaired'))
			IsBusy = false

anyone know were you harvest the items needed to craft

nice script dude!
can someone help me to add vehicles for mechanics?

Hmmā€¦ i need some help!
I have installd every thing and i get no errors when starting the server.
BUT I cant access the options menu or the menu to take resourcesā€¦
Any ideas how to fix it?

How would i go about making the Yellow Mechanic icon on the map smaller? i want to make it the same size as the other icons on map is this possible please? thanks, also thank you for releasing the script

1 Like

you go in client and look for the line that configures the blip and in SetBlipScale you can change the size of the blip.

2 Likes

Hey, iā€™m new at this. i want to add mechanic job to my server but when i try i can use without mechano perms everyone can use machanic. What i need to fix this?

if you want to restrict the job, you have to whitelist the job in the database

1 Like

How do I add a work clothing option, Ive tried and failed

Hey how do i give myself body tools gas cans to be able to use in the crafting menu? If anyone could give me the names/ids of the tools would really appreciate it.

@Ripe and @VintageCookie both of you have to look into the database.
There you can Set the clothes for the Job and you can See in items table what Name the mecanoitems has

2 Likes

Hi, The menu is not popping up when they press F6 (what is the default)

1 Like

anyone have luck using menu? cant seem to actually take the job and use the menu nothing at the blip

1 Like

Hi, I need a little help with this one.
Thereā€™s an ā€œImpound vehicleā€ selection in the menu, when you press it, it says that the vehicle has been impounded. Now to my questions:

  1. Where are they located now?
  2. How are they unimpounded?

Iā€™ve checked the police station, the garages and the workshop, but canā€™t seem to find them anywhere.

Good script however overall!

Does it have built in lock/unlock vehicle system for mechanics so they can lock/unlock their vehicles?

Have you ever find out where they go?!

Where do you get the flatbed?