Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- availableTuningMarkers = {
- --X, Y, Z, Vehicle Rotation (Use /markerpos to get perfect position and rotation (The command in sourceC.lua last row))
- {-2416.4360351563, -604.05352783203, 132.5625}, -- LV Airport
- {1320.4631347656, 1380.7529296875, 10.445365905762, 342.06317138672},
- {2124.7734375, -1133.2369384766, 25.152503967285}, -- Autóker
- }
- tuningMenu = {
- [1] = {
- ["categoryName"] = getLocalizedText("menu.performance"),
- ["subMenu"] = {
- [1] = {
- ["categoryName"] = getLocalizedText("menu.performance.engine"),
- ["cameraSettings"] = {"bonnet_dummy", 110, 15, 6, true}, -- component, offsetX, offsetZ, zoom, hide component
- ["upgradeData"] = "engine",
- ["subMenu"] = {
- [1] = {["categoryName"] = getLocalizedText("tuningPack.0"), ["tuningPrice"] = 0, ["tuningData"] = {{"engineAcceleration"}, {"maxVelocity"}}},
- [2] = {["categoryName"] = getLocalizedText("tuningPack.1"), ["tuningPrice"] = 1500, ["tuningData"] = {{"engineAcceleration", 2}, {"maxVelocity", 30}}},
- [3] = {["categoryName"] = getLocalizedText("tuningPack.2"), ["tuningPrice"] = 3000, ["tuningData"] = {{"engineAcceleration", 6}, {"maxVelocity", 40}}},
- [4] = {["categoryName"] = getLocalizedText("tuningPack.3"), ["tuningPrice"] = 6000, ["tuningData"] = {{"engineAcceleration", 8}, {"maxVelocity", 45}}},
- [5] = {["categoryName"] = getLocalizedText("tuningPack.4"), ["tuningPrice"] = 50000, ["tuningData"] = {{"engineAcceleration", 18}, {"maxVelocity", 65}}},
- }
- },
- [2] = {
- ["categoryName"] = getLocalizedText("menu.performance.turbo"),
- ["cameraSettings"] = {"bonnet_dummy", 110, 15, 6, true},
- ["upgradeData"] = "turbo",
- ["subMenu"] = {
- [1] = {["categoryName"] = getLocalizedText("tuningPack.0"), ["tuningPrice"] = 0, ["tuningData"] = {{"engineInertia"}}},
- [2] = {["categoryName"] = getLocalizedText("tuningPack.1"), ["tuningPrice"] = 6000, ["tuningData"] = {{"engineInertia", -18}}},
- [3] = {["categoryName"] = getLocalizedText("tuningPack.2"), ["tuningPrice"] = 12000, ["tuningData"] = {{"engineInertia", -25}}},
- [4] = {["categoryName"] = getLocalizedText("tuningPack.3"), ["tuningPrice"] = 18000, ["tuningData"] = {{"engineInertia", -33}}},
- [5] = {["categoryName"] = getLocalizedText("tuningPack.4"), ["tuningPrice"] = 50000, ["tuningData"] = {{"engineInertia", -49}}},
- }
- },
- [3] = {
- ["categoryName"] = getLocalizedText("menu.performance.nitro"),
- ["cameraSettings"] = {"boot_dummy", -65, 15, 6, true},
- ["upgradeData"] = "nitro",
- ["subMenu"] = {
- [1] = {["categoryName"] = getLocalizedText("tuningPack.remove"), ["tuningPrice"] = 0, ["tuningData"] = 0},
- [2] = {["categoryName"] = "25%", ["tuningPrice"] = 10000, ["tuningData"] = 25},
- [3] = {["categoryName"] = "50%", ["tuningPrice"] = 15000, ["tuningData"] = 50},
- [4] = {["categoryName"] = "75%", ["tuningPrice"] = 25000, ["tuningData"] = 75},
- [5] = {["categoryName"] = "100%", ["tuningPrice"] = 30000, ["tuningData"] = 100},
- }
- },
- [4] = {
- ["categoryName"] = getLocalizedText("menu.performance.ecu"),
- ["cameraSettings"] = {"bonnet_dummy", 110, 15, 6, true},
- ["upgradeData"] = "ecu",
- ["subMenu"] = {
- [1] = {["categoryName"] = getLocalizedText("tuningPack.0"), ["tuningPrice"] = 0, ["tuningData"] = {{"engineAcceleration"}, {"maxVelocity"}}},
- [2] = {["categoryName"] = getLocalizedText("tuningPack.1"), ["tuningPrice"] = 1500, ["tuningData"] = {{"engineAcceleration", 2}, {"maxVelocity", 20}}},
- [3] = {["categoryName"] = getLocalizedText("tuningPack.2"), ["tuningPrice"] = 3000, ["tuningData"] = {{"engineAcceleration", 4}, {"maxVelocity", 30}}},
- [4] = {["categoryName"] = getLocalizedText("tuningPack.3"), ["tuningPrice"] = 6000, ["tuningData"] = {{"engineAcceleration", 6}, {"maxVelocity", 40}}},
- [5] = {["categoryName"] = getLocalizedText("tuningPack.4"), ["tuningPrice"] = 50000, ["tuningData"] = {{"engineAcceleration", 12}, {"maxVelocity", 53}}},
- }
- },
- [5] = {
- ["categoryName"] = getLocalizedText("menu.performance.tires"),
- ["cameraSettings"] = {"wheel_rb_dummy", 60, 10, 4},
- ["upgradeData"] = "tires",
- ["subMenu"] = {
- [1] = {["categoryName"] = getLocalizedText("tuningPack.0"), ["tuningPrice"] = 0, ["tuningData"] = {{"tractionMultiplier"}, {"tractionLoss"}}},
- [2] = {["categoryName"] = getLocalizedText("tuningPack.1"), ["tuningPrice"] = 4500, ["tuningData"] = {{"tractionMultiplier", 0.05}, {"tractionLoss", 0.02}}},
- [3] = {["categoryName"] = getLocalizedText("tuningPack.2"), ["tuningPrice"] = 9000, ["tuningData"] = {{"tractionMultiplier", 0.1}, {"tractionLoss", 0.03}}},
- [4] = {["categoryName"] = getLocalizedText("tuningPack.3"), ["tuningPrice"] = 12500, ["tuningData"] = {{"tractionMultiplier", 0.15}, {"tractionLoss", 0.04}}},
- [5] = {["categoryName"] = getLocalizedText("tuningPack.4"), ["tuningPrice"] = 50000, ["tuningData"] = {{"tractionMultiplier", 0.25}, {"tractionLoss", 0.05}}},
- }
- },
- [6] = {
- ["categoryName"] = getLocalizedText("menu.performance.brakes"),
- ["cameraSettings"] = {"wheel_rf_dummy", 35, 5, 2, true},
- ["upgradeData"] = "brakes",
- ["subMenu"] = {
- [1] = {["categoryName"] = getLocalizedText("tuningPack.0"), ["tuningPrice"] = 0, ["tuningData"] = {{"brakeDeceleration"}, {"brakeBias"}}},
- [2] = {["categoryName"] = getLocalizedText("tuningPack.1"), ["tuningPrice"] = 4500, ["tuningData"] = {{"brakeDeceleration", 0.05}, {"brakeBias", 0.1}}},
- [3] = {["categoryName"] = getLocalizedText("tuningPack.2"), ["tuningPrice"] = 9000, ["tuningData"] = {{"brakeDeceleration", 0.1}, {"brakeBias", 0.175}}},
- [4] = {["categoryName"] = getLocalizedText("tuningPack.3"), ["tuningPrice"] = 12500, ["tuningData"] = {{"brakeDeceleration", 0.15}, {"brakeBias", 0.25}}},
- [5] = {["categoryName"] = getLocalizedText("tuningPack.4"), ["tuningPrice"] = 50000, ["tuningData"] = {{"brakeDeceleration", 0.27}, {"brakeBias", 0.37}}},
- }
- },
- [7] = {
- ["categoryName"] = getLocalizedText("menu.performance.weightReduction"),
- ["upgradeData"] = "weightreduction",
- ["subMenu"] = {
- [1] = {["categoryName"] = getLocalizedText("tuningPack.0"), ["tuningPrice"] = 0, ["tuningData"] = {{"mass"}}},
- [2] = {["categoryName"] = getLocalizedText("tuningPack.1"), ["tuningPrice"] = 4250, ["tuningData"] = {{"mass", -100}}},
- [3] = {["categoryName"] = getLocalizedText("tuningPack.2"), ["tuningPrice"] = 7500, ["tuningData"] = {{"mass", -200}}},
- [4] = {["categoryName"] = getLocalizedText("tuningPack.3"), ["tuningPrice"] = 15000, ["tuningData"] = {{"mass", -300}}},
- [5] = {["categoryName"] = getLocalizedText("tuningPack.4"), ["tuningPrice"] = 50000, ["tuningData"] = {{"mass", -400}}},
- }
- },
- [8] = {
- ["categoryName"] = getLocalizedText("menu.performance.gearbox"),
- ["upgradeData"] = "gearbox",
- ["subMenu"] = {
- [1] = {["categoryName"] = getLocalizedText("tuningPack.0"), ["tuningPrice"] = 0, ["tuningData"] = {{"engineAcceleration"}, {"maxVelocity"}}},
- [2] = {["categoryName"] = getLocalizedText("tuningPack.1"), ["tuningPrice"] = 1500, ["tuningData"] = {{"engineAcceleration", 2}, {"maxVelocity", 15}}},
- [3] = {["categoryName"] = getLocalizedText("tuningPack.2"), ["tuningPrice"] = 3000, ["tuningData"] = {{"engineAcceleration", 4}, {"maxVelocity", 20}}},
- [4] = {["categoryName"] = getLocalizedText("tuningPack.3"), ["tuningPrice"] = 6000, ["tuningData"] = {{"engineAcceleration", 6}, {"maxVelocity", 26}}},
- [5] = {["categoryName"] = getLocalizedText("tuningPack.4"), ["tuningPrice"] = 50000, ["tuningData"] = {{"engineAcceleration", 12}, {"maxVelocity", 40}}}
- }
- }
- }
- },
- [2] = {
- ["categoryName"] = getLocalizedText("menu.optical"),
- ["availableUpgrades"] = {}, -- automatic getting optical upgrades to selected category
- ["subMenu"] = {
- [1] = {["categoryName"] = getLocalizedText("menu.optical.frontBumper"), ["upgradeSlot"] = 14, ["tuningPrice"] = 1000, ["cameraSettings"] = {"bump_front_dummy", 130, 10, 6}},
- [2] = {["categoryName"] = getLocalizedText("menu.optical.rearBumper"), ["upgradeSlot"] = 15, ["tuningPrice"] = 1000, ["cameraSettings"] = {"door_lf_dummy", -65, 3, 8}},
- [3] = {["categoryName"] = getLocalizedText("menu.optical.hood"), ["upgradeSlot"] = 0, ["tuningPrice"] = 1000},
- [4] = {["categoryName"] = getLocalizedText("menu.optical.exhaust"), ["upgradeSlot"] = 13, ["tuningPrice"] = 2000, ["cameraSettings"] = {"door_lf_dummy", -65, 3, 8}},
- [5] = {["categoryName"] = getLocalizedText("menu.optical.spoiler"), ["upgradeSlot"] = 2, ["tuningPrice"] = 1500, ["cameraSettings"] = {"boot_dummy", -65, 3, 8}},
- [6] = {["categoryName"] = getLocalizedText("menu.optical.wheels"), ["upgradeSlot"] = 12, ["tuningPrice"] = 5000},
- [7] = {["categoryName"] = getLocalizedText("menu.optical.sideSkirt"), ["upgradeSlot"] = 3, ["tuningPrice"] = 1000, ["cameraSettings"] = {"ug_wing_right", 65, 3, 4}},
- [8] = {["categoryName"] = getLocalizedText("menu.optical.roofScoop"), ["upgradeSlot"] = 7, ["tuningPrice"] = 1000},
- [9] = {["categoryName"] = getLocalizedText("menu.optical.hidraulics"), ["upgradeSlot"] = 9, ["tuningPrice"] = 15000},
- [10] = { -- custom optical item
- ["categoryName"] = "Air-Ride",
- ["cameraSettings"] = {"wheel_rf_dummy", 35, 5, 2, true},
- ["upgradeSlot"] = 17,
- ["subMenu"] = {
- [1] = {["categoryName"] = getLocalizedText("tuningPack.remove"), ["tuningPrice"] = 0, ["tuningData"] = false},
- [2] = {["categoryName"] = getLocalizedText("tuningPack.install"), ["tuningPrice"] = 20000, ["tuningData"] = true}
- }
- },
- [11] = { -- custom optical item
- ["categoryName"] = getLocalizedText("menu.optical.lampColor"),
- ["cameraSettings"] = {"bonnet_dummy", 90, 3, 13},
- ["upgradeSlot"] = 18,
- ["subMenu"] = {
- [1] = {["categoryName"] = getLocalizedText("menu.optical.lampColor"), ["tuningPrice"] = 2500, ["tuningData"] = "headlight"},
- }
- },
- [12] = { -- custom optical item
- ["categoryName"] = "Neon",
- ["cameraSettings"] = {"chassis_dummy", 0, 3, 10},
- ["upgradeSlot"] = 19,
- ["subMenu"] = {
- [1] = {["categoryName"] = getLocalizedText("tuningPack.remove"), ["tuningPrice"] = 0, ["tuningData"] = false},
- [2] = {["categoryName"] = getLocalizedText("tuningPack.optical.neon.1"), ["tuningPrice"] = 5000, ["tuningData"] = "white"},
- [3] = {["categoryName"] = getLocalizedText("tuningPack.optical.neon.2"), ["tuningPrice"] = 5000, ["tuningData"] = "blue"},
- [4] = {["categoryName"] = getLocalizedText("tuningPack.optical.neon.3"), ["tuningPrice"] = 5000, ["tuningData"] = "green"},
- [5] = {["categoryName"] = getLocalizedText("tuningPack.optical.neon.4"), ["tuningPrice"] = 5000, ["tuningData"] = "red"},
- [6] = {["categoryName"] = getLocalizedText("tuningPack.optical.neon.5"), ["tuningPrice"] = 5000, ["tuningData"] = "yellow"},
- [7] = {["categoryName"] = getLocalizedText("tuningPack.optical.neon.6"), ["tuningPrice"] = 5000, ["tuningData"] = "pink"},
- [8] = {["categoryName"] = getLocalizedText("tuningPack.optical.neon.7"), ["tuningPrice"] = 5000, ["tuningData"] = "orange"},
- [9] = {["categoryName"] = getLocalizedText("tuningPack.optical.neon.8"), ["tuningPrice"] = 5000, ["tuningData"] = "lightblue"},
- [10] = {["categoryName"] = getLocalizedText("tuningPack.optical.neon.9"), ["tuningPrice"] = 5000, ["tuningData"] = "rasta"},
- [11] = {["categoryName"] = getLocalizedText("tuningPack.optical.neon.10"), ["tuningPrice"] = 5000, ["tuningData"] = "ice"},
- }
- },
- }
- },
- [3] = {
- ["categoryName"] = getLocalizedText("menu.extras"),
- ["subMenu"] = {
- [1] = {
- ["categoryName"] = getLocalizedText("menu.extras.frontWheelSize"),
- ["cameraSettings"] = {"bump_front_dummy", 105, 5, 5, true},
- ["subMenu"] = {
- [1] = {["categoryName"] = getLocalizedText("tuningPack.wheelSize.veryNarrow"), ["tuningPrice"] = 20000, ["tuningData"] = "verynarrow"},
- [2] = {["categoryName"] = getLocalizedText("tuningPack.wheelSize.narrow"), ["tuningPrice"] = 10000, ["tuningData"] = "narrow"},
- [3] = {["categoryName"] = getLocalizedText("tuningPack.0"), ["tuningPrice"] = 5000, ["tuningData"] = "default"},
- [4] = {["categoryName"] = getLocalizedText("tuningPack.wheelSize.wide"), ["tuningPrice"] = 10000, ["tuningData"] = "wide"},
- [5] = {["categoryName"] = getLocalizedText("tuningPack.wheelSize.veryWide"), ["tuningPrice"] = 20000, ["tuningData"] = "verywide"}
- }
- },
- [2] = {
- ["categoryName"] = getLocalizedText("menu.extras.rearWheelSize"),
- ["cameraSettings"] = {"bump_rear_dummy", -90, 5, 5, true},
- ["subMenu"] = {
- [1] = {["categoryName"] = getLocalizedText("tuningPack.wheelSize.veryNarrow"), ["tuningPrice"] = 20000, ["tuningData"] = "verynarrow"},
- [2] = {["categoryName"] = getLocalizedText("tuningPack.wheelSize.narrow"), ["tuningPrice"] = 10000, ["tuningData"] = "narrow"},
- [3] = {["categoryName"] = getLocalizedText("tuningPack.0"), ["tuningPrice"] = 5000, ["tuningData"] = "default"},
- [4] = {["categoryName"] = getLocalizedText("tuningPack.wheelSize.wide"), ["tuningPrice"] = 10000, ["tuningData"] = "wide"},
- [5] = {["categoryName"] = getLocalizedText("tuningPack.wheelSize.veryWide"), ["tuningPrice"] = 20000, ["tuningData"] = "verywide"}
- }
- },
- [3] = {
- ["categoryName"] = getLocalizedText("menu.extras.offroad"),
- ["subMenu"] = {
- [1] = {["categoryName"] = getLocalizedText("tuningPack.0"), ["tuningPrice"] = 2500, ["tuningData"] = "default"},
- [2] = {["categoryName"] = getLocalizedText("tuningPack.offroad.dirt"), ["tuningPrice"] = 5000, ["tuningData"] = "dirt"},
- [3] = {["categoryName"] = getLocalizedText("tuningPack.offroad.sand"), ["tuningPrice"] = 5000, ["tuningData"] = "sand"}
- }
- },
- [4] = {
- ["categoryName"] = getLocalizedText("menu.extras.driveType"),
- ["propertyName"] = "driveType",
- ["subMenu"] = {
- [1] = {["categoryName"] = getLocalizedText("tuningPack.driveType.front"), ["tuningPrice"] = 10000, ["tuningData"] = "fwd"},
- [2] = {["categoryName"] = getLocalizedText("tuningPack.driveType.all"), ["tuningPrice"] = 10000, ["tuningData"] = "awd"},
- [3] = {["categoryName"] = getLocalizedText("tuningPack.driveType.rear"), ["tuningPrice"] = 10000, ["tuningData"] = "rwd"}
- }
- },
- [5] = {
- ["categoryName"] = getLocalizedText("menu.extras.bulletproofTires"),
- ["cameraSettings"] = {"wheel_rb_dummy", 60, 10, 4},
- ["subMenu"] = {
- [1] = {["categoryName"] = getLocalizedText("tuningPack.0"), ["tuningPrice"] = 0, ["tuningData"] = false},
- [2] = {["categoryName"] = getLocalizedText("tuningPack.bulletproofTires"), ["tuningPrice"] = 85000, ["tuningData"] = true}
- }
- },
- [6] = {
- ["categoryName"] = getLocalizedText("menu.extras.lsdDoor"),
- ["subMenu"] = {
- [1] = {["categoryName"] = getLocalizedText("tuningPack.0"), ["tuningPrice"] = 0, ["tuningData"] = false},
- [2] = {["categoryName"] = getLocalizedText("menu.extras.lsdDoor"), ["tuningPrice"] = 35000, ["tuningData"] = true}
- }
- },
- [7] = {
- ["categoryName"] = getLocalizedText("menu.extras.steeringLock"),
- ["propertyName"] = "steeringLock",
- ["subMenu"] = {
- [1] = {["categoryName"] = getLocalizedText("tuningPack.0"), ["tuningPrice"] = 7500, ["tuningData"] = false},
- [2] = {["categoryName"] = "30°", ["tuningPrice"] = 7500, ["tuningData"] = 30},
- [3] = {["categoryName"] = "40°", ["tuningPrice"] = 7500, ["tuningData"] = 40},
- [4] = {["categoryName"] = "50°", ["tuningPrice"] = 7500, ["tuningData"] = 50},
- [5] = {["categoryName"] = "60°", ["tuningPrice"] = 7500, ["tuningData"] = 60}
- }
- },
- [8] = {
- ["categoryName"] = getLocalizedText("menu.extras.numberplate"),
- ["cameraSettings"] = {"wheel_lb_dummy", -65, 4, 5},
- ["subMenu"] = {
- [1] = {["categoryName"] = getLocalizedText("tuningPack.numberplate.random"), ["tuningPrice"] = 75000, ["tuningData"] = "random"},
- [2] = {["categoryName"] = getLocalizedText("tuningPack.numberplate.custom"), ["tuningPrice"] = 150000, ["tuningData"] = "custom"}
- }
- },
- }
- },
- [4] = {
- ["categoryName"] = getLocalizedText("menu.color"),
- ["subMenu"] = {}
- }
- }
- function getMainCategoryIDByName(name)
- if name then
- for categoryID, row in ipairs(tuningMenu) do
- if name == row["categoryName"] then
- return categoryID
- end
- end
- end
- return -1
- end
Advertisement
Add Comment
Please, Sign In to add comment