[{"data":1,"prerenderedAt":1526},["ShallowReactive",2],{"/docs/jobs/mechanicjob/reference/esx-vehicle-properties":3,"/docs/jobs/mechanicjob/reference/esx-vehicle-properties-surround":1515,"/docs/jobs/mechanicjob/reference/esx-vehicle-properties-implemented-suggestions":1525},{"id":4,"title":5,"body":6,"description":1505,"extension":1506,"head":1507,"implementedSuggestions":1507,"meta":1508,"navigation":1509,"path":1510,"schemaOrg":1507,"seo":1511,"sitemap":1512,"stem":1513,"__hash__":1514},"docs/1.docs/0.jobs/2.mechanicjob/4.reference/6.esx-vehicle-properties.md","ESX Vehicle Properties",{"type":7,"value":8,"toc":1494},"minimark",[9,27,42,47,64,82,88,92,99,104,129,134,175,179,183,187,242,246,276,280,285,289,543,547,938,942,946,950,1035,1039,1189,1193,1197,1201,1243,1247,1285,1289,1293,1297,1352,1356,1454,1458,1467,1470,1474,1490],[10,11,12,13,17,18,22,23,26],"p",{},"Use this page for ",[14,15,16],"strong",{},"ESX 1.15.2",". You can find your version in\n",[19,20,21],"code",{},"es_extended/fxmanifest.lua",", on the line that starts with ",[19,24,25],{},"version",".",[10,28,29,30,33,34,37,38,41],{},"In this ESX version, the vehicle functions are in ",[14,31,32],{},"esx_lib",". Your garage keeps using\n",[19,35,36],{},"ESX.Game.GetVehicleProperties"," and ",[19,39,40],{},"ESX.Game.SetVehicleProperties","; ESX forwards those calls\nto the functions in this file. If you do not have this file, send your ESX version to support.\nDo not create an empty replacement file.",[43,44,46],"h2",{"id":45},"_1-open-the-file","1. Open the file",[48,49,50,54,61],"ol",{},[51,52,53],"li",{},"Stop the server and make a backup of the file below, outside the server's resources folder.",[51,55,56,57,60],{},"Open ",[19,58,59],{},"esx_lib/imports/game/client.lua"," in your host's file editor or your usual code editor.",[51,62,63],{},"Keep that file open for every step on this page.",[10,65,66,69,70,73,74,77,78,81],{},[14,67,68],{},"How to use each step:"," press ",[14,71,72],{},"Ctrl+F"," to find the first line of the ",[14,75,76],{},"Find"," block.\nSelect the entire shown block in your file, then paste the complete ",[14,79,80],{},"Replace with"," block over it.\nLeave the surrounding code in place. You do not need to understand or rewrite the code.",[10,83,84,85,87],{},"If the ",[14,86,80],{}," block is already there, skip that step. If neither block matches, stop\nediting and restore your backup before starting the server. Send the file and your version to\nsupport. Versions and edited files can differ; do not guess where to paste.",[43,89,91],{"id":90},"_2-save-the-paint-finish","2. Save the paint finish",[10,93,94,95,98],{},"Inside ",[19,96,97],{},"xLib.game.getVehicleProperties",":",[10,100,101],{},[14,102,103],{},"Find:",[105,106,111],"pre",{"className":107,"code":108,"language":109,"meta":110,"style":110},"language-lua shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","        color1 = colorPrimary,\n","lua","",[19,112,113],{"__ignoreMap":110},[114,115,118,122,126],"span",{"class":116,"line":117},"line",1,[114,119,121],{"class":120},"sTEyZ","        color1 ",[114,123,125],{"class":124},"sMK4o","=",[114,127,128],{"class":120}," colorPrimary,\n",[10,130,131],{},[14,132,133],{},"Replace with:",[105,135,137],{"className":107,"code":136,"language":109,"meta":110,"style":110},"        paintType1 = GetVehicleModColor_1(vehicle),\n        paintType2 = GetVehicleModColor_2(vehicle),\n        color1 = colorPrimary,\n",[19,138,139,153,166],{"__ignoreMap":110},[114,140,141,144,146,150],{"class":116,"line":117},[114,142,143],{"class":120},"        paintType1 ",[114,145,125],{"class":124},[114,147,149],{"class":148},"s2Zo4"," GetVehicleModColor_1",[114,151,152],{"class":120},"(vehicle),\n",[114,154,156,159,161,164],{"class":116,"line":155},2,[114,157,158],{"class":120},"        paintType2 ",[114,160,125],{"class":124},[114,162,163],{"class":148}," GetVehicleModColor_2",[114,165,152],{"class":120},[114,167,169,171,173],{"class":116,"line":168},3,[114,170,121],{"class":120},[114,172,125],{"class":124},[114,174,128],{"class":120},[43,176,178],{"id":177},"_3-save-both-types-of-livery","3. Save both types of livery",[10,180,94,181,98],{},[19,182,97],{},[10,184,185],{},[14,186,103],{},[105,188,190],{"className":107,"code":189,"language":109,"meta":110,"style":110},"        modLivery = GetVehicleMod(vehicle, 48) == -1 and GetVehicleLivery(vehicle) or GetVehicleMod(vehicle, 48),\n",[19,191,192],{"__ignoreMap":110},[114,193,194,197,199,202,205,209,212,215,218,221,224,227,230,233,235,237,239],{"class":116,"line":117},[114,195,196],{"class":120},"        modLivery ",[114,198,125],{"class":124},[114,200,201],{"class":148}," GetVehicleMod",[114,203,204],{"class":120},"(vehicle, ",[114,206,208],{"class":207},"sbssI","48",[114,210,211],{"class":120},") ",[114,213,214],{"class":124},"==",[114,216,217],{"class":124}," -",[114,219,220],{"class":207},"1",[114,222,223],{"class":124}," and",[114,225,226],{"class":148}," GetVehicleLivery",[114,228,229],{"class":120},"(vehicle) ",[114,231,232],{"class":124},"or",[114,234,201],{"class":148},[114,236,204],{"class":120},[114,238,208],{"class":207},[114,240,241],{"class":120},"),\n",[10,243,244],{},[14,245,133],{},[105,247,249],{"className":107,"code":248,"language":109,"meta":110,"style":110},"        modLivery = GetVehicleMod(vehicle, 48),\n        livery = GetVehicleLivery(vehicle),\n",[19,250,251,265],{"__ignoreMap":110},[114,252,253,255,257,259,261,263],{"class":116,"line":117},[114,254,196],{"class":120},[114,256,125],{"class":124},[114,258,201],{"class":148},[114,260,204],{"class":120},[114,262,208],{"class":207},[114,264,241],{"class":120},[114,266,267,270,272,274],{"class":116,"line":155},[114,268,269],{"class":120},"        livery ",[114,271,125],{"class":124},[114,273,226],{"class":148},[114,275,152],{"class":120},[43,277,279],{"id":278},"_4-restore-colours-and-the-paint-finish","4. Restore colours and the paint finish",[10,281,94,282,98],{},[19,283,284],{},"xLib.game.setVehicleProperties",[10,286,287],{},[14,288,103],{},[105,290,292],{"className":107,"code":291,"language":109,"meta":110,"style":110},"    if props.color1 ~= nil then\n        if type(props.color1) == \"table\" then\n            SetVehicleCustomPrimaryColour(vehicle, props.color1[1], props.color1[2], props.color1[3])\n        else\n            SetVehicleColours(vehicle, props.color1, colorSecondary)\n        end\n    end\n    if props.color2 ~= nil then\n        if type(props.color2) == \"table\" then\n            SetVehicleCustomSecondaryColour(vehicle, props.color2[1], props.color2[2], props.color2[3])\n        else\n            SetVehicleColours(vehicle, type(props.color1) == \"number\" and props.color1 or colorPrimary, props.color2)\n        end\n    end\n",[19,293,294,316,346,383,389,402,408,414,430,453,485,490,533,538],{"__ignoreMap":110},[114,295,296,300,303,307,310,313],{"class":116,"line":117},[114,297,299],{"class":298},"s7zQu","    if",[114,301,302],{"class":120}," props.",[114,304,306],{"class":305},"sBMFI","color1",[114,308,309],{"class":124}," ~=",[114,311,312],{"class":124}," nil",[114,314,315],{"class":298}," then\n",[114,317,318,321,324,327,329,331,333,336,340,343],{"class":116,"line":155},[114,319,320],{"class":298},"        if",[114,322,323],{"class":148}," type",[114,325,326],{"class":120},"(props.",[114,328,306],{"class":305},[114,330,211],{"class":120},[114,332,214],{"class":124},[114,334,335],{"class":124}," \"",[114,337,339],{"class":338},"sfazB","table",[114,341,342],{"class":124},"\" ",[114,344,345],{"class":298},"then\n",[114,347,348,351,354,356,359,361,364,366,368,371,373,375,377,380],{"class":116,"line":168},[114,349,350],{"class":148},"            SetVehicleCustomPrimaryColour",[114,352,353],{"class":120},"(vehicle, props.",[114,355,306],{"class":305},[114,357,358],{"class":120},"[",[114,360,220],{"class":207},[114,362,363],{"class":120},"], props.",[114,365,306],{"class":305},[114,367,358],{"class":120},[114,369,370],{"class":207},"2",[114,372,363],{"class":120},[114,374,306],{"class":305},[114,376,358],{"class":120},[114,378,379],{"class":207},"3",[114,381,382],{"class":120},"])\n",[114,384,386],{"class":116,"line":385},4,[114,387,388],{"class":298},"        else\n",[114,390,392,395,397,399],{"class":116,"line":391},5,[114,393,394],{"class":148},"            SetVehicleColours",[114,396,353],{"class":120},[114,398,306],{"class":305},[114,400,401],{"class":120},", colorSecondary)\n",[114,403,405],{"class":116,"line":404},6,[114,406,407],{"class":298},"        end\n",[114,409,411],{"class":116,"line":410},7,[114,412,413],{"class":298},"    end\n",[114,415,417,419,421,424,426,428],{"class":116,"line":416},8,[114,418,299],{"class":298},[114,420,302],{"class":120},[114,422,423],{"class":305},"color2",[114,425,309],{"class":124},[114,427,312],{"class":124},[114,429,315],{"class":298},[114,431,433,435,437,439,441,443,445,447,449,451],{"class":116,"line":432},9,[114,434,320],{"class":298},[114,436,323],{"class":148},[114,438,326],{"class":120},[114,440,423],{"class":305},[114,442,211],{"class":120},[114,444,214],{"class":124},[114,446,335],{"class":124},[114,448,339],{"class":338},[114,450,342],{"class":124},[114,452,345],{"class":298},[114,454,456,459,461,463,465,467,469,471,473,475,477,479,481,483],{"class":116,"line":455},10,[114,457,458],{"class":148},"            SetVehicleCustomSecondaryColour",[114,460,353],{"class":120},[114,462,423],{"class":305},[114,464,358],{"class":120},[114,466,220],{"class":207},[114,468,363],{"class":120},[114,470,423],{"class":305},[114,472,358],{"class":120},[114,474,370],{"class":207},[114,476,363],{"class":120},[114,478,423],{"class":305},[114,480,358],{"class":120},[114,482,379],{"class":207},[114,484,382],{"class":120},[114,486,488],{"class":116,"line":487},11,[114,489,388],{"class":298},[114,491,493,495,497,500,502,504,506,508,510,513,515,518,520,522,525,528,530],{"class":116,"line":492},12,[114,494,394],{"class":148},[114,496,204],{"class":120},[114,498,499],{"class":148},"type",[114,501,326],{"class":120},[114,503,306],{"class":305},[114,505,211],{"class":120},[114,507,214],{"class":124},[114,509,335],{"class":124},[114,511,512],{"class":338},"number",[114,514,342],{"class":124},[114,516,517],{"class":124},"and",[114,519,302],{"class":120},[114,521,306],{"class":305},[114,523,524],{"class":124}," or",[114,526,527],{"class":120}," colorPrimary, props.",[114,529,423],{"class":305},[114,531,532],{"class":120},")\n",[114,534,536],{"class":116,"line":535},13,[114,537,407],{"class":298},[114,539,541],{"class":116,"line":540},14,[114,542,413],{"class":298},[10,544,545],{},[14,546,133],{},[105,548,550],{"className":107,"code":549,"language":109,"meta":110,"style":110},"    -- Preserve paint finishes, palette resets and mixed RGB/palette colours.\n    local primaryIndex = type(props.color1) == 'number' and props.color1 or colorPrimary\n    local secondaryIndex = type(props.color2) == 'number' and props.color2 or colorSecondary\n    if props.paintType1 ~= nil then\n        SetVehicleModColor_1(vehicle, props.paintType1, primaryIndex, props.pearlescentColor or pearlescentColor)\n    end\n    if props.paintType2 ~= nil then\n        SetVehicleModColor_2(vehicle, props.paintType2, secondaryIndex)\n    end\n    if type(props.color1) == 'number' or type(props.color2) == 'number' then\n        SetVehicleColours(vehicle, primaryIndex, secondaryIndex)\n    end\n    if props.color1 ~= nil then\n        if type(props.color1) == 'table' then\n            SetVehicleCustomPrimaryColour(vehicle, props.color1[1], props.color1[2], props.color1[3])\n        else\n            ClearVehicleCustomPrimaryColour(vehicle)\n        end\n    end\n    if props.color2 ~= nil then\n        if type(props.color2) == 'table' then\n            SetVehicleCustomSecondaryColour(vehicle, props.color2[1], props.color2[2], props.color2[3])\n        else\n            ClearVehicleCustomSecondaryColour(vehicle)\n        end\n    end\n",[19,551,552,558,597,633,648,668,672,687,699,703,743,751,755,769,791,822,827,836,841,846,861,884,915,920,928,933],{"__ignoreMap":110},[114,553,554],{"class":116,"line":117},[114,555,557],{"class":556},"sHwdD","    -- Preserve paint finishes, palette resets and mixed RGB/palette colours.\n",[114,559,560,563,566,568,570,572,574,576,578,581,583,586,588,590,592,594],{"class":116,"line":155},[114,561,562],{"class":124},"    local",[114,564,565],{"class":120}," primaryIndex ",[114,567,125],{"class":124},[114,569,323],{"class":148},[114,571,326],{"class":120},[114,573,306],{"class":305},[114,575,211],{"class":120},[114,577,214],{"class":124},[114,579,580],{"class":124}," '",[114,582,512],{"class":338},[114,584,585],{"class":124},"' ",[114,587,517],{"class":124},[114,589,302],{"class":120},[114,591,306],{"class":305},[114,593,524],{"class":124},[114,595,596],{"class":120}," colorPrimary\n",[114,598,599,601,604,606,608,610,612,614,616,618,620,622,624,626,628,630],{"class":116,"line":168},[114,600,562],{"class":124},[114,602,603],{"class":120}," secondaryIndex ",[114,605,125],{"class":124},[114,607,323],{"class":148},[114,609,326],{"class":120},[114,611,423],{"class":305},[114,613,211],{"class":120},[114,615,214],{"class":124},[114,617,580],{"class":124},[114,619,512],{"class":338},[114,621,585],{"class":124},[114,623,517],{"class":124},[114,625,302],{"class":120},[114,627,423],{"class":305},[114,629,524],{"class":124},[114,631,632],{"class":120}," colorSecondary\n",[114,634,635,637,639,642,644,646],{"class":116,"line":385},[114,636,299],{"class":298},[114,638,302],{"class":120},[114,640,641],{"class":305},"paintType1",[114,643,309],{"class":124},[114,645,312],{"class":124},[114,647,315],{"class":298},[114,649,650,653,655,657,660,663,665],{"class":116,"line":391},[114,651,652],{"class":148},"        SetVehicleModColor_1",[114,654,353],{"class":120},[114,656,641],{"class":305},[114,658,659],{"class":120},", primaryIndex, props.",[114,661,662],{"class":305},"pearlescentColor",[114,664,524],{"class":124},[114,666,667],{"class":120}," pearlescentColor)\n",[114,669,670],{"class":116,"line":404},[114,671,413],{"class":298},[114,673,674,676,678,681,683,685],{"class":116,"line":410},[114,675,299],{"class":298},[114,677,302],{"class":120},[114,679,680],{"class":305},"paintType2",[114,682,309],{"class":124},[114,684,312],{"class":124},[114,686,315],{"class":298},[114,688,689,692,694,696],{"class":116,"line":416},[114,690,691],{"class":148},"        SetVehicleModColor_2",[114,693,353],{"class":120},[114,695,680],{"class":305},[114,697,698],{"class":120},", secondaryIndex)\n",[114,700,701],{"class":116,"line":432},[114,702,413],{"class":298},[114,704,705,707,709,711,713,715,717,719,721,723,725,727,729,731,733,735,737,739,741],{"class":116,"line":455},[114,706,299],{"class":298},[114,708,323],{"class":148},[114,710,326],{"class":120},[114,712,306],{"class":305},[114,714,211],{"class":120},[114,716,214],{"class":124},[114,718,580],{"class":124},[114,720,512],{"class":338},[114,722,585],{"class":124},[114,724,232],{"class":124},[114,726,323],{"class":148},[114,728,326],{"class":120},[114,730,423],{"class":305},[114,732,211],{"class":120},[114,734,214],{"class":124},[114,736,580],{"class":124},[114,738,512],{"class":338},[114,740,585],{"class":124},[114,742,345],{"class":298},[114,744,745,748],{"class":116,"line":487},[114,746,747],{"class":148},"        SetVehicleColours",[114,749,750],{"class":120},"(vehicle, primaryIndex, secondaryIndex)\n",[114,752,753],{"class":116,"line":492},[114,754,413],{"class":298},[114,756,757,759,761,763,765,767],{"class":116,"line":535},[114,758,299],{"class":298},[114,760,302],{"class":120},[114,762,306],{"class":305},[114,764,309],{"class":124},[114,766,312],{"class":124},[114,768,315],{"class":298},[114,770,771,773,775,777,779,781,783,785,787,789],{"class":116,"line":540},[114,772,320],{"class":298},[114,774,323],{"class":148},[114,776,326],{"class":120},[114,778,306],{"class":305},[114,780,211],{"class":120},[114,782,214],{"class":124},[114,784,580],{"class":124},[114,786,339],{"class":338},[114,788,585],{"class":124},[114,790,345],{"class":298},[114,792,794,796,798,800,802,804,806,808,810,812,814,816,818,820],{"class":116,"line":793},15,[114,795,350],{"class":148},[114,797,353],{"class":120},[114,799,306],{"class":305},[114,801,358],{"class":120},[114,803,220],{"class":207},[114,805,363],{"class":120},[114,807,306],{"class":305},[114,809,358],{"class":120},[114,811,370],{"class":207},[114,813,363],{"class":120},[114,815,306],{"class":305},[114,817,358],{"class":120},[114,819,379],{"class":207},[114,821,382],{"class":120},[114,823,825],{"class":116,"line":824},16,[114,826,388],{"class":298},[114,828,830,833],{"class":116,"line":829},17,[114,831,832],{"class":148},"            ClearVehicleCustomPrimaryColour",[114,834,835],{"class":120},"(vehicle)\n",[114,837,839],{"class":116,"line":838},18,[114,840,407],{"class":298},[114,842,844],{"class":116,"line":843},19,[114,845,413],{"class":298},[114,847,849,851,853,855,857,859],{"class":116,"line":848},20,[114,850,299],{"class":298},[114,852,302],{"class":120},[114,854,423],{"class":305},[114,856,309],{"class":124},[114,858,312],{"class":124},[114,860,315],{"class":298},[114,862,864,866,868,870,872,874,876,878,880,882],{"class":116,"line":863},21,[114,865,320],{"class":298},[114,867,323],{"class":148},[114,869,326],{"class":120},[114,871,423],{"class":305},[114,873,211],{"class":120},[114,875,214],{"class":124},[114,877,580],{"class":124},[114,879,339],{"class":338},[114,881,585],{"class":124},[114,883,345],{"class":298},[114,885,887,889,891,893,895,897,899,901,903,905,907,909,911,913],{"class":116,"line":886},22,[114,888,458],{"class":148},[114,890,353],{"class":120},[114,892,423],{"class":305},[114,894,358],{"class":120},[114,896,220],{"class":207},[114,898,363],{"class":120},[114,900,423],{"class":305},[114,902,358],{"class":120},[114,904,370],{"class":207},[114,906,363],{"class":120},[114,908,423],{"class":305},[114,910,358],{"class":120},[114,912,379],{"class":207},[114,914,382],{"class":120},[114,916,918],{"class":116,"line":917},23,[114,919,388],{"class":298},[114,921,923,926],{"class":116,"line":922},24,[114,924,925],{"class":148},"            ClearVehicleCustomSecondaryColour",[114,927,835],{"class":120},[114,929,931],{"class":116,"line":930},25,[114,932,407],{"class":298},[114,934,936],{"class":116,"line":935},26,[114,937,413],{"class":298},[43,939,941],{"id":940},"_5-restore-headlight-colours","5. Restore headlight colours",[10,943,94,944,98],{},[19,945,284],{},[10,947,948],{},[14,949,103],{},[105,951,953],{"className":107,"code":952,"language":109,"meta":110,"style":110},"    if props.xenonColor ~= nil then\n        SetVehicleXenonLightsColor(vehicle, props.xenonColor)\n    end\n    if props.customXenonColor ~= nil then\n        SetVehicleXenonLightsCustomColor(vehicle, props.customXenonColor[1], props.customXenonColor[2], props.customXenonColor[3])\n    end\n",[19,954,955,970,981,985,1000,1031],{"__ignoreMap":110},[114,956,957,959,961,964,966,968],{"class":116,"line":117},[114,958,299],{"class":298},[114,960,302],{"class":120},[114,962,963],{"class":305},"xenonColor",[114,965,309],{"class":124},[114,967,312],{"class":124},[114,969,315],{"class":298},[114,971,972,975,977,979],{"class":116,"line":155},[114,973,974],{"class":148},"        SetVehicleXenonLightsColor",[114,976,353],{"class":120},[114,978,963],{"class":305},[114,980,532],{"class":120},[114,982,983],{"class":116,"line":168},[114,984,413],{"class":298},[114,986,987,989,991,994,996,998],{"class":116,"line":385},[114,988,299],{"class":298},[114,990,302],{"class":120},[114,992,993],{"class":305},"customXenonColor",[114,995,309],{"class":124},[114,997,312],{"class":124},[114,999,315],{"class":298},[114,1001,1002,1005,1007,1009,1011,1013,1015,1017,1019,1021,1023,1025,1027,1029],{"class":116,"line":391},[114,1003,1004],{"class":148},"        SetVehicleXenonLightsCustomColor",[114,1006,353],{"class":120},[114,1008,993],{"class":305},[114,1010,358],{"class":120},[114,1012,220],{"class":207},[114,1014,363],{"class":120},[114,1016,993],{"class":305},[114,1018,358],{"class":120},[114,1020,370],{"class":207},[114,1022,363],{"class":120},[114,1024,993],{"class":305},[114,1026,358],{"class":120},[114,1028,379],{"class":207},[114,1030,382],{"class":120},[114,1032,1033],{"class":116,"line":404},[114,1034,413],{"class":298},[10,1036,1037],{},[14,1038,133],{},[105,1040,1042],{"className":107,"code":1041,"language":109,"meta":110,"style":110},"    if props.xenonColor ~= nil then\n        if type(props.xenonColor) == 'table' then\n            SetVehicleXenonLightsCustomColor(vehicle, props.xenonColor[1], props.xenonColor[2], props.xenonColor[3])\n        else\n            ClearVehicleXenonLightsCustomColor(vehicle)\n            SetVehicleXenonLightsColor(vehicle, props.xenonColor)\n        end\n    end\n    if props.customXenonColor ~= nil then\n        SetVehicleXenonLightsCustomColor(vehicle, props.customXenonColor[1], props.customXenonColor[2], props.customXenonColor[3])\n    end\n",[19,1043,1044,1058,1080,1111,1115,1122,1133,1137,1141,1155,1185],{"__ignoreMap":110},[114,1045,1046,1048,1050,1052,1054,1056],{"class":116,"line":117},[114,1047,299],{"class":298},[114,1049,302],{"class":120},[114,1051,963],{"class":305},[114,1053,309],{"class":124},[114,1055,312],{"class":124},[114,1057,315],{"class":298},[114,1059,1060,1062,1064,1066,1068,1070,1072,1074,1076,1078],{"class":116,"line":155},[114,1061,320],{"class":298},[114,1063,323],{"class":148},[114,1065,326],{"class":120},[114,1067,963],{"class":305},[114,1069,211],{"class":120},[114,1071,214],{"class":124},[114,1073,580],{"class":124},[114,1075,339],{"class":338},[114,1077,585],{"class":124},[114,1079,345],{"class":298},[114,1081,1082,1085,1087,1089,1091,1093,1095,1097,1099,1101,1103,1105,1107,1109],{"class":116,"line":168},[114,1083,1084],{"class":148},"            SetVehicleXenonLightsCustomColor",[114,1086,353],{"class":120},[114,1088,963],{"class":305},[114,1090,358],{"class":120},[114,1092,220],{"class":207},[114,1094,363],{"class":120},[114,1096,963],{"class":305},[114,1098,358],{"class":120},[114,1100,370],{"class":207},[114,1102,363],{"class":120},[114,1104,963],{"class":305},[114,1106,358],{"class":120},[114,1108,379],{"class":207},[114,1110,382],{"class":120},[114,1112,1113],{"class":116,"line":385},[114,1114,388],{"class":298},[114,1116,1117,1120],{"class":116,"line":391},[114,1118,1119],{"class":148},"            ClearVehicleXenonLightsCustomColor",[114,1121,835],{"class":120},[114,1123,1124,1127,1129,1131],{"class":116,"line":404},[114,1125,1126],{"class":148},"            SetVehicleXenonLightsColor",[114,1128,353],{"class":120},[114,1130,963],{"class":305},[114,1132,532],{"class":120},[114,1134,1135],{"class":116,"line":410},[114,1136,407],{"class":298},[114,1138,1139],{"class":116,"line":416},[114,1140,413],{"class":298},[114,1142,1143,1145,1147,1149,1151,1153],{"class":116,"line":432},[114,1144,299],{"class":298},[114,1146,302],{"class":120},[114,1148,993],{"class":305},[114,1150,309],{"class":124},[114,1152,312],{"class":124},[114,1154,315],{"class":298},[114,1156,1157,1159,1161,1163,1165,1167,1169,1171,1173,1175,1177,1179,1181,1183],{"class":116,"line":455},[114,1158,1004],{"class":148},[114,1160,353],{"class":120},[114,1162,993],{"class":305},[114,1164,358],{"class":120},[114,1166,220],{"class":207},[114,1168,363],{"class":120},[114,1170,993],{"class":305},[114,1172,358],{"class":120},[114,1174,370],{"class":207},[114,1176,363],{"class":120},[114,1178,993],{"class":305},[114,1180,358],{"class":120},[114,1182,379],{"class":207},[114,1184,382],{"class":120},[114,1186,1187],{"class":116,"line":487},[114,1188,413],{"class":298},[43,1190,1192],{"id":1191},"_6-allow-tyre-smoke-to-be-switched-off","6. Allow tyre smoke to be switched off",[10,1194,94,1195,98],{},[19,1196,284],{},[10,1198,1199],{},[14,1200,103],{},[105,1202,1204],{"className":107,"code":1203,"language":109,"meta":110,"style":110},"    if props.modSmokeEnabled ~= nil then\n        ToggleVehicleMod(vehicle, 20, true)\n    end\n",[19,1205,1206,1221,1239],{"__ignoreMap":110},[114,1207,1208,1210,1212,1215,1217,1219],{"class":116,"line":117},[114,1209,299],{"class":298},[114,1211,302],{"class":120},[114,1213,1214],{"class":305},"modSmokeEnabled",[114,1216,309],{"class":124},[114,1218,312],{"class":124},[114,1220,315],{"class":298},[114,1222,1223,1226,1228,1231,1234,1237],{"class":116,"line":155},[114,1224,1225],{"class":148},"        ToggleVehicleMod",[114,1227,204],{"class":120},[114,1229,1230],{"class":207},"20",[114,1232,1233],{"class":120},", ",[114,1235,1236],{"class":124},"true",[114,1238,532],{"class":120},[114,1240,1241],{"class":116,"line":168},[114,1242,413],{"class":298},[10,1244,1245],{},[14,1246,133],{},[105,1248,1250],{"className":107,"code":1249,"language":109,"meta":110,"style":110},"    if props.modSmokeEnabled ~= nil then\n        ToggleVehicleMod(vehicle, 20, props.modSmokeEnabled)\n    end\n",[19,1251,1252,1266,1281],{"__ignoreMap":110},[114,1253,1254,1256,1258,1260,1262,1264],{"class":116,"line":117},[114,1255,299],{"class":298},[114,1257,302],{"class":120},[114,1259,1214],{"class":305},[114,1261,309],{"class":124},[114,1263,312],{"class":124},[114,1265,315],{"class":298},[114,1267,1268,1270,1272,1274,1277,1279],{"class":116,"line":155},[114,1269,1225],{"class":148},[114,1271,204],{"class":120},[114,1273,1230],{"class":207},[114,1275,1276],{"class":120},", props.",[114,1278,1214],{"class":305},[114,1280,532],{"class":120},[114,1282,1283],{"class":116,"line":168},[114,1284,413],{"class":298},[43,1286,1288],{"id":1287},"_7-restore-both-types-of-livery","7. Restore both types of livery",[10,1290,94,1291,98],{},[19,1292,284],{},[10,1294,1295],{},[14,1296,103],{},[105,1298,1300],{"className":107,"code":1299,"language":109,"meta":110,"style":110},"    if props.modLivery ~= nil then\n        SetVehicleMod(vehicle, 48, props.modLivery, false)\n        SetVehicleLivery(vehicle, props.modLivery)\n    end\n",[19,1301,1302,1317,1337,1348],{"__ignoreMap":110},[114,1303,1304,1306,1308,1311,1313,1315],{"class":116,"line":117},[114,1305,299],{"class":298},[114,1307,302],{"class":120},[114,1309,1310],{"class":305},"modLivery",[114,1312,309],{"class":124},[114,1314,312],{"class":124},[114,1316,315],{"class":298},[114,1318,1319,1322,1324,1326,1328,1330,1332,1335],{"class":116,"line":155},[114,1320,1321],{"class":148},"        SetVehicleMod",[114,1323,204],{"class":120},[114,1325,208],{"class":207},[114,1327,1276],{"class":120},[114,1329,1310],{"class":305},[114,1331,1233],{"class":120},[114,1333,1334],{"class":124},"false",[114,1336,532],{"class":120},[114,1338,1339,1342,1344,1346],{"class":116,"line":168},[114,1340,1341],{"class":148},"        SetVehicleLivery",[114,1343,353],{"class":120},[114,1345,1310],{"class":305},[114,1347,532],{"class":120},[114,1349,1350],{"class":116,"line":385},[114,1351,413],{"class":298},[10,1353,1354],{},[14,1355,133],{},[105,1357,1359],{"className":107,"code":1358,"language":109,"meta":110,"style":110},"    if props.modLivery ~= nil then\n        SetVehicleMod(vehicle, 48, props.modLivery, false)\n        if props.livery == nil then SetVehicleLivery(vehicle, props.modLivery) end\n    end\n    if props.livery ~= nil then\n        SetVehicleLivery(vehicle, props.livery)\n    end\n",[19,1360,1361,1375,1393,1422,1426,1440,1450],{"__ignoreMap":110},[114,1362,1363,1365,1367,1369,1371,1373],{"class":116,"line":117},[114,1364,299],{"class":298},[114,1366,302],{"class":120},[114,1368,1310],{"class":305},[114,1370,309],{"class":124},[114,1372,312],{"class":124},[114,1374,315],{"class":298},[114,1376,1377,1379,1381,1383,1385,1387,1389,1391],{"class":116,"line":155},[114,1378,1321],{"class":148},[114,1380,204],{"class":120},[114,1382,208],{"class":207},[114,1384,1276],{"class":120},[114,1386,1310],{"class":305},[114,1388,1233],{"class":120},[114,1390,1334],{"class":124},[114,1392,532],{"class":120},[114,1394,1395,1397,1399,1402,1405,1407,1410,1413,1415,1417,1419],{"class":116,"line":168},[114,1396,320],{"class":298},[114,1398,302],{"class":120},[114,1400,1401],{"class":305},"livery",[114,1403,1404],{"class":124}," ==",[114,1406,312],{"class":124},[114,1408,1409],{"class":298}," then",[114,1411,1412],{"class":148}," SetVehicleLivery",[114,1414,353],{"class":120},[114,1416,1310],{"class":305},[114,1418,211],{"class":120},[114,1420,1421],{"class":298},"end\n",[114,1423,1424],{"class":116,"line":385},[114,1425,413],{"class":298},[114,1427,1428,1430,1432,1434,1436,1438],{"class":116,"line":391},[114,1429,299],{"class":298},[114,1431,302],{"class":120},[114,1433,1401],{"class":305},[114,1435,309],{"class":124},[114,1437,312],{"class":124},[114,1439,315],{"class":298},[114,1441,1442,1444,1446,1448],{"class":116,"line":404},[114,1443,1341],{"class":148},[114,1445,353],{"class":120},[114,1447,1401],{"class":305},[114,1449,532],{"class":120},[114,1451,1452],{"class":116,"line":410},[114,1453,413],{"class":298},[43,1455,1457],{"id":1456},"_8-save-and-finish","8. Save and finish",[10,1459,1460,1461,1466],{},"Save the file. If you edited a downloaded copy, upload it back to the same location on the server.\nThen return to ",[1462,1463,1465],"a",{"href":1464},"./garage-integration","Garage Integration"," for the MSK notes and the vehicle test.",[10,1468,1469],{},"Your existing vehicle functions now include the changes above. Keep the framework's normal\nget/set calls in other scripts. Do not copy Sky function bodies into framework core files.",[43,1471,1473],{"id":1472},"reference-version","Reference version",[10,1475,1476,1477,1479,1480,1489],{},"The ",[14,1478,76],{}," blocks were checked against the unmodified official repository on 11 September 2026:\n",[1462,1481,1485,1486],{"href":1482,"rel":1483},"https://github.com/esx-framework/esx_core/blob/fe59ca0bd6da59e2ec6eb4a8d06ece312e96ae7a/%5Bcore%5D/esx_lib/imports/game/client.lua",[1484],"nofollow","ESX 1.15.2, source ",[19,1487,1488],{},"fe59ca0b",".\nThe examples are not based on a customized server installation.",[1491,1492,1493],"style",{},"html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}",{"title":110,"searchDepth":117,"depth":155,"links":1495},[1496,1497,1498,1499,1500,1501,1502,1503,1504],{"id":45,"depth":155,"text":46},{"id":90,"depth":155,"text":91},{"id":177,"depth":155,"text":178},{"id":278,"depth":155,"text":279},{"id":940,"depth":155,"text":941},{"id":1191,"depth":155,"text":1192},{"id":1287,"depth":155,"text":1288},{"id":1456,"depth":155,"text":1457},{"id":1472,"depth":155,"text":1473},"Copy-and-paste instructions to keep vehicle colours and tuning with ESX 1.15.2.","md",null,{},true,"/docs/jobs/mechanicjob/reference/esx-vehicle-properties",{"title":5,"description":1505},{"loc":1510},"1.docs/0.jobs/2.mechanicjob/4.reference/6.esx-vehicle-properties","dNvzPsrSsURNoton473d-r0UxbjPAtnO1wvsudtjtVs",[1516,1520],{"title":1465,"path":1517,"stem":1518,"description":1519,"children":-1},"/docs/jobs/mechanicjob/reference/garage-integration","1.docs/0.jobs/2.mechanicjob/4.reference/5.garage-integration","A step-by-step setup guide for server owners. Keep vehicle colours and tuning when parking and taking vehicles out.",{"title":1521,"path":1522,"stem":1523,"description":1524,"children":-1},"QBCore Vehicle Properties","/docs/jobs/mechanicjob/reference/qbcore-vehicle-properties","1.docs/0.jobs/2.mechanicjob/4.reference/7.qbcore-vehicle-properties","Copy-and-paste instructions to keep vehicle colours and tuning with QBCore 1.3.0.",[],1789238107810]