Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Fixing cars missing Superchargers and turbo setups
- These cars can't be fixed with the normal "install part" method because the way the game is coded, you have to have at least a turbo or at least a supercharger installed in order to install the missing pipings/intercoolers or pulleys.
- I discovered a work around to this using the exact method that's normally used to system swap from headers to turbo anyway.
- function systemSwap()
- {
- classes.Frame.serverLights(true);
- getURL("lingo: executeCall \"systemswap\", \"acid=" + acid + "&etid=" + etid + "&aepids=" + aepids + "\"", "");
- using that function found in Frame 12 of the client, we can swap the system type even though no true system is installed.
- on a users side, we have to buy the parts from part shop and get the proper id numbers using 3rd party tools.
- From there, we put the Id's in the proper places manually (either hard coded like below) or with text boxes if we have a ton to fix.
- click a button and its done so basically
- var _loc1 = classes.GlobalData.getSelectedCarXML();
- var acid = _loc1.attributes.i; // id to the car
- var etid = Number(3); // supercharger engine type
- var aepids = "<supercharger id>,<pulley id>";
- functoin systemswap()
- {
- getURL("lingo: executeCall \"systemswap\", \"acid=" + acid + "&etid=" + etid + "&aepids=" + aepids + "\"", "");
- }
- btnSwapSystem.onRelease = function()
- {
- systemswap();
- }
- and that's all there is to it.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement