[FORK][ESX] Engine Repair kit & Tyre Kit | esx_repairkit V3.2

Never tried with ESX V.2, that might be the issue, I will give it a shot later this week ^^

1 Like

great tyrekit logo for inventory

Icons made by Nikita Golubev from www.flaticon.com

it still works for me even with error

This script error in fact does not make this script broken, it is just bringing a script error that is more annoying for me but don’t break performance or anything else x)

it gives the error but works like a charm, just ignore the errors.

@Clementinise hey how would I do to make it to repair the engine only if has the WEAPON_WRENCH in hand?

if GetSelectedPedWeapon(PlayerPedId()) == GetHashKey('WEAPON_WRENCH')  then

else
showNotification( you need a wrench)
end

if it was IsControlJustReleased… i would put it under but on your script, I don’t know how, not yet…

hey im having a problem with it besides the error when i fix a tyre its not fixed for other players for them its still flat its only fixed for the person that repairs it

Probably server syncing issue between clients, but I’m not that good in LUA xd I will give it a look tomorrow!

We actually tried implementing this script into our server but had no luck!

Looks really cool and we definitely want it (even still) but the script would sometimes not actually fix the vehicle and would even allow players to repair their vehicle when mechs were online.

We set up the config, made sure the item names, job names were all correct, no errors either! Just didn’t work… Any help would be greatly appreciated!

1 Like

You have a config that allows players ro use /repair or not. That part works for me. The engine fixing works as well even the tyre fixing. Its just only client sided. In my server. I noticed that before but since it’s not yet released i haven’t used that much.

Thanks, i can also try redownload again the script and see if it works…

The issue with players able to repair vehicles even if mechs are online is a known issue, but I think that would be easily fixable ^^

the script would sometimes not actually fix the vehicle

Can you explain please? (Don’t forget to set Config.DestroyOnFailedRepair to false so there is no random destroy)

1 Like

If it was fixable, that would be amazing as it’s important to promote mech RP!

I’m sure that’s something we tried, perhaps not… if we were able to get the ‘onlyifmech’ working, we would definitely give this resource another go :muscle:

  • Whippet :100:

Anyway to just disable the yellow status bar?

The one that shows up on the left side of the screen, seems to represent overall damage.

I have a problem, I can’t add the file to my database, it is based on the MariaDB version, and writes the problem " Unknown column ‘Repairkit’ in ‘field list’"

how to use it where i gonna get it?

I got this error after repair the car

c-scripting-core] InvokeNative: execution failed: Argument at index 1 was null.

SCRIPT ERROR: Execution of native 000000002f7a49e6 in script host failed: Argument at index 1 was null.

yeah i am getting that error too.

Still doesnt work for me, im infront of the engine, but it doesnt work, neither on standard or modded cars
The Config:
Config = {}
Config.InfiniteRepairs = false – Should one repairkit last forever?
Config.InfiniteRepairsTyreKit = false – Should one tyrekit last forever?
Config.IfMecaIsOnline = true – Set to true if you don’t want your players to use the RepairKit and TireKit if a mechanic is online
Config.RepairTime = 15 – In seconds, how long should a repair take?
Config.TyreKitTime = 15 – In seconds, how long does it took to replace the tyre?
Config.IgnoreAbort = false – Remove repairkit from inventory even if user aborts repairs?
Config.IgnoreTyreAbort = false – Remove repairkit from inventory even if user aborts repairs?
Config.AllowMecano = false – Allow mechanics to use this repairkit? (If you want this to work set “Config.IfMecaIsOnline” to false, it’s a known bug that will be fixed as soon as possible)
Config.RealisticVehicleFailure = false – Set to true if you are using the resource “RealisticVehicleFailure”
Config.DestroyOnFailedRepair = false – Set to true if you wan’t to use “Config.DestroyChance”
Config.DestroyChance = 100 – The lower it is, the more it has a chance to destroy the engine. (1 = 100%, 2 = 50%, 4 = 25%, 10 = 10%, 100 = 1%, etc)
Config.EnableProgressBar = false – If you don’t want a progress bar when your player use the item or you don’t want to use the resource “progressBars” then set it to false

Config.Locale = ‘en’

1 Like

I haven’t updated esx_repairkit for the latest FiveM artifact, that’s maybe why it’s not working.

I’m not sure at all I will update it one day, but you can still activate live notification for this post :+1:

Maybe in the next update : That if there a mechanic onlline is you can not use a repairkit