1- Drag and Drop the cp_mechanic_auto_shop folder into the resources/[local] folder;
2- add this line “start cp_mechanic_auto_shop” on “server.cfg” near the end of your start and ensure lists.
Extremelly important: if you’re using EssentialMode step 2 needs to be bellow the “start essentialmode” line so the dependencies load first.
Optional (notepad++ recommended)
If you wish to make the repairs free open “cp_mechanic_server.lua” and edit the value on the variable “enableprice” to “false”
If you wish to edit how much money is spent to wash the car open “cp_mechanic_server.lua” and edit the value on the variable “price” to whatever number you want.
I would suggest you use PlayerPedId() instead of GetPlayerPed(-1) as its faster then id also suggest changing GetDistanceBetweenCoords to lua math, also would add some checks to your events as people with executors will exploit this.
Hi, this script set repairs the engine only. Stops it from smoking etc. Default is free but Config can be changed from FALSE to TRUE to have it charge. If you want the autobody to be repaired, you may want this companion script.