[QB/QBox/ESX] JG Mechanic - Tuning, Stancing, Engine Swaps, NOS, Dyno & more

Does this work with Qausar Inventory?

Its possible to add custom service parts? And do they afect the handling when they have to be changed? Do they have in general any functionality?

Yes :slight_smile:

Custom servicing parts no - you can only add custom tuning parts. Yes the degradation of servicing parts affects handling (bad traction if tyres are worn, bad suspension if springs are worn, etc) - so getting parts replaced by a Mechanic regularly will keep their vehicle at 100% performance.

Any handling changes made by the script are fully unencrypted in case you need to check there aren’t any conflicts with your existing systems.

You can configure at what % level of wear players will be notified that they need to ‘service’ their vehicle (and in the garage if you’re using JG Garages), as well as disabling this system altogether.

Could you add custom service parts as a feature? With the same principle as with custom tuning parts and with a blacklist, for example, electric vehicles only have part xy that needs to be replaced or vehicle xy must replace part xy etc. I have another question, can the mileage meter also be used with km?

Hmm, servicing parts are a little complicated because getting their handling adjustments right so they don’t completely mess up vehicles is very difficult + also the UI wasn’t built around having customizable parts. But I will definitely consider it!

Yes you can choose between kilometers or miles :slight_smile: from within the jg-vehiclemileage resource

1 Like

All right, you’re probably right. Is it possible to add custom tuning parts only for certain vehicles? For example, I create a 2jz engine and want to blacklist it on 4 vehicles. Is that possible?

1 Like

Ah - it is actually not possible to blacklist certain vehicles from parts, but it does make a lot of sense. I’ve added it to the backlog :slight_smile:

1 Like

Any compatibility risks depending on the garage?

Is the dyno only a tablet?

The standard cosmetic parts will save fine using the typical get/setVehicleProperties functions that all garage scripts use - it is the responsibility of the garage script to save those though. No specific garage script is required.

With the non-base game upgrades (stancing, engine swaps, nos, etc) these are saved and re-applied automatically in a separate database table. So doesn’t save via the garage script.

Yep the dyno run shows in the tablet. There is no prop or other external visual aspects to the dyno function just yet, although this is planned.

1 Like

I can’t seem to get any of the tuning under the tablet to stick to a car. It does the animation of putting it on but on the tablet it still says to install the part. I don’t know what I’m doing wrong. Nitrous works. Everything else is working when it comes to placing and order for regular upgrades. Any idea why this could be the case?

Love your script and I have a suggestion, I know its not very convinient since its CFX forums not discord but I dont want to deal with it (dc): Would be really cool addition if Tuning parts had reliability modifier - for example I want to add a wankel engine - I want it to give same amount of performance as more expensive engines for a lower price but at a cost of more often service. I also wanted to add diesel engine that would decrease performance BUT increase lifespan of the engine. Just add an option to modify lifespan bonus in KM per tuning part.

great script i love it but im having a few issues. one the cars dont save paint jobs also i get this error when completing an order can anyone help?

ive tried both framework and built in jobs for this and still getting error.

This is usually the case when (1) the minigame isn’t setup properly, (2) native audio isn’t working due to too many streamed assets or (3) the prop is invalid (isn’t available on your server for whatever reason).

This is a cool idea! Definitely something I’ll consider for future updates, to expand the immersiveness of custom tuning parts and make the servicing aspect more interesting.

Could you open a ticket in my Discord guild (.gg/jgscripts) so we can help you further - it is quite difficult to debug via the forums! :slight_smile:

2 Likes

can player have and run theri own mechanic shops?

Yes :slight_smile:

how do i make vehicles get damage when they crash

Will it be possible to use for example Jim recycle to gather materias and then use said materials to craft parts and equipment to use?

JG Mechanic doesn’t handle this - this is usually handled by most frameworks like Qbox and QBCore.

It doesn’t have a crafting script built in (as that is very out of scope for a mechanic script), but you can pick up one of many awesome free or paid crafting scripts out there. Then you’d be able to use Jim Recycle to create items to be used within JG Mechanic.