This script lets you swap engines, changing the sound and the performance of a vehicle. Swap process features various animations, interactive UI and a unique training video. There are 12 different preset engines to choose from. Engines have to be stocked to begin the swap. Engine’s delivery time is configurable.
Everything is synced. All objects that the mechanic sees others can see as well
Kuz coming in strong with another awesome script! Great work you guys!
Question my community has - how does the engine swaps save?
Currently we are running 2 different tables for a single owned vehicle… one is esx’s base “owned Vehicles” - The other being an advanced vehicle script that changes tires, brakes, etc.
Would the be its own table as well, so when players log in and out, the engine swaps remain?
We also arnt using esx_Garages - as our players save vehicles via vMenu - so is esx_garages required?
It saves the engines in a separate table, tables: kq_tuning for saving the vehicles engines based on the license plate and kq_tuningparts which is used for saving workshop engine stock (inventory)
Edit: Oh and yes, the swap remains, it gets synced automatically whenever a player gets near the vehicle
Last thing…
Since its license plate based, that means a mechanic could swap an engine for someone else (RP pay them and such) - and that someone else because it was their owned vehicle (license plate) - would retain the engine swap?
Sorry for the questions, just want to make sure this works how I think it would, I also don’t want to jump the gun and be wrong haha.
Yes, that is correct, anyone can swap any ones vehicles and that gets saved, you can even swap NPC vehicles and it will save it, if you then would manage to somehow store (For example using our Hideouts script) that NPC vehicle it would get the engine synced to it next time someone would use that car
it would be cool if the motors had a lifespan. if the engine has a high mileage, then at the moment of operation it turns off at certain moments, and the likelihood of starting is also reduced (the higher the mileage, the worse the engine starts). Sorry for my english