availableTuningMarkers = {
--X, Y, Z, Vehicle Rotation (Use /markerpos to get perfect position and rotation (The command in sourceC.lua last row))
{-2282.83,-124.69,34.84}, -- LV Airport
{-2275.28,-124.99,34.84}, -- LV Airport
}
tuningMenu = {
[1] = {
["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"] = getLocalizedText("menu.optical.lampColor"),
["cameraSettings"] = {"bonnet_dummy", 90, 3, 13},
["upgradeSlot"] = 18,
["subMenu"] = {
[1] = {["categoryName"] = getLocalizedText("menu.optical.lampColor"), ["tuningPrice"] = 2500, ["tuningData"] = "headlight"},
}
},
}
},
[2] = {
["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