Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 138.08 KB | None | 0 0
  1. --bind client tunnel interface
  2. vRP = Proxy.getInterface("vRP")
  3.  
  4. local lsc = {
  5. inside = false,
  6. title = "Los Santos Customs",
  7. currentmenu = "repair",
  8. lastmenu = nil,
  9. currentpos = nil,
  10. currentgarage = 0,
  11. selectedbutton = 0,
  12. locations = { -- LSCUSTOMS LOCATIONS -- ADD SERVER LOCKS TOO
  13. [1] = { locked = false, outside = { x = -362.7962, y = -132.4005, z = 38.25239, heading = 71.187133}, inside = {x = -337.3863,y = -136.9247,z = 38.5737, heading = 269.455}},
  14. [2] = { locked = false, outside = { x = -1140.191, y = -1985.478, z = 12.72923, heading = 315.290466}, inside = {x = -1155.536,y = -2007.183,z = 12.744, heading = 155.413}},
  15. [3] = { locked = false, outside = { x = 716.4645, y = -1088.869, z = 21.92979, heading = 88.768}, inside = {x = 731.8163,y = -1088.822,z = 21.733, heading = 269.318}},
  16. [4] = { locked = false, outside = { x = 1174.811, y = 2649.954, z = 37.37151, heading = 0.450}, inside = {x = 1175.04,y = 2640.216,z = 37.32177, heading = 182.402}},
  17. [5] = { locked = false, outside = { x = 118.6830, y = 6618.4130, z = 30.9185, heading = 0.450}, inside = {x = 110.8406,y = 6626.568, z = 31.787, heading = 182.402}},
  18. [6] = { locked = false, outside = { x = -205.594, y = -1304.085, z = 30.614, heading = 359.792}, inside = {x = -212.368,y = -1325.486, z = 30.176, heading = 141.107}},
  19. },
  20. menu = {
  21. x = 0.8,
  22. y = 0.1,
  23. width = 0.25,
  24. height = 0.04,
  25. buttons = 10,
  26. from = 1,
  27. to = 10,
  28. ["bumpers"] = {
  29. title = "bumpers",
  30. name = "bumpers",
  31. buttons = {
  32.  
  33. }
  34. },
  35. ["frontbumper"] = {
  36. title = "frontbumper",
  37. name = "frontbumper",
  38. buttons = {
  39.  
  40. }
  41. },
  42. ["rearbumper"] = {
  43. title = "rearbumper",
  44. name = "rearbumper",
  45. buttons = {
  46.  
  47. }
  48. },
  49. ["main"] = {
  50. title = "categories",
  51. name = "main",
  52. buttons = {
  53.  
  54. }
  55. },["exhaust"] = {
  56. title = "exhaust",
  57. name = "exhaust",
  58. buttons = {
  59.  
  60. }
  61. },
  62. ["fenders"] = {
  63. title = "fenders",
  64. name = "fenders",
  65. buttons = {
  66.  
  67. }
  68. },
  69. ["grille"] = {
  70. title = "grille",
  71. name = "grille",
  72. buttons = {
  73.  
  74. }
  75. },
  76. ["hood"] = {
  77. title = "hood",
  78. name = "hood",
  79. buttons = {
  80.  
  81. }
  82. },["rollcage"] = {
  83. title = "rollcage",
  84. name = "rollcage",
  85. buttons = {
  86.  
  87. }
  88. },
  89. ["roof"] = {
  90. title = "roof",
  91. name = "roof",
  92. buttons = {
  93.  
  94. }
  95. },
  96. ["skirts"] = {
  97. title = "skirts",
  98. name = "skirts",
  99. buttons = {
  100.  
  101. }
  102. }
  103. ,
  104. ["spoiler"] = {
  105. title = "spoiler",
  106. name = "spoiler",
  107. buttons = {
  108.  
  109. }
  110. },["wheeliebar"] = {
  111. title = "wheeliebar",
  112. name = "wheeliebar",
  113. buttons = {
  114.  
  115. }
  116. },
  117. ["chassis"] = {
  118. title = "chassis",
  119. name = "chassis",
  120. buttons = {
  121.  
  122. }
  123. }
  124. ,["primarymetallic"] = {
  125. title = "primary colors",
  126. name = "primarymetallic",
  127. buttons = {
  128. {name = "Black",costs = 50, colorindex = 0, description = "", centre = 0, font = 0, scale = 0.4},
  129. {name = "Carbon Black",costs = 50, colorindex = 147, description = "", centre = 0, font = 0, scale = 0.4},
  130. {name = "Hraphite",costs = 50, colorindex = 1, description = "", centre = 0, font = 0, scale = 0.4},
  131. {name = "Anhracite Black",costs = 50, colorindex = 11, description = "", centre = 0, font = 0, scale = 0.4},
  132. {name = "Black Steel",costs = 50, colorindex = 2, description = "", centre = 0, font = 0, scale = 0.4},
  133. {name = "Dark Steel",costs = 50, colorindex = 3, description = "", centre = 0, font = 0, scale = 0.4},
  134. {name = "Silver",costs = 50, colorindex = 4, description = "", centre = 0, font = 0, scale = 0.4},
  135. {name = "Bluish Silver",costs = 50, colorindex = 5, description = "", centre = 0, font = 0, scale = 0.4},
  136. {name = "Rolled Steel",costs = 50, colorindex = 6, description = "", centre = 0, font = 0, scale = 0.4},
  137. {name = "Shadow Silver",costs = 50, colorindex = 7, description = "", centre = 0, font = 0, scale = 0.4},
  138. {name = "Stone Silver",costs = 50, colorindex = 8, description = "", centre = 0, font = 0, scale = 0.4},
  139. {name = "Midnight Silver",costs = 50, colorindex = 9, description = "", centre = 0, font = 0, scale = 0.4},
  140. {name = "Cast Iron Silver",costs = 50, colorindex = 10, description = "", centre = 0, font = 0, scale = 0.4},
  141. {name = "Red",costs = 50, colorindex = 27, description = "", centre = 0, font = 0, scale = 0.4},
  142. {name = "Torino Red",costs = 50, colorindex = 28, description = "", centre = 0, font = 0, scale = 0.4},
  143. {name = "Formula Red",costs = 50, colorindex = 29, description = "", centre = 0, font = 0, scale = 0.4},
  144. {name = "Lava Red",costs = 50, colorindex = 150, description = "", centre = 0, font = 0, scale = 0.4},
  145. {name = "Blaze Red",costs = 50, colorindex = 30, description = "", centre = 0, font = 0, scale = 0.4},
  146. {name = "Grace Red",costs = 50, colorindex = 31, description = "", centre = 0, font = 0, scale = 0.4},
  147. {name = "Garnet Red",costs = 50, colorindex = 32, description = "", centre = 0, font = 0, scale = 0.4},
  148. {name = "Sunset Red",costs = 50, colorindex = 33, description = "", centre = 0, font = 0, scale = 0.4},
  149. {name = "Cabernet Red",costs = 50, colorindex = 34, description = "", centre = 0, font = 0, scale = 0.4},
  150. {name = "Wine Red",costs = 50, colorindex = 143, description = "", centre = 0, font = 0, scale = 0.4},
  151. {name = "Candy Red",costs = 50, colorindex = 35, description = "", centre = 0, font = 0, scale = 0.4},
  152. {name = "Hot Pink",costs = 50, colorindex = 135, description = "", centre = 0, font = 0, scale = 0.4},
  153. {name = "Pfsiter Pink",costs = 50, colorindex = 137, description = "", centre = 0, font = 0, scale = 0.4},
  154. {name = "Salmon Pink",costs = 50, colorindex = 136, description = "", centre = 0, font = 0, scale = 0.4},
  155. {name = "Sunrise Orange",costs = 50, colorindex = 36, description = "", centre = 0, font = 0, scale = 0.4},
  156. {name = "Orange",costs = 50, colorindex = 38, description = "", centre = 0, font = 0, scale = 0.4},
  157. {name = "Bright Orange",costs = 50, colorindex = 138, description = "", centre = 0, font = 0, scale = 0.4},
  158. {name = "Gold",costs = 50, colorindex = 99, description = "", centre = 0, font = 0, scale = 0.4},
  159. {name = "Bronze",costs = 50, colorindex = 90, description = "", centre = 0, font = 0, scale = 0.4},
  160. {name = "Yellow",costs = 50, colorindex = 88, description = "", centre = 0, font = 0, scale = 0.4},
  161. {name = "Race Yellow",costs = 50, colorindex = 89, description = "", centre = 0, font = 0, scale = 0.4},
  162. {name = "Dew Yellow",costs = 50, colorindex = 91, description = "", centre = 0, font = 0, scale = 0.4},
  163. {name = "Dark Green",costs = 50, colorindex = 49, description = "", centre = 0, font = 0, scale = 0.4},
  164. {name = "Racing Green",costs = 50, colorindex = 50, description = "", centre = 0, font = 0, scale = 0.4},
  165. {name = "Sea Green",costs = 50, colorindex = 51, description = "", centre = 0, font = 0, scale = 0.4},
  166. {name = "Olive Green",costs = 50, colorindex = 52, description = "", centre = 0, font = 0, scale = 0.4},
  167. {name = "Bright Green",costs = 50, colorindex = 53, description = "", centre = 0, font = 0, scale = 0.4},
  168. {name = "Gasoline Green",costs = 50, colorindex = 54, description = "", centre = 0, font = 0, scale = 0.4},
  169. {name = "Lime Green",costs = 50, colorindex = 92, description = "", centre = 0, font = 0, scale = 0.4},
  170. {name = "Midnight Blue",costs = 50, colorindex = 141, description = "", centre = 0, font = 0, scale = 0.4},
  171. {name = "Galaxy Blue",costs = 50, colorindex = 61, description = "", centre = 0, font = 0, scale = 0.4},
  172. {name = "Dark Blue",costs = 50, colorindex = 62, description = "", centre = 0, font = 0, scale = 0.4},
  173. {name = "Saxon Blue",costs = 50, colorindex = 63, description = "", centre = 0, font = 0, scale = 0.4},
  174. {name = "Blue",costs = 50, colorindex = 64, description = "", centre = 0, font = 0, scale = 0.4},
  175. {name = "Mariner Blue",costs = 50, colorindex = 65, description = "", centre = 0, font = 0, scale = 0.4},
  176. {name = "Harbor Blue",costs = 50, colorindex = 66, description = "", centre = 0, font = 0, scale = 0.4},
  177. {name = "Diamond Blue",costs = 50, colorindex = 67, description = "", centre = 0, font = 0, scale = 0.4},
  178. {name = "Surf Blue",costs = 50, colorindex = 68, description = "", centre = 0, font = 0, scale = 0.4},
  179. {name = "Nautical Blue",costs = 50, colorindex = 69, description = "", centre = 0, font = 0, scale = 0.4},
  180. {name = "Racing Blue",costs = 50, colorindex = 73, description = "", centre = 0, font = 0, scale = 0.4},
  181. {name = "Ultra Blue",costs = 50, colorindex = 70, description = "", centre = 0, font = 0, scale = 0.4},
  182. {name = "Light Blue",costs = 50, colorindex = 74, description = "", centre = 0, font = 0, scale = 0.4},
  183. {name = "Chocolate Brown",costs = 50, colorindex = 96, description = "", centre = 0, font = 0, scale = 0.4},
  184. {name = "Bison Brown",costs = 50, colorindex = 101, description = "", centre = 0, font = 0, scale = 0.4},
  185. {name = "Creeen Brown",costs = 50, colorindex = 95, description = "", centre = 0, font = 0, scale = 0.4},
  186. {name = "Feltzer Brown",costs = 50, colorindex = 94, description = "", centre = 0, font = 0, scale = 0.4},
  187. {name = "Maple Brown",costs = 50, colorindex = 97, description = "", centre = 0, font = 0, scale = 0.4},
  188. {name = "Beechwood Brown",costs = 50, colorindex = 103, description = "", centre = 0, font = 0, scale = 0.4},
  189. {name = "Sienna Brown",costs = 50, colorindex = 104, description = "", centre = 0, font = 0, scale = 0.4},
  190. {name = "Saddle Brown",costs = 50, colorindex = 98, description = "", centre = 0, font = 0, scale = 0.4},
  191. {name = "Moss Brown",costs = 50, colorindex = 100, description = "", centre = 0, font = 0, scale = 0.4},
  192. {name = "Woodbeech Brown",costs = 50, colorindex = 102, description = "", centre = 0, font = 0, scale = 0.4},
  193. {name = "Straw Brown",costs = 50, colorindex = 99, description = "", centre = 0, font = 0, scale = 0.4},
  194. {name = "Sandy Brown",costs = 50, colorindex = 105, description = "", centre = 0, font = 0, scale = 0.4},
  195. {name = "Bleached Brown",costs = 50, colorindex = 106, description = "", centre = 0, font = 0, scale = 0.4},
  196. {name = "Schafter Purple",costs = 50, colorindex = 71, description = "", centre = 0, font = 0, scale = 0.4},
  197. {name = "Spinnaker Purple",costs = 50, colorindex = 72, description = "", centre = 0, font = 0, scale = 0.4},
  198. {name = "Midnight Purple",costs = 50, colorindex = 142, description = "", centre = 0, font = 0, scale = 0.4},
  199. {name = "Bright Purple",costs = 50, colorindex = 145, description = "", centre = 0, font = 0, scale = 0.4},
  200. {name = "Cream",costs = 50, colorindex = 107, description = "", centre = 0, font = 0, scale = 0.4},
  201. {name = "Ice White",costs = 50, colorindex = 111, description = "", centre = 0, font = 0, scale = 0.4},
  202. {name = "Frost White",costs = 50, colorindex = 112, description = "", centre = 0, font = 0, scale = 0.4}
  203. }
  204. },
  205. ["secondarymetallic"] = {
  206. title = "secondary colors",
  207. name = "secondarymetallic",
  208. buttons = {
  209. {name = "Black",costs = 50, colorindex = 0, description = "", centre = 0, font = 0, scale = 0.4},
  210. {name = "Carbon Black",costs = 50, colorindex = 147, description = "", centre = 0, font = 0, scale = 0.4},
  211. {name = "Hraphite",costs = 50, colorindex = 1, description = "", centre = 0, font = 0, scale = 0.4},
  212. {name = "Anhracite Black",costs = 50, colorindex = 11, description = "", centre = 0, font = 0, scale = 0.4},
  213. {name = "Black Steel",costs = 50, colorindex = 2, description = "", centre = 0, font = 0, scale = 0.4},
  214. {name = "Dark Steel",costs = 50, colorindex = 3, description = "", centre = 0, font = 0, scale = 0.4},
  215. {name = "Silver",costs = 50, colorindex = 4, description = "", centre = 0, font = 0, scale = 0.4},
  216. {name = "Bluish Silver",costs = 50, colorindex = 5, description = "", centre = 0, font = 0, scale = 0.4},
  217. {name = "Rolled Steel",costs = 50, colorindex = 6, description = "", centre = 0, font = 0, scale = 0.4},
  218. {name = "Shadow Silver",costs = 50, colorindex = 7, description = "", centre = 0, font = 0, scale = 0.4},
  219. {name = "Stone Silver",costs = 50, colorindex = 8, description = "", centre = 0, font = 0, scale = 0.4},
  220. {name = "Midnight Silver",costs = 50, colorindex = 9, description = "", centre = 0, font = 0, scale = 0.4},
  221. {name = "Cast Iron Silver",costs = 50, colorindex = 10, description = "", centre = 0, font = 0, scale = 0.4},
  222. {name = "Red",costs = 50, colorindex = 27, description = "", centre = 0, font = 0, scale = 0.4},
  223. {name = "Torino Red",costs = 50, colorindex = 28, description = "", centre = 0, font = 0, scale = 0.4},
  224. {name = "Formula Red",costs = 50, colorindex = 29, description = "", centre = 0, font = 0, scale = 0.4},
  225. {name = "Lava Red",costs = 50, colorindex = 150, description = "", centre = 0, font = 0, scale = 0.4},
  226. {name = "Blaze Red",costs = 50, colorindex = 30, description = "", centre = 0, font = 0, scale = 0.4},
  227. {name = "Grace Red",costs = 50, colorindex = 31, description = "", centre = 0, font = 0, scale = 0.4},
  228. {name = "Garnet Red",costs = 50, colorindex = 32, description = "", centre = 0, font = 0, scale = 0.4},
  229. {name = "Sunset Red",costs = 50, colorindex = 33, description = "", centre = 0, font = 0, scale = 0.4},
  230. {name = "Cabernet Red",costs = 50, colorindex = 34, description = "", centre = 0, font = 0, scale = 0.4},
  231. {name = "Wine Red",costs = 50, colorindex = 143, description = "", centre = 0, font = 0, scale = 0.4},
  232. {name = "Candy Red",costs = 50, colorindex = 35, description = "", centre = 0, font = 0, scale = 0.4},
  233. {name = "Hot Pink",costs = 50, colorindex = 135, description = "", centre = 0, font = 0, scale = 0.4},
  234. {name = "Pfsiter Pink",costs = 50, colorindex = 137, description = "", centre = 0, font = 0, scale = 0.4},
  235. {name = "Salmon Pink",costs = 50, colorindex = 136, description = "", centre = 0, font = 0, scale = 0.4},
  236. {name = "Sunrise Orange",costs = 50, colorindex = 36, description = "", centre = 0, font = 0, scale = 0.4},
  237. {name = "Orange",costs = 50, colorindex = 38, description = "", centre = 0, font = 0, scale = 0.4},
  238. {name = "Bright Orange",costs = 50, colorindex = 138, description = "", centre = 0, font = 0, scale = 0.4},
  239. {name = "Gold",costs = 50, colorindex = 99, description = "", centre = 0, font = 0, scale = 0.4},
  240. {name = "Bronze",costs = 50, colorindex = 90, description = "", centre = 0, font = 0, scale = 0.4},
  241. {name = "Yellow",costs = 50, colorindex = 88, description = "", centre = 0, font = 0, scale = 0.4},
  242. {name = "Race Yellow",costs = 50, colorindex = 89, description = "", centre = 0, font = 0, scale = 0.4},
  243. {name = "Dew Yellow",costs = 50, colorindex = 91, description = "", centre = 0, font = 0, scale = 0.4},
  244. {name = "Dark Green",costs = 50, colorindex = 49, description = "", centre = 0, font = 0, scale = 0.4},
  245. {name = "Racing Green",costs = 50, colorindex = 50, description = "", centre = 0, font = 0, scale = 0.4},
  246. {name = "Sea Green",costs = 50, colorindex = 51, description = "", centre = 0, font = 0, scale = 0.4},
  247. {name = "Olive Green",costs = 50, colorindex = 52, description = "", centre = 0, font = 0, scale = 0.4},
  248. {name = "Bright Green",costs = 50, colorindex = 53, description = "", centre = 0, font = 0, scale = 0.4},
  249. {name = "Gasoline Green",costs = 50, colorindex = 54, description = "", centre = 0, font = 0, scale = 0.4},
  250. {name = "Lime Green",costs = 50, colorindex = 92, description = "", centre = 0, font = 0, scale = 0.4},
  251. {name = "Midnight Blue",costs = 50, colorindex = 141, description = "", centre = 0, font = 0, scale = 0.4},
  252. {name = "Galaxy Blue",costs = 50, colorindex = 61, description = "", centre = 0, font = 0, scale = 0.4},
  253. {name = "Dark Blue",costs = 50, colorindex = 62, description = "", centre = 0, font = 0, scale = 0.4},
  254. {name = "Saxon Blue",costs = 50, colorindex = 63, description = "", centre = 0, font = 0, scale = 0.4},
  255. {name = "Blue",costs = 50, colorindex = 64, description = "", centre = 0, font = 0, scale = 0.4},
  256. {name = "Mariner Blue",costs = 50, colorindex = 65, description = "", centre = 0, font = 0, scale = 0.4},
  257. {name = "Harbor Blue",costs = 50, colorindex = 66, description = "", centre = 0, font = 0, scale = 0.4},
  258. {name = "Diamond Blue",costs = 50, colorindex = 67, description = "", centre = 0, font = 0, scale = 0.4},
  259. {name = "Surf Blue",costs = 50, colorindex = 68, description = "", centre = 0, font = 0, scale = 0.4},
  260. {name = "Nautical Blue",costs = 50, colorindex = 69, description = "", centre = 0, font = 0, scale = 0.4},
  261. {name = "Racing Blue",costs = 50, colorindex = 73, description = "", centre = 0, font = 0, scale = 0.4},
  262. {name = "Ultra Blue",costs = 50, colorindex = 70, description = "", centre = 0, font = 0, scale = 0.4},
  263. {name = "Light Blue",costs = 50, colorindex = 74, description = "", centre = 0, font = 0, scale = 0.4},
  264. {name = "Chocolate Brown",costs = 50, colorindex = 96, description = "", centre = 0, font = 0, scale = 0.4},
  265. {name = "Bison Brown",costs = 50, colorindex = 101, description = "", centre = 0, font = 0, scale = 0.4},
  266. {name = "Creeen Brown",costs = 50, colorindex = 95, description = "", centre = 0, font = 0, scale = 0.4},
  267. {name = "Feltzer Brown",costs = 50, colorindex = 94, description = "", centre = 0, font = 0, scale = 0.4},
  268. {name = "Maple Brown",costs = 50, colorindex = 97, description = "", centre = 0, font = 0, scale = 0.4},
  269. {name = "Beechwood Brown",costs = 50, colorindex = 103, description = "", centre = 0, font = 0, scale = 0.4},
  270. {name = "Sienna Brown",costs = 50, colorindex = 104, description = "", centre = 0, font = 0, scale = 0.4},
  271. {name = "Saddle Brown",costs = 50, colorindex = 98, description = "", centre = 0, font = 0, scale = 0.4},
  272. {name = "Moss Brown",costs = 50, colorindex = 100, description = "", centre = 0, font = 0, scale = 0.4},
  273. {name = "Woodbeech Brown",costs = 50, colorindex = 102, description = "", centre = 0, font = 0, scale = 0.4},
  274. {name = "Straw Brown",costs = 50, colorindex = 99, description = "", centre = 0, font = 0, scale = 0.4},
  275. {name = "Sandy Brown",costs = 50, colorindex = 105, description = "", centre = 0, font = 0, scale = 0.4},
  276. {name = "Bleached Brown",costs = 50, colorindex = 106, description = "", centre = 0, font = 0, scale = 0.4},
  277. {name = "Schafter Purple",costs = 50, colorindex = 71, description = "", centre = 0, font = 0, scale = 0.4},
  278. {name = "Spinnaker Purple",costs = 50, colorindex = 72, description = "", centre = 0, font = 0, scale = 0.4},
  279. {name = "Midnight Purple",costs = 50, colorindex = 142, description = "", centre = 0, font = 0, scale = 0.4},
  280. {name = "Bright Purple",costs = 50, colorindex = 145, description = "", centre = 0, font = 0, scale = 0.4},
  281. {name = "Cream",costs = 50, colorindex = 107, description = "", centre = 0, font = 0, scale = 0.4},
  282. {name = "Ice White",costs = 50, colorindex = 111, description = "", centre = 0, font = 0, scale = 0.4},
  283. {name = "Frost White",costs = 50, colorindex = 112, description = "", centre = 0, font = 0, scale = 0.4}
  284. }
  285. },
  286.  
  287. ["primarymatte"] = {
  288. title = "primary colors",
  289. name = "primarymatte",
  290. buttons = {
  291. {name = "Black", colorindex = 12,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  292. {name = "Gray", colorindex = 13,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  293. {name = "Light Gray", colorindex = 14,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  294. {name = "Ice White", colorindex = 131,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  295. {name = "Blue", colorindex = 83,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  296. {name = "Dark Blue", colorindex = 82,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  297. {name = "Midnight Blue", colorindex = 84,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  298. {name = "Midnight Purple", colorindex = 149,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  299. {name = "Schafter Purple", colorindex = 148,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  300. {name = "Red", colorindex = 39,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  301. {name = "Dark Red", colorindex = 40,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  302. {name = "Orange", colorindex = 41,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  303. {name = "Yellow", colorindex = 42,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  304. {name = "Lime Green", colorindex = 55,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  305. {name = "Green", colorindex = 128,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  306. {name = "Frost Green", colorindex = 151,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  307. {name = "Foliage Green", colorindex = 155,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  308. {name = "Olive Darb", colorindex = 152,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  309. {name = "Dark Earth", colorindex = 153,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  310. {name = "Desert Tan", colorindex = 154,costs = 65, description = "", centre = 0, font = 0, scale = 0.4}
  311. }
  312. },
  313. ["secondarymatte"] = {
  314. title = "secondary colors",
  315. name = "secondarymatte",
  316. buttons = {
  317. {name = "Black", colorindex = 12,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  318. {name = "Gray", colorindex = 13,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  319. {name = "Light Gray", colorindex = 14,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  320. {name = "Ice White", colorindex = 131,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  321. {name = "Blue", colorindex = 83,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  322. {name = "Dark Blue", colorindex = 82,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  323. {name = "Midnight Blue", colorindex = 84,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  324. {name = "Midnight Purple", colorindex = 149,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  325. {name = "Schafter Purple", colorindex = 148,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  326. {name = "Red", colorindex = 39,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  327. {name = "Dark Red", colorindex = 40,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  328. {name = "Orange", colorindex = 41,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  329. {name = "Yellow", colorindex = 42,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  330. {name = "Lime Green", colorindex = 55,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  331. {name = "Green", colorindex = 128,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  332. {name = "Frost Green", colorindex = 151,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  333. {name = "Foliage Green", colorindex = 155,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  334. {name = "Olive Darb", colorindex = 152,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  335. {name = "Dark Earth", colorindex = 153,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  336. {name = "Desert Tan", colorindex = 154,costs = 65, description = "", centre = 0, font = 0, scale = 0.4}
  337. }
  338. },
  339. ["primarymetal"] = {
  340. title = "primary colors",
  341. name = "primarymetal",
  342. buttons = {
  343. {name = "Brushed Steel",colorindex = 117,costs = 100, description = "", centre = 0, font = 0, scale = 0.4},
  344. {name = "Brushed Black Steel",colorindex = 118,costs = 125, description = "", centre = 0, font = 0, scale = 0.4},
  345. {name = "Brushed Aluminum",colorindex = 119,costs = 90, description = "", centre = 0, font = 0, scale = 0.4},
  346. {name = "Pure Gold",colorindex = 158,costs = 600, description = "", centre = 0, font = 0, scale = 0.4},
  347. {name = "Brushed Gold",colorindex = 159,costs = 630, description = "", centre = 0, font = 0, scale = 0.4}
  348. }
  349. }
  350. ,
  351. ["secondarymetal"] = {
  352. title = "secondary colors",
  353. name = "secondarymetal",
  354. buttons = {
  355. {name = "Brushed Steel",colorindex = 117,costs = 100, description = "", centre = 0, font = 0, scale = 0.4},
  356. {name = "Brushed Black Steel",colorindex = 118,costs = 125, description = "", centre = 0, font = 0, scale = 0.4},
  357. {name = "Brushed Aluminum",colorindex = 119,costs = 90, description = "", centre = 0, font = 0, scale = 0.4},
  358. {name = "Pure Gold",colorindex = 158,costs = 600, description = "", centre = 0, font = 0, scale = 0.4},
  359. {name = "Brushed Gold",colorindex = 159,costs = 630, description = "", centre = 0, font = 0, scale = 0.4}
  360. }
  361. },["wheelcolor"] = {
  362. title = "wheel colors",
  363. name = "wheelcolor",
  364. buttons = {
  365. {name = "Black",costs = 30, colorindex = 0, description = "", centre = 0, font = 0, scale = 0.4},
  366. {name = "Carbon Black",costs = 30, colorindex = 147, description = "", centre = 0, font = 0, scale = 0.4},
  367. {name = "Hraphite",costs = 30, colorindex = 1, description = "", centre = 0, font = 0, scale = 0.4},
  368. {name = "Anhracite Black",costs = 30, colorindex = 11, description = "", centre = 0, font = 0, scale = 0.4},
  369. {name = "Black Steel",costs = 30, colorindex = 2, description = "", centre = 0, font = 0, scale = 0.4},
  370. {name = "Dark Steel",costs = 30, colorindex = 3, description = "", centre = 0, font = 0, scale = 0.4},
  371. {name = "Silver",costs = 30, colorindex = 4, description = "", centre = 0, font = 0, scale = 0.4},
  372. {name = "Bluish Silver",costs = 30, colorindex = 5, description = "", centre = 0, font = 0, scale = 0.4},
  373. {name = "Rolled Steel",costs = 30, colorindex = 6, description = "", centre = 0, font = 0, scale = 0.4},
  374. {name = "Shadow Silver",costs = 30, colorindex = 7, description = "", centre = 0, font = 0, scale = 0.4},
  375. {name = "Stone Silver",costs = 30, colorindex = 8, description = "", centre = 0, font = 0, scale = 0.4},
  376. {name = "Midnight Silver",costs = 30, colorindex = 9, description = "", centre = 0, font = 0, scale = 0.4},
  377. {name = "Cast Iron Silver",costs = 30, colorindex = 10, description = "", centre = 0, font = 0, scale = 0.4},
  378. {name = "Red",costs = 30, colorindex = 27, description = "", centre = 0, font = 0, scale = 0.4},
  379. {name = "Torino Red",costs = 30, colorindex = 28, description = "", centre = 0, font = 0, scale = 0.4},
  380. {name = "Formula Red",costs = 30, colorindex = 29, description = "", centre = 0, font = 0, scale = 0.4},
  381. {name = "Lava Red",costs = 30, colorindex = 150, description = "", centre = 0, font = 0, scale = 0.4},
  382. {name = "Blaze Red",costs = 30, colorindex = 30, description = "", centre = 0, font = 0, scale = 0.4},
  383. {name = "Grace Red",costs = 30, colorindex = 31, description = "", centre = 0, font = 0, scale = 0.4},
  384. {name = "Garnet Red",costs = 30, colorindex = 32, description = "", centre = 0, font = 0, scale = 0.4},
  385. {name = "Sunset Red",costs = 30, colorindex = 33, description = "", centre = 0, font = 0, scale = 0.4},
  386. {name = "Cabernet Red",costs = 30, colorindex = 34, description = "", centre = 0, font = 0, scale = 0.4},
  387. {name = "Wine Red",costs = 30, colorindex = 143, description = "", centre = 0, font = 0, scale = 0.4},
  388. {name = "Candy Red",costs = 30, colorindex = 35, description = "", centre = 0, font = 0, scale = 0.4},
  389. {name = "Hot Pink",costs = 30, colorindex = 135, description = "", centre = 0, font = 0, scale = 0.4},
  390. {name = "Pfsiter Pink",costs = 30, colorindex = 137, description = "", centre = 0, font = 0, scale = 0.4},
  391. {name = "Salmon Pink",costs = 30, colorindex = 136, description = "", centre = 0, font = 0, scale = 0.4},
  392. {name = "Sunrise Orange",costs = 30, colorindex = 36, description = "", centre = 0, font = 0, scale = 0.4},
  393. {name = "Orange",costs = 30, colorindex = 38, description = "", centre = 0, font = 0, scale = 0.4},
  394. {name = "Bright Orange",costs = 30, colorindex = 138, description = "", centre = 0, font = 0, scale = 0.4},
  395. {name = "Gold",costs = 30, colorindex = 99, description = "", centre = 0, font = 0, scale = 0.4},
  396. {name = "Bronze",costs = 30, colorindex = 90, description = "", centre = 0, font = 0, scale = 0.4},
  397. {name = "Yellow",costs = 30, colorindex = 88, description = "", centre = 0, font = 0, scale = 0.4},
  398. {name = "Race Yellow",costs = 30, colorindex = 89, description = "", centre = 0, font = 0, scale = 0.4},
  399. {name = "Dew Yellow",costs = 30, colorindex = 91, description = "", centre = 0, font = 0, scale = 0.4},
  400. {name = "Dark Green",costs = 30, colorindex = 49, description = "", centre = 0, font = 0, scale = 0.4},
  401. {name = "Racing Green",costs = 30, colorindex = 50, description = "", centre = 0, font = 0, scale = 0.4},
  402. {name = "Sea Green",costs = 30, colorindex = 51, description = "", centre = 0, font = 0, scale = 0.4},
  403. {name = "Olive Green",costs = 30, colorindex = 52, description = "", centre = 0, font = 0, scale = 0.4},
  404. {name = "Bright Green",costs = 30, colorindex = 53, description = "", centre = 0, font = 0, scale = 0.4},
  405. {name = "Gasoline Green",costs = 30, colorindex = 54, description = "", centre = 0, font = 0, scale = 0.4},
  406. {name = "Lime Green",costs = 30, colorindex = 92, description = "", centre = 0, font = 0, scale = 0.4},
  407. {name = "Midnight Blue",costs = 30, colorindex = 141, description = "", centre = 0, font = 0, scale = 0.4},
  408. {name = "Galaxy Blue",costs = 30, colorindex = 61, description = "", centre = 0, font = 0, scale = 0.4},
  409. {name = "Dark Blue",costs = 30, colorindex = 62, description = "", centre = 0, font = 0, scale = 0.4},
  410. {name = "Saxon Blue",costs = 30, colorindex = 63, description = "", centre = 0, font = 0, scale = 0.4},
  411. {name = "Blue",costs = 30, colorindex = 64, description = "", centre = 0, font = 0, scale = 0.4},
  412. {name = "Mariner Blue",costs = 30, colorindex = 65, description = "", centre = 0, font = 0, scale = 0.4},
  413. {name = "Harbor Blue",costs = 30, colorindex = 66, description = "", centre = 0, font = 0, scale = 0.4},
  414. {name = "Diamond Blue",costs = 30, colorindex = 67, description = "", centre = 0, font = 0, scale = 0.4},
  415. {name = "Surf Blue",costs = 30, colorindex = 68, description = "", centre = 0, font = 0, scale = 0.4},
  416. {name = "Nautical Blue",costs = 30, colorindex = 69, description = "", centre = 0, font = 0, scale = 0.4},
  417. {name = "Racing Blue",costs = 30, colorindex = 73, description = "", centre = 0, font = 0, scale = 0.4},
  418. {name = "Ultra Blue",costs = 30, colorindex = 70, description = "", centre = 0, font = 0, scale = 0.4},
  419. {name = "Light Blue",costs = 30, colorindex = 74, description = "", centre = 0, font = 0, scale = 0.4},
  420. {name = "Chocolate Brown",costs = 30, colorindex = 96, description = "", centre = 0, font = 0, scale = 0.4},
  421. {name = "Bison Brown",costs = 30, colorindex = 101, description = "", centre = 0, font = 0, scale = 0.4},
  422. {name = "Creeen Brown",costs = 30, colorindex = 95, description = "", centre = 0, font = 0, scale = 0.4},
  423. {name = "Feltzer Brown",costs = 30, colorindex = 94, description = "", centre = 0, font = 0, scale = 0.4},
  424. {name = "Maple Brown",costs = 30, colorindex = 97, description = "", centre = 0, font = 0, scale = 0.4},
  425. {name = "Beechwood Brown",costs = 30, colorindex = 103, description = "", centre = 0, font = 0, scale = 0.4},
  426. {name = "Sienna Brown",costs = 30, colorindex = 104, description = "", centre = 0, font = 0, scale = 0.4},
  427. {name = "Saddle Brown",costs = 30, colorindex = 98, description = "", centre = 0, font = 0, scale = 0.4},
  428. {name = "Moss Brown",costs = 30, colorindex = 100, description = "", centre = 0, font = 0, scale = 0.4},
  429. {name = "Woodbeech Brown",costs = 30, colorindex = 102, description = "", centre = 0, font = 0, scale = 0.4},
  430. {name = "Straw Brown",costs = 30, colorindex = 99, description = "", centre = 0, font = 0, scale = 0.4},
  431. {name = "Sandy Brown",costs = 30, colorindex = 105, description = "", centre = 0, font = 0, scale = 0.4},
  432. {name = "Bleached Brown",costs = 30, colorindex = 106, description = "", centre = 0, font = 0, scale = 0.4},
  433. {name = "Schafter Purple",costs = 30, colorindex = 71, description = "", centre = 0, font = 0, scale = 0.4},
  434. {name = "Spinnaker Purple",costs = 30, colorindex = 72, description = "", centre = 0, font = 0, scale = 0.4},
  435. {name = "Midnight Purple",costs = 30, colorindex = 142, description = "", centre = 0, font = 0, scale = 0.4},
  436. {name = "Bright Purple",costs = 30, colorindex = 145, description = "", centre = 0, font = 0, scale = 0.4},
  437. {name = "Cream",costs = 30, colorindex = 107, description = "", centre = 0, font = 0, scale = 0.4},
  438. {name = "Ice White",costs = 30, colorindex = 111, description = "", centre = 0, font = 0, scale = 0.4},
  439. {name = "Frost White",costs = 30, colorindex = 112, description = "", centre = 0, font = 0, scale = 0.4}
  440. }
  441. },
  442. ["windows"] = {
  443. title = "windows",
  444. name = "windows",
  445. buttons = {
  446. {name = "None",tint = false, costs = 10, description = "", centre = 0, font = 0, scale = 0.4},
  447. {name = "Pure Black",tint = 1, costs = 50, description = "", centre = 0, font = 0, scale = 0.4},
  448. {name = "Darksmoke",tint = 2, costs = 45, description = "", centre = 0, font = 0, scale = 0.4},
  449. {name = "Lightsmoke",tint = 3, costs = 35, description = "", centre = 0, font = 0, scale = 0.4},
  450. {name = "Limo",tint = 4, costs = 60, description = "", centre = 0, font = 0, scale = 0.4},
  451. {name = "Green",tint = 5, costs = 30, description = "", centre = 0, font = 0, scale = 0.4}
  452. }
  453. },
  454. ["wheelaccessories"] = {
  455. title = "wheel accessories",
  456. name = "wheelaccessories",
  457. buttons = {
  458. {name = "Stock Tires", costs = 10, description = "", centre = 0, font = 0, scale = 0.4},
  459. {name = "Custom Tires", costs = 30, description = "", centre = 0, font = 0, scale = 0.4},
  460. {name = "Bulletproof Tires", costs = 150000, description = "", centre = 0, font = 0, scale = 0.4},
  461. {name = "White Tire Smoke", color = {254,254,254}, costs = 25, description = "", centre = 0, font = 0, scale = 0.4},
  462. {name = "Black Tire Smoke", color = {1,1,1}, costs = 25, description = "", centre = 0, font = 0, scale = 0.4},
  463. {name = "Blue Tire Smoke", color = {0,150,255}, costs = 30, description = "", centre = 0, font = 0, scale = 0.4},
  464. {name = "Yellow Tire Smoke", color = {255,255,50}, costs = 30, description = "", centre = 0, font = 0, scale = 0.4},
  465. {name = "Orange Tire Smoke", color = {255,153,51}, costs = 30, description = "", centre = 0, font = 0, scale = 0.4},
  466. {name = "Red Tire Smoke", color = {255,10,10}, costs = 30, description = "", centre = 0, font = 0, scale = 0.4},
  467. {name = "Green Tire Smoke", color = {10,255,10}, costs = 30, description = "", centre = 0, font = 0, scale = 0.4},
  468. {name = "Purple Tire Smoke", color = {153,10,153}, costs = 30, description = "", centre = 0, font = 0, scale = 0.4},
  469. {name = "Pink Tire Smoke", color = {255,102,178}, costs = 30, description = "", centre = 0, font = 0, scale = 0.4},
  470. {name = "Gray Tire Smoke", color = {128,128,128}, costs = 30, description = "", centre = 0, font = 0, scale = 0.4},
  471. }
  472. },
  473. ["respray"] = {
  474. title = "resprays",
  475. name = "respray",
  476. buttons = {
  477. {name = "Primary Color", description = "", centre = 0, font = 0, scale = 0.4},
  478. {name = "Secondary Color", description = "", centre = 0, font = 0, scale = 0.4}
  479. }
  480. },
  481. ["primarycolor"] = {
  482. title = "color groups",
  483. name = "primarycolor",
  484. buttons = {
  485. {name = "Chrome", description = "", centre = 0, font = 0, scale = 0.4},
  486. {name = "Classic", description = "", centre = 0, font = 0, scale = 0.4},
  487. {name = "Matte", description = "", centre = 0, font = 0, scale = 0.4},
  488. {name = "Metallic", description = "", centre = 0, font = 0, scale = 0.4},
  489. {name = "Metals", description = "", centre = 0, font = 0, scale = 0.4}
  490. }
  491. }
  492. ,
  493. ["secondarycolor"] = {
  494. title = "color groups",
  495. name = "secondarycolor",
  496. buttons = {
  497. {name = "Chrome", description = "", centre = 0, font = 0, scale = 0.4},
  498. {name = "Classic", description = "", centre = 0, font = 0, scale = 0.4},
  499. {name = "Matte", description = "", centre = 0, font = 0, scale = 0.4},
  500. {name = "Metallic", description = "", centre = 0, font = 0, scale = 0.4},
  501. {name = "Metals", description = "", centre = 0, font = 0, scale = 0.4}
  502. }
  503. },
  504. ["primarychrome"] = {
  505. title = "primary colors",
  506. name = "primarycolchrome",
  507. buttons = {
  508. {name = "Chrome", costs = 350, colorindex = 120, description = "", centre = 0, font = 0, scale = 0.4}
  509. }
  510. },
  511. ["secondarychrome"] = {
  512. title = "secondary colors",
  513. name = "secondarycolchrome",
  514. buttons = {
  515. {name = "Chrome", costs = 350, colorindex = 120, description = "", centre = 0, font = 0, scale = 0.4}
  516. }
  517. },
  518.  
  519. ["primaryclassic"] = {
  520. title = "primary colors",
  521. name = "primaryclassic",
  522. buttons = {
  523. {name = "Black",costs = 60, colorindex = 0, description = "", centre = 0, font = 0, scale = 0.4},
  524. {name = "Carbon Black",costs = 60, colorindex = 147, description = "", centre = 0, font = 0, scale = 0.4},
  525. {name = "Hraphite",costs = 60, colorindex = 1, description = "", centre = 0, font = 0, scale = 0.4},
  526. {name = "Anhracite Black",costs = 60, colorindex = 11, description = "", centre = 0, font = 0, scale = 0.4},
  527. {name = "Black Steel",costs = 60, colorindex = 2, description = "", centre = 0, font = 0, scale = 0.4},
  528. {name = "Dark Steel",costs = 60, colorindex = 3, description = "", centre = 0, font = 0, scale = 0.4},
  529. {name = "Silver",costs = 60, colorindex = 4, description = "", centre = 0, font = 0, scale = 0.4},
  530. {name = "Bluish Silver",costs = 60, colorindex = 5, description = "", centre = 0, font = 0, scale = 0.4},
  531. {name = "Rolled Steel",costs = 60, colorindex = 6, description = "", centre = 0, font = 0, scale = 0.4},
  532. {name = "Shadow Silver",costs = 60, colorindex = 7, description = "", centre = 0, font = 0, scale = 0.4},
  533. {name = "Stone Silver",costs = 60, colorindex = 8, description = "", centre = 0, font = 0, scale = 0.4},
  534. {name = "Midnight Silver",costs = 60, colorindex = 9, description = "", centre = 0, font = 0, scale = 0.4},
  535. {name = "Cast Iron Silver",costs = 60, colorindex = 10, description = "", centre = 0, font = 0, scale = 0.4},
  536. {name = "Red",costs = 60, colorindex = 27, description = "", centre = 0, font = 0, scale = 0.4},
  537. {name = "Torino Red",costs = 60, colorindex = 28, description = "", centre = 0, font = 0, scale = 0.4},
  538. {name = "Formula Red",costs = 60, colorindex = 29, description = "", centre = 0, font = 0, scale = 0.4},
  539. {name = "Lava Red",costs = 60, colorindex = 150, description = "", centre = 0, font = 0, scale = 0.4},
  540. {name = "Blaze Red",costs = 60, colorindex = 30, description = "", centre = 0, font = 0, scale = 0.4},
  541. {name = "Grace Red",costs = 60, colorindex = 31, description = "", centre = 0, font = 0, scale = 0.4},
  542. {name = "Garnet Red",costs = 60, colorindex = 32, description = "", centre = 0, font = 0, scale = 0.4},
  543. {name = "Sunset Red",costs = 60, colorindex = 33, description = "", centre = 0, font = 0, scale = 0.4},
  544. {name = "Cabernet Red",costs = 60, colorindex = 34, description = "", centre = 0, font = 0, scale = 0.4},
  545. {name = "Wine Red",costs = 60, colorindex = 143, description = "", centre = 0, font = 0, scale = 0.4},
  546. {name = "Candy Red",costs = 60, colorindex = 35, description = "", centre = 0, font = 0, scale = 0.4},
  547. {name = "Hot Pink",costs = 60, colorindex = 135, description = "", centre = 0, font = 0, scale = 0.4},
  548. {name = "Pfsiter Pink",costs = 60, colorindex = 137, description = "", centre = 0, font = 0, scale = 0.4},
  549. {name = "Salmon Pink",costs = 60, colorindex = 136, description = "", centre = 0, font = 0, scale = 0.4},
  550. {name = "Sunrise Orange",costs = 60, colorindex = 36, description = "", centre = 0, font = 0, scale = 0.4},
  551. {name = "Orange",costs = 60, colorindex = 38, description = "", centre = 0, font = 0, scale = 0.4},
  552. {name = "Bright Orange",costs = 60, colorindex = 138, description = "", centre = 0, font = 0, scale = 0.4},
  553. {name = "Gold",costs = 60, colorindex = 99, description = "", centre = 0, font = 0, scale = 0.4},
  554. {name = "Bronze",costs = 60, colorindex = 90, description = "", centre = 0, font = 0, scale = 0.4},
  555. {name = "Yellow",costs = 60, colorindex = 88, description = "", centre = 0, font = 0, scale = 0.4},
  556. {name = "Race Yellow",costs = 60, colorindex = 89, description = "", centre = 0, font = 0, scale = 0.4},
  557. {name = "Dew Yellow",costs = 60, colorindex = 91, description = "", centre = 0, font = 0, scale = 0.4},
  558. {name = "Dark Green",costs = 60, colorindex = 49, description = "", centre = 0, font = 0, scale = 0.4},
  559. {name = "Racing Green",costs = 60, colorindex = 50, description = "", centre = 0, font = 0, scale = 0.4},
  560. {name = "Sea Green",costs = 60, colorindex = 51, description = "", centre = 0, font = 0, scale = 0.4},
  561. {name = "Olive Green",costs = 60, colorindex = 52, description = "", centre = 0, font = 0, scale = 0.4},
  562. {name = "Bright Green",costs = 60, colorindex = 53, description = "", centre = 0, font = 0, scale = 0.4},
  563. {name = "Gasoline Green",costs = 60, colorindex = 54, description = "", centre = 0, font = 0, scale = 0.4},
  564. {name = "Lime Green",costs = 60, colorindex = 92, description = "", centre = 0, font = 0, scale = 0.4},
  565. {name = "Midnight Blue",costs = 60, colorindex = 141, description = "", centre = 0, font = 0, scale = 0.4},
  566. {name = "Galaxy Blue",costs = 60, colorindex = 61, description = "", centre = 0, font = 0, scale = 0.4},
  567. {name = "Dark Blue",costs = 60, colorindex = 62, description = "", centre = 0, font = 0, scale = 0.4},
  568. {name = "Saxon Blue",costs = 60, colorindex = 63, description = "", centre = 0, font = 0, scale = 0.4},
  569. {name = "Blue",costs = 60, colorindex = 64, description = "", centre = 0, font = 0, scale = 0.4},
  570. {name = "Mariner Blue",costs = 60, colorindex = 65, description = "", centre = 0, font = 0, scale = 0.4},
  571. {name = "Harbor Blue",costs = 60, colorindex = 66, description = "", centre = 0, font = 0, scale = 0.4},
  572. {name = "Diamond Blue",costs = 60, colorindex = 67, description = "", centre = 0, font = 0, scale = 0.4},
  573. {name = "Surf Blue",costs = 60, colorindex = 68, description = "", centre = 0, font = 0, scale = 0.4},
  574. {name = "Nautical Blue",costs = 60, colorindex = 69, description = "", centre = 0, font = 0, scale = 0.4},
  575. {name = "Racing Blue",costs = 60, colorindex = 73, description = "", centre = 0, font = 0, scale = 0.4},
  576. {name = "Ultra Blue",costs = 60, colorindex = 70, description = "", centre = 0, font = 0, scale = 0.4},
  577. {name = "Light Blue",costs = 60, colorindex = 74, description = "", centre = 0, font = 0, scale = 0.4},
  578. {name = "Chocolate Brown",costs = 60, colorindex = 96, description = "", centre = 0, font = 0, scale = 0.4},
  579. {name = "Bison Brown",costs = 60, colorindex = 101, description = "", centre = 0, font = 0, scale = 0.4},
  580. {name = "Creeen Brown",costs = 60, colorindex = 95, description = "", centre = 0, font = 0, scale = 0.4},
  581. {name = "Feltzer Brown",costs = 60, colorindex = 94, description = "", centre = 0, font = 0, scale = 0.4},
  582. {name = "Maple Brown",costs = 60, colorindex = 97, description = "", centre = 0, font = 0, scale = 0.4},
  583. {name = "Beechwood Brown",costs = 60, colorindex = 103, description = "", centre = 0, font = 0, scale = 0.4},
  584. {name = "Sienna Brown",costs = 60, colorindex = 104, description = "", centre = 0, font = 0, scale = 0.4},
  585. {name = "Saddle Brown",costs = 60, colorindex = 98, description = "", centre = 0, font = 0, scale = 0.4},
  586. {name = "Moss Brown",costs = 60, colorindex = 100, description = "", centre = 0, font = 0, scale = 0.4},
  587. {name = "Woodbeech Brown",costs = 60, colorindex = 102, description = "", centre = 0, font = 0, scale = 0.4},
  588. {name = "Straw Brown",costs = 60, colorindex = 99, description = "", centre = 0, font = 0, scale = 0.4},
  589. {name = "Sandy Brown",costs = 60, colorindex = 105, description = "", centre = 0, font = 0, scale = 0.4},
  590. {name = "Bleached Brown",costs = 60, colorindex = 106, description = "", centre = 0, font = 0, scale = 0.4},
  591. {name = "Schafter Purple",costs = 60, colorindex = 71, description = "", centre = 0, font = 0, scale = 0.4},
  592. {name = "Spinnaker Purple",costs = 60, colorindex = 72, description = "", centre = 0, font = 0, scale = 0.4},
  593. {name = "Midnight Purple",costs = 60, colorindex = 142, description = "", centre = 0, font = 0, scale = 0.4},
  594. {name = "Bright Purple",costs = 60, colorindex = 145, description = "", centre = 0, font = 0, scale = 0.4},
  595. {name = "Cream",costs = 60, colorindex = 107, description = "", centre = 0, font = 0, scale = 0.4},
  596. {name = "Ice White",costs = 60, colorindex = 111, description = "", centre = 0, font = 0, scale = 0.4},
  597. {name = "Frost White",costs = 60, colorindex = 112, description = "", centre = 0, font = 0, scale = 0.4}
  598. }
  599. },
  600. ["secondaryclassic"] = {
  601. title = "secondary colors",
  602. name = "secondaryclassic",
  603. buttons = {
  604. {name = "Black",costs = 60, colorindex = 0, description = "", centre = 0, font = 0, scale = 0.4},
  605. {name = "Carbon Black",costs = 60, colorindex = 147, description = "", centre = 0, font = 0, scale = 0.4},
  606. {name = "Hraphite",costs = 60, colorindex = 1, description = "", centre = 0, font = 0, scale = 0.4},
  607. {name = "Anhracite Black",costs = 60, colorindex = 11, description = "", centre = 0, font = 0, scale = 0.4},
  608. {name = "Black Steel",costs = 60, colorindex = 2, description = "", centre = 0, font = 0, scale = 0.4},
  609. {name = "Dark Steel",costs = 60, colorindex = 3, description = "", centre = 0, font = 0, scale = 0.4},
  610. {name = "Silver",costs = 60, colorindex = 4, description = "", centre = 0, font = 0, scale = 0.4},
  611. {name = "Bluish Silver",costs = 60, colorindex = 5, description = "", centre = 0, font = 0, scale = 0.4},
  612. {name = "Rolled Steel",costs = 60, colorindex = 6, description = "", centre = 0, font = 0, scale = 0.4},
  613. {name = "Shadow Silver",costs = 60, colorindex = 7, description = "", centre = 0, font = 0, scale = 0.4},
  614. {name = "Stone Silver",costs = 60, colorindex = 8, description = "", centre = 0, font = 0, scale = 0.4},
  615. {name = "Midnight Silver",costs = 60, colorindex = 9, description = "", centre = 0, font = 0, scale = 0.4},
  616. {name = "Cast Iron Silver",costs = 60, colorindex = 10, description = "", centre = 0, font = 0, scale = 0.4},
  617. {name = "Red",costs = 60, colorindex = 27, description = "", centre = 0, font = 0, scale = 0.4},
  618. {name = "Torino Red",costs = 60, colorindex = 28, description = "", centre = 0, font = 0, scale = 0.4},
  619. {name = "Formula Red",costs = 60, colorindex = 29, description = "", centre = 0, font = 0, scale = 0.4},
  620. {name = "Lava Red",costs = 60, colorindex = 150, description = "", centre = 0, font = 0, scale = 0.4},
  621. {name = "Blaze Red",costs = 60, colorindex = 30, description = "", centre = 0, font = 0, scale = 0.4},
  622. {name = "Grace Red",costs = 60, colorindex = 31, description = "", centre = 0, font = 0, scale = 0.4},
  623. {name = "Garnet Red",costs = 60, colorindex = 32, description = "", centre = 0, font = 0, scale = 0.4},
  624. {name = "Sunset Red",costs = 60, colorindex = 33, description = "", centre = 0, font = 0, scale = 0.4},
  625. {name = "Cabernet Red",costs = 60, colorindex = 34, description = "", centre = 0, font = 0, scale = 0.4},
  626. {name = "Wine Red",costs = 60, colorindex = 143, description = "", centre = 0, font = 0, scale = 0.4},
  627. {name = "Candy Red",costs = 60, colorindex = 35, description = "", centre = 0, font = 0, scale = 0.4},
  628. {name = "Hot Pink",costs = 60, colorindex = 135, description = "", centre = 0, font = 0, scale = 0.4},
  629. {name = "Pfsiter Pink",costs = 60, colorindex = 137, description = "", centre = 0, font = 0, scale = 0.4},
  630. {name = "Salmon Pink",costs = 60, colorindex = 136, description = "", centre = 0, font = 0, scale = 0.4},
  631. {name = "Sunrise Orange",costs = 60, colorindex = 36, description = "", centre = 0, font = 0, scale = 0.4},
  632. {name = "Orange",costs = 60, colorindex = 38, description = "", centre = 0, font = 0, scale = 0.4},
  633. {name = "Bright Orange",costs = 60, colorindex = 138, description = "", centre = 0, font = 0, scale = 0.4},
  634. {name = "Gold",costs = 60, colorindex = 99, description = "", centre = 0, font = 0, scale = 0.4},
  635. {name = "Bronze",costs = 60, colorindex = 90, description = "", centre = 0, font = 0, scale = 0.4},
  636. {name = "Yellow",costs = 60, colorindex = 88, description = "", centre = 0, font = 0, scale = 0.4},
  637. {name = "Race Yellow",costs = 60, colorindex = 89, description = "", centre = 0, font = 0, scale = 0.4},
  638. {name = "Dew Yellow",costs = 60, colorindex = 91, description = "", centre = 0, font = 0, scale = 0.4},
  639. {name = "Dark Green",costs = 60, colorindex = 49, description = "", centre = 0, font = 0, scale = 0.4},
  640. {name = "Racing Green",costs = 60, colorindex = 50, description = "", centre = 0, font = 0, scale = 0.4},
  641. {name = "Sea Green",costs = 60, colorindex = 51, description = "", centre = 0, font = 0, scale = 0.4},
  642. {name = "Olive Green",costs = 60, colorindex = 52, description = "", centre = 0, font = 0, scale = 0.4},
  643. {name = "Bright Green",costs = 60, colorindex = 53, description = "", centre = 0, font = 0, scale = 0.4},
  644. {name = "Gasoline Green",costs = 60, colorindex = 54, description = "", centre = 0, font = 0, scale = 0.4},
  645. {name = "Lime Green",costs = 60, colorindex = 92, description = "", centre = 0, font = 0, scale = 0.4},
  646. {name = "Midnight Blue",costs = 60, colorindex = 141, description = "", centre = 0, font = 0, scale = 0.4},
  647. {name = "Galaxy Blue",costs = 60, colorindex = 61, description = "", centre = 0, font = 0, scale = 0.4},
  648. {name = "Dark Blue",costs = 60, colorindex = 62, description = "", centre = 0, font = 0, scale = 0.4},
  649. {name = "Saxon Blue",costs = 60, colorindex = 63, description = "", centre = 0, font = 0, scale = 0.4},
  650. {name = "Blue",costs = 60, colorindex = 64, description = "", centre = 0, font = 0, scale = 0.4},
  651. {name = "Mariner Blue",costs = 60, colorindex = 65, description = "", centre = 0, font = 0, scale = 0.4},
  652. {name = "Harbor Blue",costs = 60, colorindex = 66, description = "", centre = 0, font = 0, scale = 0.4},
  653. {name = "Diamond Blue",costs = 60, colorindex = 67, description = "", centre = 0, font = 0, scale = 0.4},
  654. {name = "Surf Blue",costs = 60, colorindex = 68, description = "", centre = 0, font = 0, scale = 0.4},
  655. {name = "Nautical Blue",costs = 60, colorindex = 69, description = "", centre = 0, font = 0, scale = 0.4},
  656. {name = "Racing Blue",costs = 60, colorindex = 73, description = "", centre = 0, font = 0, scale = 0.4},
  657. {name = "Ultra Blue",costs = 60, colorindex = 70, description = "", centre = 0, font = 0, scale = 0.4},
  658. {name = "Light Blue",costs = 60, colorindex = 74, description = "", centre = 0, font = 0, scale = 0.4},
  659. {name = "Chocolate Brown",costs = 60, colorindex = 96, description = "", centre = 0, font = 0, scale = 0.4},
  660. {name = "Bison Brown",costs = 60, colorindex = 101, description = "", centre = 0, font = 0, scale = 0.4},
  661. {name = "Creeen Brown",costs = 60, colorindex = 95, description = "", centre = 0, font = 0, scale = 0.4},
  662. {name = "Feltzer Brown",costs = 60, colorindex = 94, description = "", centre = 0, font = 0, scale = 0.4},
  663. {name = "Maple Brown",costs = 60, colorindex = 97, description = "", centre = 0, font = 0, scale = 0.4},
  664. {name = "Beechwood Brown",costs = 60, colorindex = 103, description = "", centre = 0, font = 0, scale = 0.4},
  665. {name = "Sienna Brown",costs = 60, colorindex = 104, description = "", centre = 0, font = 0, scale = 0.4},
  666. {name = "Saddle Brown",costs = 60, colorindex = 98, description = "", centre = 0, font = 0, scale = 0.4},
  667. {name = "Moss Brown",costs = 60, colorindex = 100, description = "", centre = 0, font = 0, scale = 0.4},
  668. {name = "Woodbeech Brown",costs = 60, colorindex = 102, description = "", centre = 0, font = 0, scale = 0.4},
  669. {name = "Straw Brown",costs = 60, colorindex = 99, description = "", centre = 0, font = 0, scale = 0.4},
  670. {name = "Sandy Brown",costs = 60, colorindex = 105, description = "", centre = 0, font = 0, scale = 0.4},
  671. {name = "Bleached Brown",costs = 60, colorindex = 106, description = "", centre = 0, font = 0, scale = 0.4},
  672. {name = "Schafter Purple",costs = 60, colorindex = 71, description = "", centre = 0, font = 0, scale = 0.4},
  673. {name = "Spinnaker Purple",costs = 60, colorindex = 72, description = "", centre = 0, font = 0, scale = 0.4},
  674. {name = "Midnight Purple",costs = 60, colorindex = 142, description = "", centre = 0, font = 0, scale = 0.4},
  675. {name = "Bright Purple",costs = 60, colorindex = 145, description = "", centre = 0, font = 0, scale = 0.4},
  676. {name = "Cream",costs = 60, colorindex = 107, description = "", centre = 0, font = 0, scale = 0.4},
  677. {name = "Ice White",costs = 60, colorindex = 111, description = "", centre = 0, font = 0, scale = 0.4},
  678. {name = "Frost White",costs = 60, colorindex = 112, description = "", centre = 0, font = 0, scale = 0.4}
  679. }
  680. },["suspension"] = {
  681. title = "suspensions",
  682. name = "suspensions",
  683. buttons = {
  684. {name = "Stock Suspension",mod = -1,modtype =15, costs = 30, description = "", centre = 0, font = 0, scale = 0.4},
  685. {name = "Lowered Suspension",mod = false,modtype =15, costs = 125, description = "", centre = 0, font = 0, scale = 0.4},
  686. {name = "Street Suspension",mod = 1,modtype =15, costs = 145, description = "", centre = 0, font = 0, scale = 0.4},
  687. {name = "Sport Suspension",mod = 2,modtype =15, costs = 160, description = "", centre = 0, font = 0, scale = 0.4},
  688. {name = "Competition Suspension",mod = 3,modtype =15, costs = 180, description = "", centre = 0, font = 0, scale = 0.4}
  689. }
  690. },
  691. ["transmission"] = {
  692. title = "transmissions",
  693. name = "transmission",
  694. buttons = {
  695. {name = "Stock Transmission",mod = -1,modtype =13, costs = 50, description = "", centre = 0, font = 0, scale = 0.4},
  696. {name = "Street Transmission",mod = false,modtype =13, costs = 120, description = "", centre = 0, font = 0, scale = 0.4},
  697. {name = "Sports Transmission",mod = 1,modtype =13, costs = 180, description = "", centre = 0, font = 0, scale = 0.4},
  698. {name = "Race Transmission",mod = 2,modtype =13, costs = 210, description = "", centre = 0, font = 0, scale = 0.4}
  699. }
  700. }
  701. ,
  702. ["turbo"] = {
  703. title = "turbo",
  704. name = "turbo",
  705. buttons = {
  706. {name = "None",mod = false,modtype =18, costs = 300, description = "", centre = 0, font = 0, scale = 0.4},
  707. {name = "Turbo Tuning",mod = true,modtype =18, costs = 1100, description = "", centre = 0, font = 0, scale = 0.4}
  708. }
  709. },
  710. ["wheels"] = {
  711. title = "wheels",
  712. name = "wheels",
  713. buttons = {
  714. {name = "Wheel Type", description = "", centre = 0, font = 0, scale = 0.4},
  715. {name = "Wheel Color", description = "", centre = 0, font = 0, scale = 0.4},
  716. {name = "Wheel Accessories", description = "", centre = 0, font = 0, scale = 0.4}
  717. }
  718. },
  719. ["wheeltype"] = {
  720. title = "wheel types",
  721. name = "wheeltype",
  722. buttons = {
  723.  
  724. {name = "Sport", wtype = false, description = "", centre = 0, font = 0, scale = 0.4},
  725. {name = "Muscle", wtype = 1, description = "", centre = 0, font = 0, scale = 0.4},
  726. {name = "Lowrider", wtype = 2, description = "", centre = 0, font = 0, scale = 0.4},
  727. {name = "Suv", wtype = 3, description = "", centre = 0, font = 0, scale = 0.4},
  728. {name = "Offroad", wtype = 4, description = "", centre = 0, font = 0, scale = 0.4},
  729. {name = "Tuner", wtype = 5, description = "", centre = 0, font = 0, scale = 0.4},
  730. {name = "Highend", wtype = 7, description = "", centre = 0, font = 0, scale = 0.4},
  731. }
  732. },
  733. ["sport"] = {
  734. title = "sport",
  735. name = "sport",
  736. buttons = {
  737. {name = "Stock", wtype = false, modtype = 23, mod = -1, costs = 40, description = "", centre = 0, font = 0, scale = 0.4},
  738. {name = "Inferno", wtype = false, modtype = 23, mod = false, costs = 120, description = "", centre = 0, font = 0, scale = 0.4},
  739. {name = "Deepfive", wtype = false, modtype = 23, mod = 1, costs = 120, description = "", centre = 0, font = 0, scale = 0.4},
  740. {name = "Lozspeed", wtype = false, modtype = 23, mod = 2, costs = 120, description = "", centre = 0, font = 0, scale = 0.4},
  741. {name = "Diamondcut", wtype = false, modtype = 23, mod = 3, costs = 120, description = "", centre = 0, font = 0, scale = 0.4},
  742. {name = "Chrono", wtype = false, modtype = 23, mod = 4, costs = 120, description = "", centre = 0, font = 0, scale = 0.4},
  743. {name = "Feroccirr", wtype = false, modtype = 23, mod = 5, costs = 120, description = "", centre = 0, font = 0, scale = 0.4},
  744. {name = "Fiftynine", wtype = false, modtype = 23, mod = 6, costs = 120, description = "", centre = 0, font = 0, scale = 0.4},
  745. {name = "Mercie", wtype = false, modtype = 23, mod = 7, costs = 120, description = "", centre = 0, font = 0, scale = 0.4},
  746. {name = "Syntheticz", wtype = false, modtype = 23, mod = 8, costs = 120, description = "", centre = 0, font = 0, scale = 0.4},
  747. {name = "Organictyped", wtype = false, modtype = 23, mod = 9, costs = 120, description = "", centre = 0, font = 0, scale = 0.4},
  748. {name = "Endov1", wtype = false, modtype = 23, mod = 10, costs = 120, description = "", centre = 0, font = 0, scale = 0.4},
  749. {name = "Duper7", wtype = false, modtype = 23, mod = 11, costs = 120, description = "", centre = 0, font = 0, scale = 0.4},
  750. {name = "Uzer", wtype = false, modtype = 23, mod = 12, costs = 120, description = "", centre = 0, font = 0, scale = 0.4},
  751. {name = "Groundride", wtype = false, modtype = 23, mod = 13, costs = 120, description = "", centre = 0, font = 0, scale = 0.4},
  752. {name = "Spacer", wtype = false, modtype = 23, mod = 14, costs = 120, description = "", centre = 0, font = 0, scale = 0.4},
  753. {name = "Venum", wtype = false, modtype = 23, mod = 15, costs = 120, description = "", centre = 0, font = 0, scale = 0.4},
  754. {name = "Cosmo", wtype = false, modtype = 23, mod = 16, costs = 120, description = "", centre = 0, font = 0, scale = 0.4},
  755. {name = "Dashvip", wtype = false, modtype = 23, mod = 17, costs = 120, description = "", centre = 0, font = 0, scale = 0.4},
  756. {name = "Icekid", wtype = false, modtype = 23, mod = 18, costs = 120, description = "", centre = 0, font = 0, scale = 0.4},
  757. {name = "Ruffeld", wtype = false, modtype = 23, mod = 19, costs = 120, description = "", centre = 0, font = 0, scale = 0.4},
  758. {name = "Wangenmaster", wtype = false, modtype = 23, mod = 20, costs = 120, description = "", centre = 0, font = 0, scale = 0.4},
  759. {name = "Superfive", wtype = false, modtype = 23, mod = 21, costs = 120, description = "", centre = 0, font = 0, scale = 0.4},
  760. {name = "Endov2", wtype = false, modtype = 23, mod = 22, costs = 120, description = "", centre = 0, font = 0, scale = 0.4},
  761. {name = "Slitsix", wtype = false, modtype = 23, mod = 23, costs = 120, description = "", centre = 0, font = 0, scale = 0.4},
  762. }
  763. },
  764. ["suv"] = {
  765. title = "suv",
  766. name = "suv",
  767. buttons = {
  768. {name = "Stock", wtype = 3, modtype = 23, mod = -1, costs = 20, description = "", centre = 0, font = 0, scale = 0.4},
  769. {name = "Vip", wtype = 3, modtype = 23, mod = false, costs = 60, description = "", centre = 0, font = 0, scale = 0.4},
  770. {name = "Benefactor", wtype = 3, modtype = 23, mod = 1, costs = 60, description = "", centre = 0, font = 0, scale = 0.4},
  771. {name = "Cosmo", wtype = 3, modtype = 23, mod = 2, costs = 60, description = "", centre = 0, font = 0, scale = 0.4},
  772. {name = "Bippu", wtype = 3, modtype = 23, mod = 3, costs = 60, description = "", centre = 0, font = 0, scale = 0.4},
  773. {name = "Royalsix", wtype = 3, modtype = 23, mod = 4, costs = 60, description = "", centre = 0, font = 0, scale = 0.4},
  774. {name = "Fagorme", wtype = 3, modtype = 23, mod = 5, costs = 60, description = "", centre = 0, font = 0, scale = 0.4},
  775. {name = "Deluxe", wtype = 3, modtype = 23, mod = 6, costs = 60, description = "", centre = 0, font = 0, scale = 0.4},
  776. {name = "Icedout", wtype = 3, modtype = 23, mod = 7, costs = 60, description = "", centre = 0, font = 0, scale = 0.4},
  777. {name = "Cognscenti", wtype = 3, modtype = 23, mod = 8, costs = 60, description = "", centre = 0, font = 0, scale = 0.4},
  778. {name = "Lozspeedten", wtype = 3, modtype = 23, mod = 9, costs = 60, description = "", centre = 0, font = 0, scale = 0.4},
  779. {name = "Supernova", wtype = 3, modtype = 23, mod = 10, costs = 60, description = "", centre = 0, font = 0, scale = 0.4},
  780. {name = "Obeyrs", wtype = 3, modtype = 23, mod = 11, costs = 60, description = "", centre = 0, font = 0, scale = 0.4},
  781. {name = "Lozspeedballer", wtype = 3, modtype = 23, mod = 12, costs = 60, description = "", centre = 0, font = 0, scale = 0.4},
  782. {name = "Extra vaganzo", wtype = 3, modtype = 23, mod = 13, costs = 60, description = "", centre = 0, font = 0, scale = 0.4},
  783. {name = "Splitsix", wtype = 3, modtype = 23, mod = 14, costs = 60, description = "", centre = 0, font = 0, scale = 0.4},
  784. {name = "Empowered", wtype = 3, modtype = 23, mod = 15, costs = 60, description = "", centre = 0, font = 0, scale = 0.4},
  785. {name = "Sunrise", wtype = 3, modtype = 23, mod = 16, costs = 60, description = "", centre = 0, font = 0, scale = 0.4},
  786. {name = "Dashvip", wtype = 3, modtype = 23, mod = 17, costs = 60, description = "", centre = 0, font = 0, scale = 0.4},
  787. {name = "Cutter", wtype = 3, modtype = 23, mod = 18, costs = 60, description = "", centre = 0, font = 0, scale = 0.4},
  788. }
  789. },
  790. ["offroad"] = {
  791. title = "offroad",
  792. name = "offroad",
  793. buttons = {
  794. {name = "Stock", wtype = 4, modtype = 23, mod = -1, costs = 30, description = "", centre = 0, font = 0, scale = 0.4},
  795. {name = "Raider", wtype = 4, modtype = 23, mod = false, costs = 80, description = "", centre = 0, font = 0, scale = 0.4},
  796. {name = "Mudslinger", modtype = 23, mod = 1, costs = 80, description = "", centre = 0, font = 0, scale = 0.4},
  797. {name = "Nevis", wtype = 4, modtype = 23, mod = 2, costs = 80, description = "", centre = 0, font = 0, scale = 0.4},
  798. {name = "Cairngorm", wtype = 4, modtype = 23, mod = 3, costs = 80, description = "", centre = 0, font = 0, scale = 0.4},
  799. {name = "Amazon", wtype = 4, modtype = 23, mod = 4, costs = 80, description = "", centre = 0, font = 0, scale = 0.4},
  800. {name = "Challenger", wtype = 4, modtype = 23, mod = 5, costs = 80, description = "", centre = 0, font = 0, scale = 0.4},
  801. {name = "Dunebasher", wtype = 4, modtype = 23, mod = 6, costs = 80, description = "", centre = 0, font = 0, scale = 0.4},
  802. {name = "Fivestar", wtype = 4, modtype = 23, mod = 7, costs = 80, description = "", centre = 0, font = 0, scale = 0.4},
  803. {name = "Rockcrawler", wtype = 4, modtype = 23, mod = 8, costs = 80, description = "", centre = 0, font = 0, scale = 0.4},
  804. {name = "Milspecsteelie", wtype = 4, modtype = 23, mod = 9, costs = 80, description = "", centre = 0, font = 0, scale = 0.4},
  805. }
  806. },
  807. ["tuner"] = {
  808. title = "tuner",
  809. name = "tuner",
  810. buttons = {
  811. {name = "Stock", wtype = 5, modtype = 23, mod = -1, costs = 35, description = "", centre = 0, font = 0, scale = 0.4},
  812. {name = "Cosmo", wtype = 5, modtype = 23, mod = false, costs = 110, description = "", centre = 0, font = 0, scale = 0.4},
  813. {name = "Supermesh", wtype = 5, modtype = 23, mod = 1, costs = 110, description = "", centre = 0, font = 0, scale = 0.4},
  814. {name = "Outsider", wtype = 5, modtype = 23, mod = 2, costs = 110, description = "", centre = 0, font = 0, scale = 0.4},
  815. {name = "Rollas", wtype = 5, modtype = 23, mod = 3, costs = 110, description = "", centre = 0, font = 0, scale = 0.4},
  816. {name = "Driffmeister", wtype = 5, modtype = 23, mod = 4, costs = 110, description = "", centre = 0, font = 0, scale = 0.4},
  817. {name = "Slicer", wtype = 5, modtype = 23, mod = 5, costs = 110, description = "", centre = 0, font = 0, scale = 0.4},
  818. {name = "Elquatro", wtype = 5, modtype = 23, mod = 6, costs = 110, description = "", centre = 0, font = 0, scale = 0.4},
  819. {name = "Dubbed", wtype = 5, modtype = 23, mod = 7, costs = 110, description = "", centre = 0, font = 0, scale = 0.4},
  820. {name = "Fivestar", wtype = 5, modtype = 23, mod = 8, costs = 110, description = "", centre = 0, font = 0, scale = 0.4},
  821. {name = "Slideways", wtype = 5, modtype = 23, mod = 9, costs = 110, description = "", centre = 0, font = 0, scale = 0.4},
  822. {name = "Apex", wtype = 5, modtype = 23, mod = 10, costs = 110, description = "", centre = 0, font = 0, scale = 0.4},
  823. {name = "Stancedeg", wtype = 5, modtype = 23, mod = 11, costs = 110, description = "", centre = 0, font = 0, scale = 0.4},
  824. {name = "Countersteer", wtype = 5, modtype = 23, mod = 12, costs = 110, description = "", centre = 0, font = 0, scale = 0.4},
  825. {name = "Endov1", wtype = 5, modtype = 23, mod = 13, costs = 110, description = "", centre = 0, font = 0, scale = 0.4},
  826. {name = "Endov2dish", wtype = 5, modtype = 23, mod = 14, costs = 110, description = "", centre = 0, font = 0, scale = 0.4},
  827. {name = "Guppez", wtype = 5, modtype = 23, mod = 15, costs = 110, description = "", centre = 0, font = 0, scale = 0.4},
  828. {name = "Chokadori", wtype = 5, modtype = 23, mod = 16, costs = 110, description = "", centre = 0, font = 0, scale = 0.4},
  829. {name = "Chicane", wtype = 5, modtype = 23, mod = 17, costs = 110, description = "", centre = 0, font = 0, scale = 0.4},
  830. {name = "Saisoku", wtype = 5, modtype = 23, mod = 18, costs = 110, description = "", centre = 0, font = 0, scale = 0.4},
  831. {name = "Dishedeight", wtype = 5, modtype = 23, mod = 19, costs = 110, description = "", centre = 0, font = 0, scale = 0.4},
  832. {name = "Fujiwara", wtype = 5, modtype = 23, mod = 20, costs = 110, description = "", centre = 0, font = 0, scale = 0.4},
  833. {name = "Zokusha", wtype = 5, modtype = 23, mod = 21, costs = 110, description = "", centre = 0, font = 0, scale = 0.4},
  834. {name = "Battlevill", wtype = 5, modtype = 23, mod = 22, costs = 110, description = "", centre = 0, font = 0, scale = 0.4},
  835. {name = "Rallymaster", wtype = 5, modtype = 23, mod = 23, costs = 110, description = "", centre = 0, font = 0, scale = 0.4},
  836. }
  837. },
  838. ["highend"] = {
  839. title = "highend",
  840. name = "highend",
  841. buttons = {
  842. {name = "Stock", wtype = 7, modtype = 23, mod = -1, costs = 50, description = "", centre = 0, font = 0, scale = 0.4},
  843. {name = "Shadow", wtype = 7, modtype = 23, mod = false, costs = 130, description = "", centre = 0, font = 0, scale = 0.4},
  844. {name = "Hyper", wtype = 7, modtype = 23, mod = 1, costs = 130, description = "", centre = 0, font = 0, scale = 0.4},
  845. {name = "Blade", wtype = 7, modtype = 23, mod = 2, costs = 130, description = "", centre = 0, font = 0, scale = 0.4},
  846. {name = "Diamond", wtype = 7, modtype = 23, mod = 3, costs = 130, description = "", centre = 0, font = 0, scale = 0.4},
  847. {name = "Supagee", wtype = 7, modtype = 23, mod = 4, costs = 130, description = "", centre = 0, font = 0, scale = 0.4},
  848. {name = "Chromaticz", wtype = 7, modtype = 23, mod = 5, costs = 130, description = "", centre = 0, font = 0, scale = 0.4},
  849. {name = "Merciechlip", wtype = 7, modtype = 23, mod = 6, costs = 130, description = "", centre = 0, font = 0, scale = 0.4},
  850. {name = "Obeyrs", wtype = 7, modtype = 23, mod = 7, costs = 130, description = "", centre = 0, font = 0, scale = 0.4},
  851. {name = "Gtchrome", wtype = 7, modtype = 23, mod = 8, costs = 130, description = "", centre = 0, font = 0, scale = 0.4},
  852. {name = "Cheetahr", wtype = 7, modtype = 23, mod = 9, costs = 130, description = "", centre = 0, font = 0, scale = 0.4},
  853. {name = "Solar", wtype = 7, modtype = 23, mod = 10, costs = 130, description = "", centre = 0, font = 0, scale = 0.4},
  854. {name = "Splitten", wtype = 7, modtype = 23, mod = 11, costs = 130, description = "", centre = 0, font = 0, scale = 0.4},
  855. {name = "Dashvip", wtype = 7, modtype = 23, mod = 12, costs = 130, description = "", centre = 0, font = 0, scale = 0.4},
  856. {name = "Lozspeedten", wtype = 7, modtype = 23, mod = 13, costs = 130, description = "", centre = 0, font = 0, scale = 0.4},
  857. {name = "Carboninferno", wtype = 7, modtype = 23, mod = 14, costs = 130, description = "", centre = 0, font = 0, scale = 0.4},
  858. {name = "Carbonshadow", wtype = 7, modtype = 23, mod = 15, costs = 130, description = "", centre = 0, font = 0, scale = 0.4},
  859. {name = "Carbonz", wtype = 7, modtype = 23, mod = 16, costs = 130, description = "", centre = 0, font = 0, scale = 0.4},
  860. {name = "Carbonsolar", wtype = 7, modtype = 23, mod = 17, costs = 130, description = "", centre = 0, font = 0, scale = 0.4},
  861. {name = "Carboncheetahr", wtype = 7, modtype = 23, mod = 18, costs = 130, description = "", centre = 0, font = 0, scale = 0.4},
  862. {name = "Carbonsracer", wtype = 7, modtype = 23, mod = 19, costs = 130, description = "", centre = 0, font = 0, scale = 0.4},
  863. }
  864. },
  865. ["lowrider"] = {
  866. title = "lowrider",
  867. name = "lowrider",
  868. buttons = {
  869. {name = "Stock", wtype = 2, modtype = 23, mod = -1, costs = 30, description = "", centre = 0, font = 0, scale = 0.4},
  870. {name = "Flare", wtype = 2, modtype = 23, mod = false, costs = 90, description = "", centre = 0, font = 0, scale = 0.4},
  871. {name = "Wired", wtype = 2, modtype = 23, mod = 1, costs = 90, description = "", centre = 0, font = 0, scale = 0.4},
  872. {name = "Triplegolds", wtype = 2, modtype = 23, mod = 2, costs = 90, description = "", centre = 0, font = 0, scale = 0.4},
  873. {name = "Bigworm", wtype = 2, modtype = 23, mod = 3, costs = 90, description = "", centre = 0, font = 0, scale = 0.4},
  874. {name = "Sevenfives", wtype = 2, modtype = 23, mod = 4, costs = 90, description = "", centre = 0, font = 0, scale = 0.4},
  875. {name = "Splitsix", wtype = 2, modtype = 23, mod = 5, costs = 90, description = "", centre = 0, font = 0, scale = 0.4},
  876. {name = "Freshmesh", wtype = 2, modtype = 23, mod = 6, costs = 90, description = "", centre = 0, font = 0, scale = 0.4},
  877. {name = "Leadsled", wtype = 2, modtype = 23, mod = 7, costs = 90, description = "", centre = 0, font = 0, scale = 0.4},
  878. {name = "Turbine", wtype = 2, modtype = 23, mod = 8, costs = 90, description = "", centre = 0, font = 0, scale = 0.4},
  879. {name = "Superfin", wtype = 2, modtype = 23, mod = 9, costs = 90, description = "", centre = 0, font = 0, scale = 0.4},
  880. {name = "Classicrod", wtype = 2, modtype = 23, mod = 10, costs = 90, description = "", centre = 0, font = 0, scale = 0.4},
  881. {name = "Dollar", wtype = 2, modtype = 23, mod = 11, costs = 90, description = "", centre = 0, font = 0, scale = 0.4},
  882. {name = "Dukes", wtype = 2, modtype = 23, mod = 12, costs = 90, description = "", centre = 0, font = 0, scale = 0.4},
  883. {name = "Lowfive", wtype = 2, modtype = 23, mod = 13, costs = 90, description = "", centre = 0, font = 0, scale = 0.4},
  884. {name = "Gooch", wtype = 2, modtype = 23, mod = 14, costs = 90, description = "", centre = 0, font = 0, scale = 0.4},
  885. }
  886. },
  887. ["muscle"] = {
  888. title = "muscle",
  889. name = "muscle",
  890. buttons = {
  891. {name = "Stock", wtype = 1, modtype = 23, mod = -1, costs = 40, description = "", centre = 0, font = 0, scale = 0.4},
  892. {name = "Classicfive", wtype = 1, modtype = 23, mod = false, costs = 100, description = "", centre = 0, font = 0, scale = 0.4},
  893. {name = "Dukes", wtype = 1, modtype = 23, mod = 1, costs = 100, description = "", centre = 0, font = 0, scale = 0.4},
  894. {name = "Musclefreak", wtype = 1, modtype = 23, mod = 2, costs = 100, description = "", centre = 0, font = 0, scale = 0.4},
  895. {name = "Kracka", wtype = 1, modtype = 23, mod = 3, costs = 100, description = "", centre = 0, font = 0, scale = 0.4},
  896. {name = "Azrea", wtype = 1, modtype = 23, mod = 4, costs = 100, description = "", centre = 0, font = 0, scale = 0.4},
  897. {name = "Mecha", wtype = 1, modtype = 23, mod = 5, costs = 100, description = "", centre = 0, font = 0, scale = 0.4},
  898. {name = "Blacktop", wtype = 1, modtype = 23, mod = 6, costs = 100, description = "", centre = 0, font = 0, scale = 0.4},
  899. {name = "Dragspl", wtype = 1, modtype = 23, mod = 7, costs = 100, description = "", centre = 0, font = 0, scale = 0.4},
  900. {name = "Revolver", wtype = 1, modtype = 23, mod = 8, costs = 100, description = "", centre = 0, font = 0, scale = 0.4},
  901. {name = "Classicrod", wtype = 1, modtype = 23, mod = 9, costs = 100, description = "", centre = 0, font = 0, scale = 0.4},
  902. {name = "Spooner", wtype = 1, modtype = 23, mod = 10, costs = 100, description = "", centre = 0, font = 0, scale = 0.4},
  903. {name = "Fivestar", wtype = 1, modtype = 23, mod = 11, costs = 100, description = "", centre = 0, font = 0, scale = 0.4},
  904. {name = "Oldschool", wtype = 1, modtype = 23, mod = 12, costs = 100, description = "", centre = 0, font = 0, scale = 0.4},
  905. {name = "Eljefe", wtype = 1, modtype = 23, mod = 13, costs = 100, description = "", centre = 0, font = 0, scale = 0.4},
  906. {name = "Dodman", wtype = 1, modtype = 23, mod = 14, costs = 100, description = "", centre = 0, font = 0, scale = 0.4},
  907. {name = "Sixgun", wtype = 1, modtype = 23, mod = 15, costs = 100, description = "", centre = 0, font = 0, scale = 0.4},
  908. {name = "Mercenary", wtype = 1, modtype = 23, mod = 16, costs = 100, description = "", centre = 0, font = 0, scale = 0.4},
  909. }
  910. },
  911. ["frontwheel"] = {
  912. title = "front wheel",
  913. name = "frontwheel",
  914. buttons = {
  915. {name = "Stock", wtype = 6, modtype = 23, mod = -1, costs = 15, description = "", centre = 0, font = 0, scale = 0.4},
  916. {name = "Speedway", wtype = 6, modtype = 23, mod = false, costs = 40, description = "", centre = 0, font = 0, scale = 0.4},
  917. {name = "Streetspecial", wtype = 6, modtype = 23, mod = 1, costs = 40, description = "", centre = 0, font = 0, scale = 0.4},
  918. {name = "Racer", wtype = 6, modtype = 23, mod = 2, costs = 40, description = "", centre = 0, font = 0, scale = 0.4},
  919. {name = "Trackstar", wtype = 6, modtype = 23, mod = 3, costs = 40, description = "", centre = 0, font = 0, scale = 0.4},
  920. {name = "Overlord", wtype = 6, modtype = 23, mod = 4, costs = 40, description = "", centre = 0, font = 0, scale = 0.4},
  921. {name = "Trident", wtype = 6, modtype = 23, mod = 5, costs = 40, description = "", centre = 0, font = 0, scale = 0.4},
  922. {name = "Triplethreat", wtype = 6, modtype = 23, mod = 6, costs = 40, description = "", centre = 0, font = 0, scale = 0.4},
  923. {name = "Stilleto", wtype = 6, modtype = 23, mod = 7, costs = 40, description = "", centre = 0, font = 0, scale = 0.4},
  924. {name = "Wires", wtype = 6, modtype = 23, mod = 8, costs = 40, description = "", centre = 0, font = 0, scale = 0.4},
  925. {name = "Bobber", wtype = 6, modtype = 23, mod = 9, costs = 40, description = "", centre = 0, font = 0, scale = 0.4},
  926. {name = "Solidus", wtype = 6, modtype = 23, mod = 10, costs = 40, description = "", centre = 0, font = 0, scale = 0.4},
  927. {name = "Iceshield", wtype = 6, modtype = 23, mod = 11, costs = 40, description = "", centre = 0, font = 0, scale = 0.4},
  928. {name = "Loops", wtype = 6, modtype = 23, mod = 12, costs = 40, description = "", centre = 0, font = 0, scale = 0.4},
  929. }
  930. },
  931. ["backwheel"] = {
  932. title = "back wheel",
  933. name = "backwheel",
  934. buttons = {
  935. {name = "Stock", wtype = 6, modtype = 24, mod = -1, costs = 15, description = "", centre = 0, font = 0, scale = 0.4},
  936. {name = "Speedway", wtype = 6, modtype = 24, mod = false, costs = 40, description = "", centre = 0, font = 0, scale = 0.4},
  937. {name = "Streetspecial", wtype = 6, modtype = 24, mod = 1, costs = 40, description = "", centre = 0, font = 0, scale = 0.4},
  938. {name = "Racer", wtype = 6, modtype = 24, mod = 2, costs = 40, description = "", centre = 0, font = 0, scale = 0.4},
  939. {name = "Trackstar", wtype = 6, modtype = 24, mod = 3, costs = 40, description = "", centre = 0, font = 0, scale = 0.4},
  940. {name = "Overlord", wtype = 6, modtype = 24, mod = 4, costs = 40, description = "", centre = 0, font = 0, scale = 0.4},
  941. {name = "Trident", wtype = 6, modtype = 24, mod = 5, costs = 40, description = "", centre = 0, font = 0, scale = 0.4},
  942. {name = "Triplethreat", wtype = 6, modtype = 24, mod = 6, costs = 40, description = "", centre = 0, font = 0, scale = 0.4},
  943. {name = "Stilleto", wtype = 6, modtype = 24, mod = 7, costs = 40, description = "", centre = 0, font = 0, scale = 0.4},
  944. {name = "Wires", wtype = 6, modtype = 24, mod = 8, costs = 40, description = "", centre = 0, font = 0, scale = 0.4},
  945. {name = "Bobber", wtype = 6, modtype = 24, mod = 9, costs = 40, description = "", centre = 0, font = 0, scale = 0.4},
  946. {name = "Solidus", wtype = 6, modtype = 24, mod = 10, costs = 40, description = "", centre = 0, font = 0, scale = 0.4},
  947. {name = "Iceshield", wtype = 6, modtype = 24, mod = 11, costs = 40, description = "", centre = 0, font = 0, scale = 0.4},
  948. {name = "Loops", wtype = 6, modtype = 24, mod = 12, costs = 40, description = "", centre = 0, font = 0, scale = 0.4},
  949. }
  950. },["lights"] = {
  951. title = "lights",
  952. name = "lights",
  953. buttons = {
  954. {name = "Headlights", description = "", centre = 0, font = 0, scale = 0.4},
  955. {name = "Neon Kits", description = "", centre = 0, font = 0, scale = 0.4}
  956. }
  957. },
  958. ["neonkits"] = {
  959. title = "neonkits",
  960. name = "neonkits",
  961. buttons = {
  962. {name = "Neon Layout", description = "", centre = 0, font = 0, scale = 0.4},
  963. {name = "Neon Color", description = "", centre = 0, font = 0, scale = 0.4}
  964. }
  965. },
  966. ["neonlayout"] = {
  967. title = "neon layout",
  968. name = "neonlayout",
  969. buttons = {
  970. {name = "None",costs = 10, description = "", centre = 0, font = 0, scale = 0.4},
  971. {name = "Front,Back and Sides", costs = 200, description = "", centre = 0, font = 0, scale = 0.4}
  972. }
  973. },
  974. ["neoncolor"] = {
  975. title = "neon color",
  976. name = "neoncolor",
  977. buttons = {
  978. {name = "White", color = {255,255,255}, costs = 50, description = "", centre = 0, font = 0, scale = 0.4},
  979. {name = "Blue", color = {0,0,255}, costs = 100, description = "", centre = 0, font = 0, scale = 0.4},
  980. {name = "Electric Blue", color = {0,150,255}, costs = 100, description = "", centre = 0, font = 0, scale = 0.4},
  981. {name = "Mint Green", color = {50,255,155}, costs = 100, description = "", centre = 0, font = 0, scale = 0.4},
  982. {name = "Lime Green", color = {0,255,0}, costs = 100, description = "", centre = 0, font = 0, scale = 0.4},
  983. {name = "Yellow", color = {255,255,0}, costs = 100, description = "", centre = 0, font = 0, scale = 0.4},
  984. {name = "Golden Shower", color = {204,204,0}, costs = 100, description = "", centre = 0, font = 0, scale = 0.4},
  985. {name = "Orange", color = {255,128,0}, costs = 100, description = "", centre = 0, font = 0, scale = 0.4},
  986. {name = "Red", color = {255,0,0}, costs = 100, description = "", centre = 0, font = 0, scale = 0.4},
  987. {name = "Pony Pink", color = {255,102,255}, costs = 100, description = "", centre = 0, font = 0, scale = 0.4},
  988. {name = "Hot Pink", color = {255,0,255}, costs = 100, description = "", centre = 0, font = 0, scale = 0.4},
  989. {name = "Purple", color = {153,0,153}, costs = 100, description = "", centre = 0, font = 0, scale = 0.4},
  990. }
  991. },
  992. ["headlights"] = {
  993. title = "headlights",
  994. name = "headlights",
  995. buttons = {
  996. {name = "Stock Lights",mod = false, modtype = 22,costs = 20, description = "", centre = 0, font = 0, scale = 0.4},
  997. {name = "Xenon Lights",mod = true,modtype = 22,costs = 50, description = "", centre = 0, font = 0, scale = 0.4}
  998. }
  999. },
  1000. ["plate"] = {
  1001. title = "plates",
  1002. name = "plate",
  1003. buttons = {
  1004. {name = "Blue on White 1",plateindex = false,costs = 15, description = "", centre = 0, font = 0, scale = 0.4},
  1005. {name = "Blue on White 2",plateindex = 3,costs = 20, description = "", centre = 0, font = 0, scale = 0.4},
  1006. {name = "Blue on White 3",plateindex = 4,costs = 35, description = "", centre = 0, font = 0, scale = 0.4},
  1007. {name = "Yellow on Blue",plateindex = 2,costs = 45, description = "", centre = 0, font = 0, scale = 0.4},
  1008. {name = "Yellow on Black",plateindex = 1,costs = 50, description = "", centre = 0, font = 0, scale = 0.4}
  1009. }
  1010. },["repair"] = {
  1011. title = "CATEGORIES",
  1012. name = "repair",
  1013. buttons = {
  1014. {name = "Repair vehicle", description = "Full body repair and engine service.", costs = 100, centre = 0, font = 0, scale = 0.4}
  1015.  
  1016. }
  1017. },
  1018. ["armor"] = {
  1019. title = "armor",
  1020. name = "armor",
  1021. buttons = {
  1022. {name = "None",modtype = 16, mod = -1,costs = 10, description = "", centre = 0, font = 0, scale = 0.4},
  1023. {name = "Armor Upgrade 20%",modtype = 16, mod = false, costs = 200, description = "", centre = 0, font = 0, scale = 0.4},
  1024. {name = "Armor Upgrade 40%",modtype = 16, mod = 1, costs = 500, description = "", centre = 0, font = 0, scale = 0.4},
  1025. {name = "Armor Upgrade 60%",modtype = 16, mod = 2, costs = 1100, description = "", centre = 0, font = 0, scale = 0.4},
  1026. {name = "Armor Upgrade 80%",modtype = 16, mod = 3, costs = 2500, description = "", centre = 0, font = 0, scale = 0.4},
  1027. {name = "Armor Upgrade 100%",modtype = 16, mod = 4, costs = 5000, description = "", centre = 0, font = 0, scale = 0.4}
  1028.  
  1029. }
  1030. },
  1031. ["brakes"] = {
  1032. title = "brakes",
  1033. name = "brakes",
  1034. buttons = {
  1035. {name = "Stock Brakes",modtype = 12, mod = -1, costs = 30, description = "", centre = 0, font = 0, scale = 0.4},
  1036. {name = "Street Brakes",modtype = 12, mod = false, costs = 110, description = "", centre = 0, font = 0, scale = 0.4},
  1037. {name = "Sport Brakes",modtype = 12, mod = 1, costs = 150, description = "", centre = 0, font = 0, scale = 0.4},
  1038. {name = "Race Brakes",modtype = 12, mod = 2, costs = 190, description = "", centre = 0, font = 0, scale = 0.4}
  1039.  
  1040. }
  1041. },
  1042. ["engine"] = {
  1043. title = "engine tunes",
  1044. name = "engine",
  1045. buttons = {
  1046. {name = "EMS Upgrade, Level 1",modtype = 11, mod = -1, costs = 100, description = "", centre = 0, font = 0, scale = 0.4},
  1047. {name = "EMS Upgrade, Level 2",modtype = 11, mod = false, costs = 210, description = "", centre = 0, font = 0, scale = 0.4},
  1048. {name = "EMS Upgrade, Level 3",modtype = 11, mod = 1, costs = 540, description = "", centre = 0, font = 0, scale = 0.4},
  1049. {name = "EMS Upgrade, Level 4",modtype = 11, mod = 2, costs = 1350, description = "", centre = 0, font = 0, scale = 0.4}
  1050. }
  1051. },
  1052. ["horn"] = {
  1053. title = "horns",
  1054. name = "horn",
  1055. buttons = {
  1056. {name = "Stock Horn",modtype = 14, mod = -1,costs = 15, description = "", centre = 0, font = 0, scale = 0.4},
  1057. {name = "Truck Horn",modtype = 14, mod = false,costs = 50, description = "", centre = 0, font = 0, scale = 0.4},
  1058. {name = "Police Horn",modtype = 14, mod = 1,costs = 120, description = "", centre = 0, font = 0, scale = 0.4},
  1059. {name = "Clown Horn",modtype = 14, mod = 2,costs = 60, description = "", centre = 0, font = 0, scale = 0.4},
  1060. {name = "Musical Horn 1",modtype = 14, mod = 3,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  1061. {name = "Musical Horn 2",modtype = 14, mod = 4,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  1062. {name = "Musical Horn 3",modtype = 14, mod = 5,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  1063. {name = "Musical Horn 4",modtype = 14, mod = 6,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  1064. {name = "Musical Horn 5",modtype = 14, mod = 7,costs = 65, description = "", centre = 0, font = 0, scale = 0.4},
  1065. {name = "Sadtrombone Horn",modtype = 14, mod = 8,costs = 70, description = "", centre = 0, font = 0, scale = 0.4},
  1066. {name = "Calssical Horn 1",modtype = 14, mod = 9,costs = 75, description = "", centre = 0, font = 0, scale = 0.4},
  1067. {name = "Calssical Horn 2",modtype = 14, mod = 10,costs = 75, description = "", centre = 0, font = 0, scale = 0.4},
  1068. {name = "Calssical Horn 3",modtype = 14, mod = 11,costs = 75, description = "", centre = 0, font = 0, scale = 0.4},
  1069. {name = "Calssical Horn 4",modtype = 14, mod = 12,costs = 75, description = "", centre = 0, font = 0, scale = 0.4},
  1070. {name = "Calssical Horn 5",modtype = 14, mod = 13,costs = 75, description = "", centre = 0, font = 0, scale = 0.4},
  1071. {name = "Calssical Horn 6",modtype = 14, mod = 14,costs = 75, description = "", centre = 0, font = 0, scale = 0.4},
  1072. {name = "Calssical Horn 7",modtype = 14, mod = 15,costs = 75, description = "", centre = 0, font = 0, scale = 0.4},
  1073. {name = "Scaledo Horn",modtype = 14, mod = 16,costs = 75, description = "", centre = 0, font = 0, scale = 0.4},
  1074. {name = "Scalere Horn",modtype = 14, mod = 17,costs = 75, description = "", centre = 0, font = 0, scale = 0.4},
  1075. {name = "Scalemi Horn",modtype = 14, mod = 18,costs = 75, description = "", centre = 0, font = 0, scale = 0.4},
  1076. {name = "Scalefa Horn",modtype = 14, mod = 19,costs = 75, description = "", centre = 0, font = 0, scale = 0.4},
  1077. {name = "Scalesol Horn",modtype = 14, mod = 20,costs = 75, description = "", centre = 0, font = 0, scale = 0.4},
  1078. {name = "Scalela Horn",modtype = 14, mod = 21,costs = 75, description = "", centre = 0, font = 0, scale = 0.4},
  1079. {name = "Scaleti Horn",modtype = 14, mod = 22,costs = 75, description = "", centre = 0, font = 0, scale = 0.4},
  1080. {name = "Scaledo Horn High",modtype = 14, mod = 23,costs = 75, description = "", centre = 0, font = 0, scale = 0.4},
  1081. {name = "Jazz Horn 1",modtype = 14, mod = 25,costs = 80, description = "", centre = 0, font = 0, scale = 0.4},
  1082. {name = "Jazz Horn 2",modtype = 14, mod = 26,costs = 80, description = "", centre = 0, font = 0, scale = 0.4},
  1083. {name = "Jazz Horn 3",modtype = 14, mod = 27,costs = 80, description = "", centre = 0, font = 0, scale = 0.4},
  1084. {name = "Jazzloop Horn",modtype = 14, mod = 28,costs = 80, description = "", centre = 0, font = 0, scale = 0.4},
  1085. {name = "Starspangban Horn 1",modtype = 14, mod = 29,costs = 90, description = "", centre = 0, font = 0, scale = 0.4},
  1086. {name = "Starspangban Horn 2",modtype = 14, mod = 30,costs = 90, description = "", centre = 0, font = 0, scale = 0.4},
  1087. {name = "Starspangban Horn 3",modtype = 14, mod = 31,costs = 90, description = "", centre = 0, font = 0, scale = 0.4},
  1088. {name = "Starspangban Horn 4",modtype = 14, mod = 32,costs = 90, description = "", centre = 0, font = 0, scale = 0.4},
  1089. {name = "Classicalloop Horn 1",modtype = 14, mod = 33,costs = 100, description = "", centre = 0, font = 0, scale = 0.4},
  1090. {name = "Classical Horn 8",modtype = 14, mod = 34,costs = 100, description = "", centre = 0, font = 0, scale = 0.4},
  1091. {name = "Classicalloop Horn 2",modtype = 14, mod = 35,costs = 100, description = "", centre = 0, font = 0, scale = 0.4}
  1092. }
  1093. },
  1094. }
  1095. }
  1096.  
  1097. local vehiclecol = {}
  1098. local extracol = {}
  1099. local wheeltype = nil
  1100. local neoncolor = nil
  1101. local plateindex = nil
  1102. local windowtint = nil
  1103. local mods = {
  1104. [0] = { mod = nil },
  1105. [1] = { mod = nil },
  1106. [2] = { mod = nil },
  1107. [3] = { mod = nil },
  1108. [4] = { mod = nil },
  1109. [5] = { mod = nil },
  1110. [6] = { mod = nil },
  1111. [7] = { mod = nil },
  1112. [8] = { mod = nil },
  1113. [9] = { mod = nil },
  1114. [10] = { mod = nil },
  1115. [11] = { mod = nil },
  1116. [12] = { mod = nil },
  1117. [13] = { mod = nil },
  1118. [14] = { mod = nil },
  1119. [15] = { mod = nil },
  1120. [16] = { mod = nil },
  1121. [23] = { mod = nil },
  1122. [24] = { mod = nil },
  1123. }
  1124.  
  1125. function f(n)
  1126. return n + 0.0001
  1127. end
  1128.  
  1129. function LocalPed()
  1130. return GetPlayerPed(-1)
  1131. end
  1132.  
  1133. function try(f, catch_f)
  1134. local status, exception = pcall(f)
  1135. if not status then
  1136. catch_f(exception)
  1137. end
  1138. end
  1139. function firstToUpper(str)
  1140. return (str:gsub("^%l", string.upper))
  1141. end
  1142. function DriveInGarage()
  1143. local pos = lsc.currentpos.inside
  1144. --TriggerServerEvent('print',"start")
  1145. Citizen.Trace("forcin' respawn\n")
  1146. local ped = GetPlayerPed(-1)
  1147. local veh = GetVehiclePedIsUsing(ped)
  1148. if DoesEntityExist(veh) then
  1149.  
  1150. if IsVehicleDamaged(veh) then
  1151. lsc.currentmenu = 'repair'
  1152. else
  1153. lsc.currentmenu = "main"
  1154. end
  1155.  
  1156. SetVehicleModKit(veh,0)
  1157. local bumper = false
  1158. local insrt = table.insert
  1159. lsc.menu["main"].buttons = {}
  1160. lsc.menu["bumpers"].buttons = {}
  1161. for i = 0,16 do
  1162. if GetNumVehicleMods(veh,i) ~= nil and GetNumVehicleMods(veh,i) ~= false then
  1163. if i == 16 then
  1164. insrt(lsc.menu["main"].buttons, {name = "Armor", description = "", centre = 0, font = 0, scale = 0.4})
  1165. elseif i == 15 then
  1166. insrt(lsc.menu["main"].buttons, {name = "Suspension", description = "", centre = 0, font = 0, scale = 0.4})
  1167. elseif i == 13 then
  1168. insrt(lsc.menu["main"].buttons, {name = "Transmission", description = "", centre = 0, font = 0, scale = 0.4})
  1169. elseif i == 14 then
  1170. insrt(lsc.menu["main"].buttons, {name = "Horn", description = "", centre = 0, font = 0, scale = 0.4})
  1171. elseif i == 12 then
  1172. insrt(lsc.menu["main"].buttons, {name = "Brakes", description = "", centre = 0, font = 0, scale = 0.4})
  1173. elseif i == 11 then
  1174. insrt(lsc.menu["main"].buttons, {name = "Engine", description = "", centre = 0, font = 0, scale = 0.4})
  1175. elseif i == 0 then
  1176. insrt(lsc.menu["main"].buttons, {name = "Spoiler", description = "", centre = 0, font = 0, scale = 0.4})
  1177. elseif i == 1 then
  1178. bumper = true
  1179. insrt(lsc.menu["bumpers"].buttons, {name = "Front Bumpers", description = "", centre = 0, font = 0, scale = 0.4})
  1180. elseif i == 2 then
  1181. bumper = true
  1182. insrt(lsc.menu["bumpers"].buttons, {name = "Rear Bumpers", description = "", centre = 0, font = 0, scale = 0.4})
  1183. elseif i == 3 then
  1184. insrt(lsc.menu["main"].buttons, {name = "Skirts", description = "", centre = 0, font = 0, scale = 0.4})
  1185. elseif i == 4 then
  1186. insrt(lsc.menu["main"].buttons, {name = "Exhaust", description = "", centre = 0, font = 0, scale = 0.4})
  1187. elseif i == 5 then
  1188. insrt(lsc.menu["main"].buttons, {name = "Roll Cage", description = "", centre = 0, font = 0, scale = 0.4})
  1189. elseif i == 6 then
  1190. insrt(lsc.menu["main"].buttons, {name = "Grille", description = "", centre = 0, font = 0, scale = 0.4})
  1191. elseif i == 7 then
  1192. insrt(lsc.menu["main"].buttons, {name = "Hood", description = "", centre = 0, font = 0, scale = 0.4})
  1193. elseif i == 8 then
  1194. insrt(lsc.menu["main"].buttons, {name = "Fenders", description = "", centre = 0, font = 0, scale = 0.4})
  1195. elseif i == 9 then
  1196. --insrt(lsc.menu["main"].buttons, {name = "Fenders2", description = "", centre = 0, font = 0, scale = 0.4})
  1197. elseif i == 10 then
  1198. insrt(lsc.menu["main"].buttons, {name = "Roof", description = "", centre = 0, font = 0, scale = 0.4})
  1199. end
  1200. end
  1201. end
  1202.  
  1203. if bumper then
  1204. insrt(lsc.menu["main"].buttons, {name = "Bumpers", description = "", centre = 0, font = 0, scale = 0.4})
  1205. end
  1206. insrt(lsc.menu["main"].buttons, {name = "Lights", description = "", centre = 0, font = 0, scale = 0.4})
  1207. insrt(lsc.menu["main"].buttons, {name = "Plate", description = "", centre = 0, font = 0, scale = 0.4})
  1208. insrt(lsc.menu["main"].buttons, {name = "Respray", description = "Respray your vehicle", centre = 0, font = 0, scale = 0.4})
  1209. insrt(lsc.menu["main"].buttons, {name = "Turbo", description = "", centre = 0, font = 0, scale = 0.4})
  1210. insrt(lsc.menu["main"].buttons, {name = "Wheels", description = "", centre = 0, font = 0, scale = 0.4})
  1211. insrt(lsc.menu["main"].buttons, {name = "Windows", description = "", centre = 0, font = 0, scale = 0.4})
  1212. if IsThisModelABike(GetEntityModel(veh)) then
  1213. lsc.menu["wheeltype"].buttons = {}
  1214. insrt(lsc.menu["wheeltype"].buttons, {name = "Front Wheel", wtype = 6, description = "", centre = 0, font = 0, scale = 0.4})
  1215. insrt(lsc.menu["wheeltype"].buttons, {name = "Back Wheel", wtype = 6, description = "", centre = 0, font = 0, scale = 0.4})
  1216. end
  1217. --TriggerServerEvent('print',"finished main")
  1218. SetVehicleModKit(veh,0)
  1219. local mod = 1
  1220. lsc.menu["frontbumper"].buttons = {}
  1221. Citizen.Trace(tostring(veh).." mod:"..mod.." num:"..tostring(GetNumVehicleMods(veh,mod)))
  1222. if GetNumVehicleMods(veh,mod) ~= nil and GetNumVehicleMods(veh,mod) ~= false then
  1223. insrt(lsc.menu["frontbumper"].buttons , {name = "None",modtype = mod,costs = 0,mod = -1, description = "", centre = 0, font = 0, scale = 0.4})
  1224. for i = 0, tonumber(GetNumVehicleMods(veh,mod)) -1 do
  1225. local lbl = GetModTextLabel(veh,mod,i)
  1226. --TriggerServerEvent('print',tostring(lbl))
  1227. Citizen.Trace(tostring(lbl))
  1228. Citizen.Trace(GetLabelText(lbl))
  1229. if lbl ~= nil then
  1230. local name = tostring(GetLabelText(lbl))
  1231. if name ~= "NULL" then
  1232. insrt(lsc.menu["frontbumper"].buttons, {name = name,modtype = mod,costs = 0,mod = i, description = "", centre = 0, font = 0, scale = 0.4})
  1233. Citizen.Trace(name.." "..mod.." "..i)
  1234. end
  1235. end
  1236. end
  1237. end
  1238. Citizen.Trace('finished frontbumper')
  1239. SetVehicleModKit(veh,0)
  1240. Citizen.Trace('set modkit')
  1241. mod = 2
  1242. Citizen.Trace('finished mod setting')
  1243. lsc.menu["rearbumper"].buttons = {}
  1244. Citizen.Trace('finished clearning btns')
  1245. Citizen.Trace(tostring(veh).." mod:"..mod.." num:"..tostring(GetNumVehicleMods(veh,mod)))
  1246. if GetNumVehicleMods(veh,mod) ~= nil and GetNumVehicleMods(veh,mod) ~= false then
  1247. insrt(lsc.menu["rearbumper"].buttons, {name = "None",modtype = mod,costs = 0,mod = -1, description = "", centre = 0, font = 0, scale = 0.4})
  1248. for i = 0, tonumber(GetNumVehicleMods(veh,mod)) -1 do
  1249. local lbl = GetModTextLabel(veh,mod,i)
  1250. Citizen.Trace(tostring(lbl))
  1251. Citizen.Trace(GetLabelText(lbl))
  1252. if lbl ~= nil then
  1253. local name = tostring(GetLabelText(lbl))
  1254. if name ~= "NULL" then
  1255. insrt(lsc.menu["rearbumper"].buttons, {name = name,modtype = mod,costs = 0,mod = i, description = "", centre = 0, font = 0, scale = 0.4})
  1256. Citizen.Trace(name.." "..mod.." "..mod)
  1257. end
  1258. end
  1259. end
  1260. end
  1261. mod = 4
  1262. SetVehicleModKit(veh,0)
  1263. lsc.menu["exhaust"].buttons = {}
  1264. Citizen.Trace(tostring(veh).." mod:"..mod.." num:"..tostring(GetNumVehicleMods(veh,mod)))
  1265. if GetNumVehicleMods(veh,mod) ~= nil and GetNumVehicleMods(veh,mod) ~= false then
  1266. insrt(lsc.menu["exhaust"].buttons, {name = "None",modtype = mod,costs = 0,mod = -1, description = "", centre = 0, font = 0, scale = 0.4})
  1267. for i = 0, tonumber(GetNumVehicleMods(veh,mod)) -1 do
  1268. local lbl = GetModTextLabel(veh,mod,i)
  1269. Citizen.Trace(tostring(lbl))
  1270. Citizen.Trace(GetLabelText(lbl))
  1271. if lbl ~= nil then
  1272. local name = tostring(GetLabelText(lbl))
  1273. if name ~= "NULL" then
  1274. insrt(lsc.menu["exhaust"].buttons, {name = name,modtype = mod,costs = 0,mod = i, description = "", centre = 0, font = 0, scale = 0.4})
  1275. Citizen.Trace(name.." "..mod.." "..mod)
  1276. end
  1277. end
  1278. end
  1279. end
  1280. mod = 8
  1281. lsc.menu["fenders"].buttons = {}
  1282. SetVehicleModKit(veh,0)
  1283. Citizen.Trace(tostring(veh).." mod:"..mod.." num:"..tostring(GetNumVehicleMods(veh,mod)))
  1284. if GetNumVehicleMods(veh,mod) ~= nil and GetNumVehicleMods(veh,mod) ~= false then
  1285. insrt(lsc.menu["fenders"].buttons, {name = "None",modtype = mod,costs = 0,mod = -1, description = "", centre = 0, font = 0, scale = 0.4})
  1286. for i = 0, tonumber(GetNumVehicleMods(veh,mod)) -1 do
  1287. local lbl = GetModTextLabel(veh,mod,i)
  1288. Citizen.Trace(tostring(lbl))
  1289. Citizen.Trace(GetLabelText(lbl))
  1290. if lbl ~= nil then
  1291. local name = tostring(GetLabelText(lbl))
  1292. if name ~= "NULL" then
  1293. insrt(lsc.menu["fenders"].buttons, {name = name,modtype = mod,costs = 0,mod = i, description = "", centre = 0, font = 0, scale = 0.4})
  1294. Citizen.Trace(name.." "..mod.." "..mod)
  1295. end
  1296. end
  1297. end
  1298. end
  1299. mod = 9
  1300. SetVehicleModKit(veh,0)
  1301. if GetNumVehicleMods(veh,mod) ~= nil and GetNumVehicleMods(veh,mod) ~= false then
  1302. for i = 0, tonumber(GetNumVehicleMods(veh,mod)) -1 do
  1303. local lbl = GetModTextLabel(veh,mod,i)
  1304. Citizen.Trace(tostring(lbl))
  1305. Citizen.Trace(GetLabelText(lbl))
  1306. if lbl ~= nil then
  1307. local name = tostring(GetLabelText(lbl))
  1308. if name ~= "NULL" then
  1309. insrt(lsc.menu["fenders"].buttons, {name = name,modtype = mod,costs = 0,mod = i, description = "", centre = 0, font = 0, scale = 0.4})
  1310. end
  1311. end
  1312. end
  1313. end
  1314. mod = 7
  1315. lsc.menu["hood"].buttons = {}
  1316. SetVehicleModKit(veh,0)
  1317. Citizen.Trace(tostring(veh).." mod:"..mod.." num:"..tostring(GetNumVehicleMods(veh,mod)))
  1318. if GetNumVehicleMods(veh,mod) ~= nil and GetNumVehicleMods(veh,mod) ~= false then
  1319. insrt(lsc.menu["hood"].buttons, {name = "None",modtype = mod,costs = 0,mod = -1, description = "", centre = 0, font = 0, scale = 0.4})
  1320. for i = 0, tonumber(GetNumVehicleMods(veh,mod)) -1 do
  1321. local lbl = GetModTextLabel(veh,mod,i)
  1322. Citizen.Trace(tostring(lbl))
  1323. Citizen.Trace(GetLabelText(lbl))
  1324. if lbl ~= nil then
  1325. local name = tostring(GetLabelText(lbl))
  1326. if name ~= "NULL" then
  1327. insrt(lsc.menu["hood"].buttons, {name = name,modtype = mod,costs = 0,mod = i, description = "", centre = 0, font = 0, scale = 0.4})
  1328. Citizen.Trace(name.." "..mod.." "..mod)
  1329. end
  1330. end
  1331. end
  1332. end
  1333.  
  1334. mod = 5
  1335. lsc.menu["rollcage"].buttons = {}
  1336. SetVehicleModKit(veh,0)
  1337. Citizen.Trace(tostring(veh).." mod:"..mod.." num:"..tostring(GetNumVehicleMods(veh,mod)))
  1338. if GetNumVehicleMods(veh,mod) ~= nil and GetNumVehicleMods(veh,mod) ~= false then
  1339. insrt(lsc.menu["rollcage"].buttons, {name = "None",modtype = mod,costs = 0,mod = -1, description = "", centre = 0, font = 0, scale = 0.4})
  1340. for i = 0, tonumber(GetNumVehicleMods(veh,mod)) -1 do
  1341. local lbl = GetModTextLabel(veh,mod,i)
  1342. Citizen.Trace(tostring(lbl))
  1343. Citizen.Trace(GetLabelText(lbl))
  1344. if lbl ~= nil then
  1345. local name = tostring(GetLabelText(lbl))
  1346. if name ~= "NULL" then
  1347. insrt(lsc.menu["rollcage"].buttons, {name = name,modtype = mod,costs = 0,mod = i, description = "", centre = 0, font = 0, scale = 0.4})
  1348.  
  1349. Citizen.Trace(name.." "..mod.." "..mod)
  1350. end
  1351. end
  1352. end
  1353. end
  1354.  
  1355. mod = 10
  1356. lsc.menu["roof"].buttons = {}
  1357. SetVehicleModKit(veh,0)
  1358. Citizen.Trace(tostring(veh).." mod:"..mod.." num:"..tostring(GetNumVehicleMods(veh,mod)))
  1359. if GetNumVehicleMods(veh,mod) ~= nil and GetNumVehicleMods(veh,mod) ~= false then
  1360. insrt(lsc.menu["roof"].buttons, {name = "None",modtype = mod,costs = 0,mod = -1, description = "", centre = 0, font = 0, scale = 0.4})
  1361. for i = 0, tonumber(GetNumVehicleMods(veh,mod)) -1 do
  1362. local lbl = GetModTextLabel(veh,mod,i)
  1363. Citizen.Trace(tostring(lbl))
  1364. Citizen.Trace(GetLabelText(lbl))
  1365. if lbl ~= nil then
  1366. local name = tostring(GetLabelText(lbl))
  1367. if name ~= "NULL" then
  1368. insrt(lsc.menu["roof"].buttons, {name = name,modtype = mod,costs = 0,mod = i, description = "", centre = 0, font = 0, scale = 0.4})
  1369.  
  1370. Citizen.Trace(name.." "..mod.." "..mod)
  1371. end
  1372. end
  1373. end
  1374. end
  1375.  
  1376. mod = 3
  1377. lsc.menu["skirts"].buttons = {}
  1378. SetVehicleModKit(veh,0)
  1379. Citizen.Trace(tostring(veh).." mod:"..mod.." num:"..tostring(GetNumVehicleMods(veh,mod)))
  1380. if GetNumVehicleMods(veh,mod) ~= nil and GetNumVehicleMods(veh,mod) ~= false then
  1381. insrt(lsc.menu["skirts"].buttons, {name = "None",modtype = mod,costs = 0,mod = -1, description = "", centre = 0, font = 0, scale = 0.4})
  1382. for i = 0, tonumber(GetNumVehicleMods(veh,mod)) -1 do
  1383. local lbl = GetModTextLabel(veh,mod,i)
  1384. Citizen.Trace(tostring(lbl))
  1385. Citizen.Trace(GetLabelText(lbl))
  1386. if lbl ~= nil then
  1387. local name = tostring(GetLabelText(lbl))
  1388. if name ~= "NULL" then
  1389. insrt(lsc.menu["skirts"].buttons, {name = name,modtype = mod,costs = 0,mod = i, description = "", centre = 0, font = 0, scale = 0.4})
  1390.  
  1391. Citizen.Trace(name.." "..mod.." "..mod)
  1392. end
  1393. end
  1394. end
  1395. end
  1396.  
  1397. mod = 0
  1398. lsc.menu["spoiler"].buttons = {}
  1399. SetVehicleModKit(veh,0)
  1400. Citizen.Trace(tostring(veh).." mod:"..mod.." num:"..tostring(GetNumVehicleMods(veh,mod)))
  1401. if GetNumVehicleMods(veh,mod) ~= nil and GetNumVehicleMods(veh,mod) ~= false then
  1402. insrt(lsc.menu["spoiler"].buttons, {name = "None",modtype = mod,costs = 0,mod = -1, description = "", centre = 0, font = 0, scale = 0.4})
  1403. for i = 0, tonumber(GetNumVehicleMods(veh,mod)) -1 do
  1404. local lbl = GetModTextLabel(veh,mod,i)
  1405. Citizen.Trace(tostring(lbl))
  1406. Citizen.Trace(GetLabelText(lbl))
  1407. if lbl ~= nil then
  1408. local name = tostring(GetLabelText(lbl))
  1409. if name ~= "NULL" then
  1410. insrt(lsc.menu["spoiler"].buttons, {name = name,modtype = mod,costs = 0,mod = i, description = "", centre = 0, font = 0, scale = 0.4})
  1411.  
  1412. Citizen.Trace(name.." "..mod.." "..mod)
  1413. end
  1414. end
  1415. end
  1416. end
  1417.  
  1418. mod = 6
  1419. lsc.menu["grille"].buttons = {}
  1420. SetVehicleModKit(veh,0)
  1421. Citizen.Trace(tostring(veh).." mod:"..mod.." num:"..tostring(GetNumVehicleMods(veh,mod)))
  1422. if GetNumVehicleMods(veh,mod) ~= nil and GetNumVehicleMods(veh,mod) ~= false then
  1423. insrt(lsc.menu["grille"].buttons, {name = "None",modtype = mod,costs = 0,mod = -1, description = "", centre = 0, font = 0, scale = 0.4})
  1424. for i = 0, tonumber(GetNumVehicleMods(veh,mod)) -1 do
  1425. local lbl = GetModTextLabel(veh,mod,i)
  1426. Citizen.Trace(tostring(lbl))
  1427. Citizen.Trace(GetLabelText(lbl))
  1428. if lbl ~= nil then
  1429. local name = tostring(GetLabelText(lbl))
  1430. if name ~= "NULL" then
  1431. insrt(lsc.menu["grille"].buttons, {name = name,modtype = mod,costs = 0,mod = i, description = "", centre = 0, font = 0, scale = 0.4})
  1432.  
  1433. Citizen.Trace(name.." "..mod.." "..mod)
  1434. end
  1435. end
  1436. end
  1437. end
  1438.  
  1439. mod = 5
  1440. lsc.menu["chassis"].buttons = {}
  1441. SetVehicleModKit(veh,0)
  1442. Citizen.Trace(tostring(veh).." mod:"..mod.." num:"..tostring(GetNumVehicleMods(veh,mod)))
  1443. if GetNumVehicleMods(veh,mod) ~= nil and GetNumVehicleMods(veh,mod) ~= false then
  1444. insrt(lsc.menu["chassis"].buttons, {name = "None",modtype = mod,costs = 0,mod = -1, description = "", centre = 0, font = 0, scale = 0.4})
  1445. for i = 0, tonumber(GetNumVehicleMods(veh,mod)) -1 do
  1446. local lbl = GetModTextLabel(veh,mod,i)
  1447. Citizen.Trace(tostring(lbl))
  1448. Citizen.Trace(GetLabelText(lbl))
  1449. if lbl ~= nil then
  1450. local name = tostring(GetLabelText(lbl))
  1451. if name ~= "NULL" then
  1452. insrt(lsc.menu["chassis"].buttons, {name = name,modtype = mod,costs = 0,mod = i, description = "", centre = 0, font = 0, scale = 0.4})
  1453.  
  1454. Citizen.Trace(name.." "..mod.." "..mod)
  1455. end
  1456. end
  1457. end
  1458. end
  1459. lsc.inside = true
  1460. vehiclecol = table.pack(GetVehicleColours(veh))
  1461. extracol = table.pack(GetVehicleExtraColours(veh))
  1462. neoncolor = table.pack(GetVehicleNeonLightsColour(veh))
  1463. plateindex = GetVehicleNumberPlateTextIndex(veh)
  1464. for i,t in pairs(mods) do
  1465. t.mod = GetVehicleMod(veh,i)
  1466. end
  1467. windowtint = GetVehicleWindowTint(veh)
  1468. wheeltype = GetVehicleWheelType(veh)
  1469. SetEntityCoordsNoOffset(veh,pos.x,pos.y,pos.z)
  1470. SetEntityHeading(veh,pos.heading)
  1471. SetVehicleOnGroundProperly(veh)
  1472. FreezeEntityPosition(veh, true)
  1473. SetVehicleDoorsLocked(veh,4)
  1474. SetPlayerInvincible(GetPlayerIndex(),true)
  1475. SetEntityInvincible(veh,true)
  1476. SetEntityCollision(veh,false,false)
  1477. TriggerServerEvent('lockGarage',true,lsc.currentgarage)
  1478. end
  1479.  
  1480. end
  1481.  
  1482. function DriveOutOfGarage(pos)
  1483. SetStreamedTextureDictAsNoLongerNeeded("mpmissmarkers256")
  1484. lsc.inside = false
  1485. local ped = LocalPed()
  1486. local veh = GetVehiclePedIsUsing(ped)
  1487. SetEntityCoords(veh,pos.x,pos.y,pos.z)
  1488. SetEntityHeading(veh,pos.heading)
  1489. lsc.menu["frontbumper"].buttons = {}
  1490. lsc.menu["rearbumper"].buttons = {}
  1491. lsc.menu["exhaust"].buttons = {}
  1492. lsc.menu["fenders"].buttons = {}
  1493. lsc.menu["hood"].buttons = {}
  1494. lsc.menu["rollcage"].buttons = {}
  1495. lsc.menu["roof"].buttons = {}
  1496. lsc.menu["skirts"].buttons = {}
  1497. lsc.menu["spoiler"].buttons = {}
  1498. lsc.menu["grille"].buttons = {}
  1499. lsc.menu["main"].buttons = {}
  1500. lsc.menu["bumpers"].buttons = {}
  1501. lsc.menu["chassis"].buttons = {}
  1502. table.sort(lsc)
  1503. table.sort(lsc.menu)
  1504. lsc.menu.from = 1
  1505. lsc.menu.to = 10
  1506. lsc.selectedbutton = 0
  1507. SetVehicleOnGroundProperly(veh)
  1508. SetEntityCollision(veh,true,true)
  1509. FreezeEntityPosition(veh, false)
  1510. SetVehicleDoorsLocked(veh,0)
  1511. SetPlayerInvincible(GetPlayerIndex(),false)
  1512. SetEntityInvincible(veh,false)
  1513. TriggerServerEvent('lockGarage',false,lsc.currentgarage)
  1514. lsc.currentgarage = 0
  1515. end
  1516.  
  1517. function lsc_drawTxt(text,font,centre,x,y,scale,r,g,b,a)
  1518. SetTextFont(font)
  1519. SetTextProportional(0)
  1520. SetTextScale(scale, scale)
  1521. SetTextColour(r, g, b, a)
  1522. SetTextDropShadow(0, 0, 0, 0,255)
  1523. SetTextEdge(1, 0, 0, 0, 255)
  1524. SetTextDropShadow()
  1525. SetTextOutline()
  1526. SetTextCentre(centre)
  1527. SetTextEntry("STRING")
  1528. AddTextComponentString(text)
  1529. DrawText(x , y)
  1530. end
  1531.  
  1532. function lsc_drawMenuButton(button,x,y,selected)
  1533. SetTextFont(button.font)
  1534. SetTextProportional(0)
  1535. SetTextScale(button.scale, button.scale)
  1536. if selected then
  1537. SetTextColour(0, 0, 0, 255)
  1538. else
  1539. SetTextColour(255, 255, 255, 255)
  1540. end
  1541. SetTextCentre(button.centre)
  1542. SetTextEntry("STRING")
  1543. AddTextComponentString(button.name)
  1544. if selected then
  1545. DrawRect(x,y,lsc.menu.width,lsc.menu.height,255,255,255,255)
  1546. else
  1547. DrawRect(x,y,lsc.menu.width,lsc.menu.height,0,0,0,150)
  1548. end
  1549. DrawText(x - lsc.menu.width/2 + 0.005, y - lsc.menu.height/2 + 0.0028)
  1550. end
  1551.  
  1552. function drawMenuCost(button,x,y,selected)
  1553. SetTextFont(2)
  1554. SetTextProportional(0)
  1555. SetTextScale(0.5, 0.5)
  1556. if selected then
  1557. SetTextColour(0, 0, 0, 255)
  1558. else
  1559. SetTextColour(255, 255, 255, 255)
  1560. end
  1561. SetTextEntry("STRING")
  1562. if button.costs == 0 then
  1563. AddTextComponentString("free")
  1564. else
  1565. AddTextComponentString(button.costs)
  1566. end
  1567. DrawText(x + lsc.menu.width/2 - 0.035, y - lsc.menu.height/2 + 0.0028)
  1568. end
  1569.  
  1570. function drawMenuOwned(x,y,selected)
  1571. SetTextFont(2)
  1572. SetTextProportional(0)
  1573. SetTextScale(0.5, 0.5)
  1574. if selected then
  1575. SetTextColour(0, 0, 0, 255)
  1576. else
  1577. SetTextColour(255, 255, 255, 255)
  1578. end
  1579. SetTextEntry("STRING")
  1580. AddTextComponentString("owned")
  1581. DrawText(x + lsc.menu.width/2 - 0.035, y - lsc.menu.height/2 + 0.0028)
  1582. end
  1583.  
  1584. function drawMenuTitle(txt,x,y)
  1585. SetTextFont(2)
  1586. SetTextProportional(0)
  1587. SetTextScale(0.5, 0.5)
  1588. SetTextColour(255, 255, 255, 255)
  1589. SetTextEntry("STRING")
  1590. AddTextComponentString(txt)
  1591. DrawRect(x,y,lsc.menu.width,lsc.menu.height,0,0,0,150)
  1592. DrawText(x - lsc.menu.width/2 + 0.005, y - lsc.menu.height/2 + 0.0028)
  1593. end
  1594. function tablelength(T)
  1595. local count = 0
  1596. for _ in pairs(T) do count = count + 1 end
  1597. return count
  1598. end
  1599. local backlock = false
  1600. local horn = ''
  1601. Citizen.CreateThread(function()
  1602. while true do
  1603. Citizen.Wait(0)
  1604. if lsc ~= nil and lsc.inside == false then
  1605. local ped = LocalPed()
  1606. if IsPedSittingInAnyVehicle(ped) then
  1607. local veh = GetVehiclePedIsUsing(ped)
  1608. if DoesEntityExist(veh) and (IsThisModelACar(GetEntityModel(veh)) or IsThisModelABike(GetEntityModel(veh))) then
  1609. for i,pos in ipairs(lsc.locations) do
  1610. outside = pos.outside
  1611. if GetDistanceBetweenCoords(outside.x,outside.y,outside.z,GetEntityCoords(ped)) <= f(5) then
  1612. if pos.locked == false then
  1613. lsc_drawTxt("Press ~b~ENTER~w~ to enter ~b~Los Santos Customs ",4,1,0.5,0.8,1.0,255,255,255,255)
  1614. if IsControlJustPressed(1,201) then
  1615.  
  1616. lsc.currentpos = pos
  1617. lsc.currentgarage = i
  1618. DriveInGarage()
  1619.  
  1620. end
  1621. else
  1622. lsc_drawTxt("~r~Locked, please wait",4,1,0.5,0.8,1.0,255,255,255,255)
  1623. end
  1624. end
  1625. end
  1626. end
  1627. end
  1628. elseif lsc ~= nil then
  1629. local ped = LocalPed()
  1630. local veh = GetVehiclePedIsUsing(ped)
  1631. local menu = lsc.menu[lsc.currentmenu]
  1632. lsc_drawTxt(lsc.title,1,1,lsc.menu.x,lsc.menu.y,1.0, 255,255,255,255)
  1633. drawMenuTitle(menu.title, lsc.menu.x,lsc.menu.y + 0.08)
  1634. lsc_drawTxt(lsc.selectedbutton.."/"..tablelength(menu.buttons),0,0,lsc.menu.x + lsc.menu.width/2 - 0.0328,lsc.menu.y + 0.066,0.4, 255,255,255,255)
  1635. local y = lsc.menu.y + 0.12
  1636. buttoncount = tablelength(menu.buttons)
  1637. local selected = false
  1638.  
  1639. for i,button in pairs(menu.buttons) do
  1640. if i >= lsc.menu.from and i <= lsc.menu.to then
  1641.  
  1642. if i == lsc.selectedbutton then
  1643. selected = true
  1644. else
  1645. selected = false
  1646. end
  1647. lsc_drawMenuButton(button,lsc.menu.x,y,selected)
  1648. if button.costs ~= nil then
  1649. if lsc.currentmenu == "headlights" then
  1650. if button.name == "Stock Lights" then
  1651. if not IsToggleModOn(veh, button.modtype) then
  1652. drawMenuOwned(lsc.menu.x,y,selected)
  1653. end
  1654. elseif button.name == "Xenon Lights" then
  1655. if IsToggleModOn(veh, button.modtype) then
  1656. drawMenuOwned(lsc.menu.x,y,selected)
  1657. else
  1658. drawMenuCost(button,lsc.menu.x,y,selected)
  1659. end
  1660. end
  1661.  
  1662. elseif lsc.currentmenu == "turbo" then
  1663. if button.name == "None" then
  1664. if not IsToggleModOn(veh, button.modtype) then
  1665. drawMenuOwned(lsc.menu.x,y,selected)
  1666. end
  1667. elseif button.name == "Turbo Tuning" then
  1668. if IsToggleModOn(veh, button.modtype) then
  1669. drawMenuOwned(lsc.menu.x,y,selected)
  1670. else
  1671. drawMenuCost(button,lsc.menu.x,y,selected)
  1672. end
  1673. end
  1674.  
  1675. elseif lsc.currentmenu == "plate" then
  1676. if plateindex == button.plateindex then
  1677. drawMenuOwned(lsc.menu.x,y,selected)
  1678. else
  1679. drawMenuCost(button,lsc.menu.x,y,selected)
  1680. end
  1681. elseif lsc.currentmenu == "chassis" or lsc.currentmenu == "armor" or lsc.currentmenu == "brakes" or lsc.currentmenu == "exhaust" or lsc.currentmenu == "frontbumper" or lsc.currentmenu == "rearbumper" or lsc.currentmenu == "engine" or lsc.currentmenu == "fenders" or lsc.currentmenu == "hood" or lsc.currentmenu == "transmission" or lsc.currentmenu == "suspension" or lsc.currentmenu == "spoiler" or lsc.currentmenu == "skirts" or lsc.currentmenu == "roof" or lsc.currentmenu == "rollcage" or lsc.currentmenu == "horn" or lsc.currentmenu == "grille" then
  1682. if button.mod == -1 then
  1683. if mods[button.modtype].mod == -1 then
  1684. drawMenuOwned(lsc.menu.x,y,selected)
  1685. end
  1686. elseif button.mod == 0 or button.mod == false then
  1687. if mods[button.modtype].mod == false or mods[button.modtype].mod == 0 then
  1688. drawMenuOwned(lsc.menu.x,y,selected)
  1689. else
  1690. drawMenuCost(button,lsc.menu.x,y,selected)
  1691. end
  1692. else
  1693. if mods[button.modtype].mod == button.mod then
  1694. drawMenuOwned(lsc.menu.x,y,selected)
  1695. else
  1696. drawMenuCost(button,lsc.menu.x,y,selected)
  1697. end
  1698. end
  1699. elseif lsc.currentmenu == "sport" or lsc.currentmenu == "muscle" or lsc.currentmenu == "lowrider" or lsc.currentmenu == "frontwheel" or lsc.currentmenu == "backwheel" or lsc.currentmenu == "highend" or lsc.currentmenu == "suv" or lsc.currentmenu == "offroad" or lsc.currentmenu == "tuner" then
  1700. if button.mod == -1 then
  1701. if mods[button.modtype].mod == -1 and wheeltype == button.wtype then
  1702. drawMenuOwned(lsc.menu.x,y,selected)
  1703. end
  1704. elseif button.mod == 0 or button.mod == false then
  1705. if (mods[button.modtype].mod == false or mods[button.modtype].mod == 0) and wheeltype == button.wtype then
  1706. drawMenuOwned(lsc.menu.x,y,selected)
  1707. else
  1708. drawMenuCost(button,lsc.menu.x,y,selected)
  1709. end
  1710. else
  1711. if mods[button.modtype].mod == button.mod and wheeltype == button.wtype then
  1712. drawMenuOwned(lsc.menu.x,y,selected)
  1713. else
  1714. drawMenuCost(button,lsc.menu.x,y,selected)
  1715. end
  1716. end
  1717. elseif lsc.currentmenu == "neonlayout" then
  1718. if button.name == "None" then
  1719. if IsVehicleNeonLightEnabled(veh, 0) == false and IsVehicleNeonLightEnabled(veh, 1) == false and IsVehicleNeonLightEnabled(veh, 2) == false and IsVehicleNeonLightEnabled(veh, 3) == false then
  1720. drawMenuOwned(lsc.menu.x,y,selected)
  1721. end
  1722. elseif button.name == "Front,Back and Sides" then
  1723. if IsVehicleNeonLightEnabled(veh, 0) and IsVehicleNeonLightEnabled(veh, 1) and IsVehicleNeonLightEnabled(veh, 2) and IsVehicleNeonLightEnabled(veh, 3) then
  1724. drawMenuOwned(lsc.menu.x,y,selected)
  1725. else
  1726. drawMenuCost(button,lsc.menu.x,y,selected)
  1727. end
  1728. end
  1729. elseif lsc.currentmenu == "neoncolor" then
  1730. if button.color[1] == neoncolor[1] and button.color[2] == neoncolor[2] and button.color[3] == neoncolor[3] then
  1731. drawMenuOwned(lsc.menu.x,y,selected)
  1732. else
  1733. drawMenuCost(button,lsc.menu.x,y,selected)
  1734. end
  1735. elseif (lsc.currentmenu == "primaryclassic" or lsc.currentmenu == "primarychrome" or lsc.currentmenu == "primarymatte" or lsc.currentmenu == "primarymetal") then
  1736. if button.colorindex == vehiclecol[1] then
  1737. drawMenuOwned(lsc.menu.x,y,selected)
  1738. else
  1739. drawMenuCost(button,lsc.menu.x,y,selected)
  1740. end
  1741. elseif (lsc.currentmenu == "secondaryclassic" or lsc.currentmenu == "secondarychrome" or lsc.currentmenu == "secondarymatte" or lsc.currentmenu == "secondarymetal") then
  1742. if button.colorindex == vehiclecol[2] then
  1743. drawMenuOwned(lsc.menu.x,y,selected)
  1744. else
  1745. drawMenuCost(button,lsc.menu.x,y,selected)
  1746. end
  1747. elseif (lsc.currentmenu == "primarymetallic") then
  1748. if button.colorindex == vehiclecol[1] and extracol[1] == vehiclecol[2] then
  1749. drawMenuOwned(lsc.menu.x,y,selected)
  1750. else
  1751. drawMenuCost(button,lsc.menu.x,y,selected)
  1752. end
  1753. elseif lsc.currentmenu == "secondarymetallic" then
  1754. if button.colorindex == vehiclecol[2] and extracol[1] == button.colorindex then
  1755. drawMenuOwned(lsc.menu.x,y,selected)
  1756. else
  1757. drawMenuCost(button,lsc.menu.x,y,selected)
  1758. end
  1759. elseif lsc.currentmenu == "wheelcolor" then
  1760. if button.colorindex == extracol[2] then
  1761. drawMenuOwned(lsc.menu.x,y,selected)
  1762. else
  1763. drawMenuCost(button,lsc.menu.x,y,selected)
  1764. end
  1765. elseif lsc.currentmenu == "wheelaccessories" then
  1766. if button.name == "Stock Tires" then
  1767. if GetVehicleModVariation(veh,23) == false then
  1768. drawMenuOwned(lsc.menu.x,y,selected)
  1769. else
  1770. drawMenuCost(button,lsc.menu.x,y,selected)
  1771. end
  1772. elseif button.name == "Custom Tires" then
  1773. if GetVehicleModVariation(veh,23) then
  1774. drawMenuOwned(lsc.menu.x,y,selected)
  1775. else
  1776. drawMenuCost(button,lsc.menu.x,y,selected)
  1777. end
  1778. elseif button.name == "Bulletproof Tires" then
  1779. if GetVehicleTyresCanBurst(veh) == false then
  1780. drawMenuOwned(lsc.menu.x,y,selected)
  1781. else
  1782. drawMenuCost(button,lsc.menu.x,y,selected)
  1783. end
  1784. elseif string.find(button.name:lower(),'smoke') then
  1785. local col = table.pack(GetVehicleTyreSmokeColor(veh))
  1786. if col[1] == button.color[1] and col[2] == button.color[2] and col[3] == button.color[3] then
  1787. drawMenuOwned(lsc.menu.x,y,selected)
  1788. else
  1789. drawMenuCost(button,lsc.menu.x,y,selected)
  1790. end
  1791. end
  1792. elseif lsc.currentmenu == "windows" then
  1793. if windowtint == button.tint then
  1794. drawMenuOwned(lsc.menu.x,y,selected)
  1795. else
  1796. drawMenuCost(button,lsc.menu.x,y,selected)
  1797. end
  1798. else
  1799. drawMenuCost(button,lsc.menu.x,y,selected)
  1800. end
  1801. end
  1802. y = y + 0.04
  1803. if selected then
  1804. if (lsc.currentmenu == "primaryclassic" or lsc.currentmenu == "primarychrome" or lsc.currentmenu == "primarymatte" or lsc.currentmenu == "primarymetal" or lsc.currentmenu == "primarymetallic") then
  1805. if button.colorindex ~= nil then
  1806. if lsc.currentmenu == "primarymetallic" then
  1807. SetVehicleColours(veh,button.colorindex,vehiclecol[2])
  1808. SetVehicleExtraColours(veh, vehiclecol[2], extracol[2])
  1809. else
  1810. SetVehicleColours(veh,button.colorindex,vehiclecol[2])
  1811. end
  1812. end
  1813. end
  1814. if (lsc.currentmenu == "secondaryclassic" or lsc.currentmenu == "secondarychrome" or lsc.currentmenu == "secondarymatte" or lsc.currentmenu == "secondarymetal" or lsc.currentmenu == "secondarymetallic") then
  1815. if button.colorindex ~= nil then
  1816. if lsc.currentmenu == "secondarymetallic" then
  1817. SetVehicleColours(veh,vehiclecol[1],button.colorindex)
  1818. SetVehicleExtraColours(veh, button.colorindex, extracol[2])
  1819. else
  1820. SetVehicleColours(veh,vehiclecol[1],button.colorindex)
  1821. end
  1822. end
  1823. end
  1824. if (lsc.currentmenu == "wheelcolor") then
  1825. if button.colorindex ~= nil then
  1826. SetVehicleExtraColours(veh, extracol[1], button.colorindex)
  1827. end
  1828. end
  1829. if lsc.currentmenu == "horn" or lsc.currentmenu == "roof" or lsc.currentmenu == "suspension" or lsc.currentmenu == "horns" or lsc.currentmenu == "hood" or lsc.currentmenu == "grille" or lsc.currentmenu == "rollcage" or lsc.currentmenu == "exhaust" or lsc.currentmenu == "skirts" or lsc.currentmenu == "rearbumper" or lsc.currentmenu == "frontbumper" or lsc.currentmenu == "spoiler" then
  1830. SetVehicleMod(veh, button.modtype, button.mod)
  1831.  
  1832. end
  1833. if lsc.currentmenu == "sport" or lsc.currentmenu == "muscle" or lsc.currentmenu == "lowrider" or lsc.currentmenu == "backwheel" or lsc.currentmenu == "frontwheel" or lsc.currentmenu == "highend" or lsc.currentmenu == "suv" or lsc.currentmenu == "offroad" or lsc.currentmenu == "tuner" then
  1834. SetVehicleMod(veh, button.modtype, button.mod)
  1835. end
  1836.  
  1837. if lsc.currentmenu == "fenders" then
  1838. if button.mod == -1 then
  1839. SetVehicleMod(veh, 8, button.mod)
  1840. SetVehicleMod(veh, 9, button.mod)
  1841. else
  1842. SetVehicleMod(veh, button.modtype, button.mod)
  1843. end
  1844. end
  1845.  
  1846. if lsc.currentmenu == "horn" then
  1847. if horn ~= button.name then
  1848. horn = button.name
  1849. end
  1850. end
  1851. if lsc.currentmenu == "windows" then
  1852. SetVehicleWindowTint(veh, button.tint)
  1853. end
  1854. if lsc.currentmenu == "neoncolor" then
  1855. SetVehicleNeonLightsColour(veh,button.color[1],button.color[2],button.color[3])
  1856. end
  1857. if lsc.currentmenu == "plate" then
  1858. SetVehicleNumberPlateTextIndex(veh,button.plateindex)
  1859. end
  1860. end
  1861. if selected and IsControlJustPressed(1,201) then
  1862. TriggerServerEvent('lscustoms:payGarage', button)
  1863. --ButtonSelected(button)
  1864. end
  1865. end
  1866. end
  1867.  
  1868. end
  1869. if lsc ~= nil and lsc.inside then
  1870. if IsControlJustPressed(1,202) then
  1871. Back()
  1872. end
  1873. if IsControlJustReleased(1,202) then
  1874. backlock = false
  1875. end
  1876. if IsControlJustPressed(1,188) then
  1877. if lsc.selectedbutton > 1 then
  1878. lsc.selectedbutton = lsc.selectedbutton -1
  1879. if buttoncount > 10 and lsc.selectedbutton < lsc.menu.from then
  1880. lsc.menu.from = lsc.menu.from -1
  1881. lsc.menu.to = lsc.menu.to - 1
  1882. end
  1883. end
  1884. end
  1885. if IsControlJustPressed(1,187)then
  1886. if lsc.selectedbutton < buttoncount then
  1887. lsc.selectedbutton = lsc.selectedbutton +1
  1888. if buttoncount > 10 and lsc.selectedbutton > lsc.menu.to then
  1889. lsc.menu.to = lsc.menu.to + 1
  1890. lsc.menu.from = lsc.menu.from + 1
  1891. end
  1892. end
  1893. end
  1894. end
  1895.  
  1896. end
  1897. end)
  1898.  
  1899.  
  1900. function ButtonSelected(button)
  1901. local ped = GetPlayerPed(-1)
  1902. local car = GetVehiclePedIsUsing(ped)
  1903. if lsc.currentmenu == "repair" then
  1904. if button.name == "Repair vehicle" then
  1905. SetVehicleFixed(car)
  1906. OpenMenu('main')
  1907. end
  1908. elseif lsc.currentmenu == "main" then
  1909. if button.name == "Respray" then
  1910. OpenMenu("respray")
  1911. elseif button.name == "Armor" then
  1912. SetVehicleModKit(car,0)
  1913. OpenMenu("armor")
  1914. elseif button.name == "Brakes" then
  1915. SetVehicleModKit(car,0)
  1916. OpenMenu("brakes")
  1917. elseif button.name == "Bumpers" then
  1918. SetVehicleModKit(car,0)
  1919. OpenMenu("bumpers")
  1920. elseif button.name == "Engine" then
  1921. SetVehicleModKit(car,0)
  1922. OpenMenu("engine")
  1923. elseif button.name == "Exhaust" then
  1924. SetVehicleModKit(car,0)
  1925. OpenMenu("exhaust")
  1926. elseif button.name == "Fenders" then
  1927. SetVehicleModKit(car,0)
  1928. OpenMenu("fenders")
  1929. elseif button.name == "Hood" then
  1930. SetVehicleModKit(car,0)
  1931. OpenMenu("hood")
  1932. elseif button.name == "Horn" then
  1933. SetVehicleModKit(car,0)
  1934. OpenMenu("horn")
  1935. elseif button.name == "Lights" then
  1936. SetVehicleModKit(car,0)
  1937. OpenMenu("lights")
  1938.  
  1939. elseif button.name == "Roll Cage" then
  1940. SetVehicleModKit(car,0)
  1941. OpenMenu("rollcage")
  1942. elseif button.name == "Roof" then
  1943. SetVehicleModKit(car,0)
  1944. OpenMenu("roof")
  1945. elseif button.name == "Skirts" then
  1946. SetVehicleModKit(car,0)
  1947. OpenMenu("skirts")
  1948. elseif button.name == "Spoiler" then
  1949. SetVehicleModKit(car,0)
  1950. OpenMenu("spoiler")
  1951. elseif button.name == "Suspension" then
  1952. SetVehicleModKit(car,0)
  1953. OpenMenu("suspension")
  1954. elseif button.name == "Transmission" then
  1955. SetVehicleModKit(car,0)
  1956. OpenMenu("transmission")
  1957. elseif button.name == "Plate" then
  1958. SetVehicleModKit(car,0)
  1959. OpenMenu("plate")
  1960. elseif button.name == "Horn" then
  1961. SetVehicleModKit(car,0)
  1962. OpenMenu("horn")
  1963. elseif button.name == "Grille" then
  1964. SetVehicleModKit(car,0)
  1965. OpenMenu("grille")
  1966. elseif button.name == "Turbo" then
  1967. SetVehicleModKit(car,0)
  1968. OpenMenu("turbo")
  1969. elseif button.name == "Chassis" then
  1970. SetVehicleModKit(car,0)
  1971. OpenMenu("chassis")
  1972. elseif button.name == "Wheels" then
  1973. SetVehicleModKit(car,0)
  1974. OpenMenu("wheels")
  1975. elseif button.name == "Windows" then
  1976. SetVehicleModKit(car,0)
  1977. OpenMenu("windows")
  1978. end
  1979. elseif lsc.currentmenu == "respray" then
  1980. if button.name == "Primary Color" then
  1981. OpenMenu("primarycolor")
  1982. elseif button.name == "Secondary Color" then
  1983. OpenMenu("secondarycolor")
  1984. end
  1985. elseif lsc.currentmenu == "primarycolor" then
  1986. if button.name == "Chrome" then
  1987. OpenMenu("primarychrome")
  1988. elseif button.name == "Classic" then
  1989. OpenMenu("primaryclassic")
  1990. elseif button.name == "Matte" then
  1991. OpenMenu("primarymatte")
  1992. elseif button.name == "Metals" then
  1993. OpenMenu("primarymetal")
  1994. elseif button.name == "Metallic" then
  1995. OpenMenu("primarymetallic")
  1996. end
  1997. elseif lsc.currentmenu == "secondarycolor" then
  1998. if button.name == "Chrome" then
  1999. OpenMenu("secondarychrome")
  2000. elseif button.name == "Classic" then
  2001. OpenMenu("secondaryclassic")
  2002. elseif button.name == "Matte" then
  2003. OpenMenu("secondarymatte")
  2004. elseif button.name == "Metals" then
  2005. OpenMenu("secondarymetal")
  2006. elseif button.name == "Metallic" then
  2007. OpenMenu("secondarymetallic")
  2008. end
  2009. elseif lsc.currentmenu == "primarychrome" then
  2010. vehiclecol[1] = button.colorindex
  2011. elseif lsc.currentmenu == "primaryclassic" then
  2012. vehiclecol[1] = button.colorindex
  2013. elseif lsc.currentmenu == "primarymatte" then
  2014. vehiclecol[1] = button.colorindex
  2015. elseif lsc.currentmenu == "primarymetal" then
  2016. vehiclecol[1] = button.colorindex
  2017. elseif lsc.currentmenu == "primarymetallic" then
  2018. vehiclecol[1] = button.colorindex
  2019. extracol[1] = vehiclecol[2]
  2020. elseif lsc.currentmenu == "secondarychrome" then
  2021. vehiclecol[2] = button.colorindex
  2022. elseif lsc.currentmenu == "secondaryclassic" then
  2023. vehiclecol[2] = button.colorindex
  2024. elseif lsc.currentmenu == "secondarymatte" then
  2025. vehiclecol[2] = button.colorindex
  2026. elseif lsc.currentmenu == "secondarymetal" then
  2027. vehiclecol[2] = button.colorindex
  2028. elseif lsc.currentmenu == "secondarymetallic" then
  2029. extracol[1] = button.colorindex
  2030. vehiclecol[2] = button.colorindex
  2031. elseif lsc.currentmenu == "bumpers" then
  2032. if button.name == "Front Bumpers" then
  2033. OpenMenu("frontbumper")
  2034. elseif button.name == "Rear Bumpers" then
  2035. OpenMenu("rearbumper")
  2036. end
  2037. elseif lsc.currentmenu == "lights" then
  2038. if button.name == "Headlights" then
  2039. SetVehicleModKit(car,0)
  2040. OpenMenu('headlights')
  2041. elseif button.name == "Neon Kits" then
  2042. OpenMenu('neonkits')
  2043. end
  2044. elseif lsc.currentmenu == "neonkits" then
  2045. if button.name == "Neon Layout" then
  2046. OpenMenu('neonlayout')
  2047. elseif button.name == "Neon Color" then
  2048. OpenMenu('neoncolor')
  2049. end
  2050. elseif lsc.currentmenu == "headlights" then
  2051. if button.name == "Stock Lights" then
  2052. ToggleVehicleMod(car, 22, false)
  2053.  
  2054. elseif button.name == "Xenon Lights" then
  2055. ToggleVehicleMod(car, 22, true)
  2056. end
  2057. elseif lsc.currentmenu == "plate" then
  2058. plateindex = button.plateindex
  2059. elseif lsc.currentmenu == "chassis" or lsc.currentmenu == "armor" or lsc.currentmenu == "brakes" or lsc.currentmenu == "frontbumper" or lsc.currentmenu == "rearbumper" or lsc.currentmenu == "engine" or lsc.currentmenu == "exhaust" or lsc.currentmenu == "hood" or lsc.currentmenu == "horn" or lsc.currentmenu == "rollcage" or lsc.currentmenu == "roof" or lsc.currentmenu == "skirts" or lsc.currentmenu == "spoiler" or lsc.currentmenu == "suspension" or lsc.currentmenu == "transmission" or lsc.currentmenu == "grille" or lsc.currentmenu == "horn" then
  2060. mods[button.modtype].mod = button.mod
  2061. SetVehicleMod(car,button.modtype,button.mod)
  2062. elseif lsc.currentmenu == "fenders" then
  2063. if button.name == "None" then
  2064. mods[8].mod = button.mod
  2065. mods[9].mod = button.mod
  2066. SetVehicleMod(car,9,button.mod)
  2067. SetVehicleMod(car,8,button.mod)
  2068. else
  2069. mods[button.modtype].mod = button.mod
  2070. SetVehicleMod(car,button.modtype,button.mod)
  2071. end
  2072. elseif lsc.currentmenu == "turbo" then
  2073. if button.name == "None" then
  2074. ToggleVehicleMod(car, button.modtype, false)
  2075.  
  2076. elseif button.name == "Turbo Tuning" then
  2077. ToggleVehicleMod(car, button.modtype, true)
  2078. end
  2079. elseif lsc.currentmenu == "wheels" then
  2080. if button.name == "Wheel Type" then
  2081. OpenMenu('wheeltype')
  2082. elseif button.name == "Wheel Color" then
  2083. OpenMenu('wheelcolor')
  2084. elseif button.name == "Wheel Accessories" then
  2085. SetVehicleModKit(car,0)
  2086. OpenMenu("wheelaccessories")
  2087. end
  2088. elseif lsc.currentmenu == "wheeltype" then
  2089. if button.name == "Stock" then
  2090. SetVehicleWheelType(car,-1)
  2091. elseif button.name == "Front Wheel" then
  2092. SetVehicleWheelType(car,button.wtype)
  2093. OpenMenu("frontwheel")
  2094. elseif button.name == "Back Wheel" then
  2095. SetVehicleWheelType(car,button.wtype)
  2096. OpenMenu("backwheel")
  2097. else
  2098. SetVehicleWheelType(car,button.wtype)
  2099. OpenMenu(button.name:lower())
  2100. end
  2101. elseif lsc.currentmenu == "sport" or lsc.currentmenu == "muscle" or lsc.currentmenu == "lowrider" or lsc.currentmenu == "backwheel" or lsc.currentmenu == "frontwheel" or lsc.currentmenu == "highend" or lsc.currentmenu == "suv" or lsc.currentmenu == "offroad" or lsc.currentmenu == "tuner" then
  2102. wheeltype = button.wtype
  2103. mods[button.modtype].mod = button.mod
  2104. SetVehicleMod(car,button.modtype,button.mod)
  2105. elseif lsc.currentmenu == "wheelcolor" then
  2106. extracol[2] = button.colorindex
  2107. elseif lsc.currentmenu == "windows" then
  2108. windowtint = button.tint
  2109. elseif lsc.currentmenu == "wheelaccessories" then
  2110. if button.name == "Stock Tires" then
  2111. SetVehicleModKit(car,0)
  2112. SetVehicleMod(car,23,mods[23].mod,false)
  2113. if IsThisModelABike(GetEntityModel(car)) then
  2114. SetVehicleModKit(car,0)
  2115. SetVehicleMod(car,24,mods[24].mod,false)
  2116. end
  2117. elseif button.name == "Custom Tires" then
  2118. SetVehicleModKit(car,0)
  2119. SetVehicleMod(car,23,mods[23].mod,true)
  2120. if IsThisModelABike(GetEntityModel(car)) then
  2121. SetVehicleModKit(car,0)
  2122. SetVehicleMod(car,24,mods[24].mod,true)
  2123. end
  2124. elseif button.name == "Bulletproof Tires" then
  2125. if GetVehicleTyresCanBurst(car) ~= false then
  2126. SetVehicleTyresCanBurst(car,false)
  2127. else
  2128. SetVehicleTyresCanBurst(car,true)
  2129. end
  2130. elseif string.find(button.name:lower(),'smoke') then
  2131. SetVehicleModKit(car,0)
  2132. ToggleVehicleMod(car,20,true)
  2133. SetVehicleTyreSmokeColor(car,button.color[1],button.color[2],button.color[3])
  2134. end
  2135. elseif lsc.currentmenu == "neonlayout" then
  2136. if button.name == "None" then
  2137. SetVehicleNeonLightEnabled(car,0,false)
  2138. SetVehicleNeonLightEnabled(car,1,false)
  2139. SetVehicleNeonLightEnabled(car,2,false)
  2140. SetVehicleNeonLightEnabled(car,3,false)
  2141. SetVehicleNeonLightsColour(car,255,255,255)
  2142. neoncolor[1] = 255
  2143. neoncolor[2] = 255
  2144. neoncolor[3] = 255
  2145. else
  2146. neoncolor[1] = 255
  2147. neoncolor[2] = 255
  2148. neoncolor[3] = 255
  2149. SetVehicleNeonLightsColour(car,255,255,255)
  2150. SetVehicleNeonLightEnabled(car,0,true)
  2151. SetVehicleNeonLightEnabled(car,1,true)
  2152. SetVehicleNeonLightEnabled(car,2,true)
  2153. SetVehicleNeonLightEnabled(car,3,true)
  2154. end
  2155. elseif lsc.currentmenu == "neoncolor" then
  2156. neoncolor[1] = button.color[1]
  2157. neoncolor[2] = button.color[2]
  2158. neoncolor[3] = button.color[3]
  2159. end
  2160. UpdateVehicle(car)
  2161. end
  2162.  
  2163. function OpenMenu(menu)
  2164. lsc.lastmenu = lsc.currentmenu
  2165. if menu == "bumpers" then
  2166. lsc.lastmenu = "main"
  2167. elseif menu ~= "secondarycolor" and stringstarts(menu, "secondary") then
  2168. lsc.lastmenu = "secondarycolor"
  2169. elseif menu ~= "primarycolor" and stringstarts(menu, "primary") then
  2170. lsc.lastmenu = "primarycolor"
  2171. elseif menu == "primarycolor" or menu == "secondarycolor" then
  2172. lsc.lastmenu = "respray"
  2173. elseif menu == "respray" then
  2174. lsc.lastmenu = "main"
  2175. elseif menu == "wheels" then
  2176. lsc.lastmenu = "main"
  2177. elseif menu == "wheeltype" then
  2178. lsc.lastmenu = "wheels"
  2179. elseif menu == "wheelcolor" then
  2180. lsc.lastmenu = "wheels"
  2181. elseif menu == "wheelaccessories" then
  2182. lsc.lastmenu = "wheels"
  2183. elseif menu == "lights" then
  2184. lsc.lastmenu = "main"
  2185. elseif menu == "neonkits" then
  2186. lsc.lastmenu = "lights"
  2187. end
  2188. lsc.menu.from = 1
  2189. lsc.menu.to = 10
  2190. lsc.selectedbutton = 0
  2191. lsc.currentmenu = menu
  2192. end
  2193.  
  2194.  
  2195. function Back()
  2196. if backlock then
  2197. return
  2198. end
  2199. backlock = true
  2200. local ped = GetPlayerPed(-1)
  2201. local car = GetVehiclePedIsUsing(ped)
  2202. if lsc.currentmenu == "main" or lsc.currentmenu == "repair" then
  2203. DriveOutOfGarage(lsc.currentpos.outside)
  2204. elseif lsc.currentmenu == "primarychrome" or lsc.currentmenu == "primaryclassic" or lsc.currentmenu == "primarymatte" or lsc.currentmenu == "primarymetal" then
  2205. SetVehicleColours(car, vehiclecol[1], vehiclecol[2])
  2206. OpenMenu(lsc.lastmenu)
  2207. elseif lsc.currentmenu == "primarymetallic" then
  2208. SetVehicleColours(car, vehiclecol[1], vehiclecol[2])
  2209. SetVehicleExtraColours(car, extracol[1], extracol[2])
  2210. OpenMenu(lsc.lastmenu)
  2211. elseif lsc.currentmenu == "secondarychrome" or lsc.currentmenu == "secondaryclassic" or lsc.currentmenu == "secondarymatte" or lsc.currentmenu == "secondarymetal" then
  2212. SetVehicleColours(car, vehiclecol[1], vehiclecol[2])
  2213. OpenMenu(lsc.lastmenu)
  2214. elseif lsc.currentmenu == "secondarymetallic" then
  2215. SetVehicleColours(car, vehiclecol[1], vehiclecol[2])
  2216. SetVehicleExtraColours(car, extracol[1], extracol[2])
  2217. OpenMenu(lsc.lastmenu)
  2218. elseif lsc.currentmenu == "wheelcolor" then
  2219. SetVehicleExtraColours(car, extracol[1], extracol[2])
  2220. OpenMenu(lsc.lastmenu)
  2221. elseif lsc.currentmenu == "sport" or lsc.currentmenu == "muscle" or lsc.currentmenu == "lowrider" or lsc.currentmenu == "frontwheel" or lsc.currentmenu == "highend" or lsc.currentmenu == "suv" or lsc.currentmenu == "offroad" or lsc.currentmenu == "tuner" then
  2222. SetVehicleWheelType(car,wheeltype)
  2223. SetVehicleMod(car,23,mods[23].mod)
  2224. OpenMenu(lsc.lastmenu)
  2225. elseif lsc.currentmenu == "backwheel" then
  2226. SetVehicleWheelType(car,wheeltype)
  2227. SetVehicleMod(car,24,mods[24].mod)
  2228. OpenMenu(lsc.lastmenu)
  2229. elseif lsc.currentmenu == "spoiler" then
  2230. SetVehicleMod(car,0,mods[0].mod)
  2231. OpenMenu(lsc.lastmenu)
  2232. elseif lsc.currentmenu == "frontbumper" then
  2233. SetVehicleMod(car,1,mods[1].mod)
  2234. OpenMenu(lsc.lastmenu)
  2235. elseif lsc.currentmenu == "rearbumper" then
  2236. SetVehicleMod(car,2,mods[2].mod)
  2237. OpenMenu(lsc.lastmenu)
  2238. elseif lsc.currentmenu == "skirts" then
  2239. SetVehicleMod(car,3,mods[3].mod)
  2240. OpenMenu(lsc.lastmenu)
  2241. elseif lsc.currentmenu == "exhaust" then
  2242. SetVehicleMod(car,4,mods[4].mod)
  2243. OpenMenu(lsc.lastmenu)
  2244. elseif lsc.currentmenu == "rollcage" then
  2245. SetVehicleMod(car,5,mods[5].mod)
  2246. OpenMenu(lsc.lastmenu)
  2247. elseif lsc.currentmenu == "grille" then
  2248. SetVehicleMod(car,6,mods[6].mod)
  2249. OpenMenu(lsc.lastmenu)
  2250. elseif lsc.currentmenu == "hood" then
  2251. SetVehicleMod(car,7,mods[7].mod)
  2252. OpenMenu(lsc.lastmenu)
  2253. elseif lsc.currentmenu == "fenders" then
  2254. SetVehicleMod(car,8,mods[8].mod)
  2255. SetVehicleMod(car,9,mods[9].mod)
  2256. OpenMenu(lsc.lastmenu)
  2257. elseif lsc.currentmenu == "" then
  2258. SetVehicleMod(car,9,mods[9].mod)
  2259. OpenMenu(lsc.lastmenu)
  2260. elseif lsc.currentmenu == "roof" then
  2261. SetVehicleMod(car,10,mods[10].mod)
  2262. OpenMenu(lsc.lastmenu)
  2263. elseif lsc.currentmenu == "horn" then
  2264. SetVehicleMod(car,14,mods[14].mod)
  2265. OpenMenu(lsc.lastmenu)
  2266. elseif lsc.currentmenu == "suspension" then
  2267. SetVehicleMod(car,15,mods[15].mod)
  2268. OpenMenu(lsc.lastmenu)
  2269. elseif lsc.currentmenu == "windows" then
  2270. SetVehicleWindowTint(car, windowtint)
  2271. OpenMenu(lsc.lastmenu)
  2272. elseif lsc.currentmenu == "neoncolor" then
  2273. SetVehicleNeonLightsColour(car,neoncolor[1],neoncolor[2],neoncolor[3])
  2274. OpenMenu(lsc.lastmenu)
  2275. elseif lsc.currentmenu == "plate" then
  2276. SetVehicleNumberPlateTextIndex(car,plateindex)
  2277. OpenMenu(lsc.lastmenu)
  2278. else
  2279. OpenMenu(lsc.lastmenu)
  2280. end
  2281. end
  2282.  
  2283. function stringstarts(String,Start)
  2284. return string.sub(String,1,string.len(Start))==Start
  2285. end
  2286. function AddBlips()
  2287. for i,pos in ipairs(lsc.locations) do
  2288. local blip = AddBlipForCoord(pos.inside.x,pos.inside.y,pos.inside.z)
  2289. SetBlipSprite(blip, 72)
  2290. SetBlipAsShortRange(blip,true)
  2291. end
  2292. end
  2293. --TODO: Event needed to add blips when player is spawned
  2294. local firstspawn = 0
  2295. AddEventHandler('playerSpawned', function(spawn)
  2296. if firstspawn == 0 then
  2297. AddBlips()
  2298. TriggerServerEvent('getGarageInfo')
  2299. firstspawn = 1
  2300. end
  2301. end)
  2302.  
  2303. RegisterNetEvent('lockGarage')
  2304. AddEventHandler('lockGarage', function(tbl)
  2305. for i,garage in ipairs(tbl) do
  2306. lsc.locations[i].locked = garage.locked
  2307. end
  2308. end)
  2309.  
  2310. RegisterNetEvent("lscustoms:buttonSelected")
  2311. AddEventHandler("lscustoms:buttonSelected", function(button)
  2312. ButtonSelected(button)
  2313. end)
  2314.  
  2315. --SAVING VEHICLE COSTUMIZATION
  2316. vehicles = {}
  2317. AddEventHandler('vrp_garages:setVehicle', function(vtype, vehicle)
  2318. vehicles[vtype] = vehicle
  2319. end)
  2320.  
  2321. function UpdateVehicle(car)
  2322. Citizen.CreateThread(function()
  2323. local veh = car
  2324. local vtype = "car"
  2325. local vehicle = ""
  2326. if IsThisModelABike(GetEntityModel(veh)) then
  2327. vtype = "bike"
  2328. end
  2329.  
  2330. vehicle = vehicles[vtype][2]
  2331. SetEntityAsMissionEntity(veh, true, true)
  2332. if DoesEntityExist(veh) then
  2333.  
  2334. local colors = table.pack(GetVehicleColours(veh))
  2335. local extra_colors = table.pack(GetVehicleExtraColours(veh))
  2336. local neoncolor = table.pack(GetVehicleNeonLightsColour(veh))
  2337. local mods = table.pack(GetVehicleMod(veh))
  2338. local smokecolor = table.pack(GetVehicleTyreSmokeColor(veh))
  2339.  
  2340. local plate = GetVehicleNumberPlateText(veh) -- Licence ID
  2341. local plateindex = GetVehicleNumberPlateTextIndex(veh) --
  2342. local primarycolor = colors[1] -- 1rst colour
  2343. local secondarycolor = colors[2] -- 2nd colour
  2344. local pearlescentcolor = extra_colors[1] -- colour type
  2345. local wheelcolor = extra_colors[2] -- wheel colour
  2346. local neoncolor1 = neoncolor[1] -- neon colour 1
  2347. local neoncolor2 = neoncolor[2] -- neon colour 2
  2348. local neoncolor3 = neoncolor[3] -- neon colour 3
  2349. local windowtint = GetVehicleWindowTint(veh) -- Tinted Windows
  2350. local wheeltype = GetVehicleWheelType(veh) -- Wheel Type
  2351. local smokecolor1 = smokecolor[1]
  2352. local smokecolor2 = smokecolor[2]
  2353. local smokecolor3 = smokecolor[3]
  2354. local mods0 = GetVehicleMod(veh, 0)
  2355. local mods1 = GetVehicleMod(veh, 1)
  2356. local mods2 = GetVehicleMod(veh, 2)
  2357. local mods3 = GetVehicleMod(veh, 3)
  2358. local mods4 = GetVehicleMod(veh, 4)
  2359. local mods5 = GetVehicleMod(veh, 5)
  2360. local mods6 = GetVehicleMod(veh, 6)
  2361. local mods7 = GetVehicleMod(veh, 7)
  2362. local mods8 = GetVehicleMod(veh, 8)
  2363. local mods9 = GetVehicleMod(veh, 9)
  2364. local mods10 = GetVehicleMod(veh, 10)
  2365. local mods11 = GetVehicleMod(veh, 11)
  2366. local mods12 = GetVehicleMod(veh, 12)
  2367. local mods13 = GetVehicleMod(veh, 13)
  2368. local mods14 = GetVehicleMod(veh, 14)
  2369. local mods15 = GetVehicleMod(veh, 15)
  2370. local mods16 = GetVehicleMod(veh, 16)
  2371. local mods23 = GetVehicleMod(veh, 23)
  2372. local mods24 = GetVehicleMod(veh, 24)
  2373.  
  2374. if IsToggleModOn(veh,18) then
  2375. turbo = "on"
  2376. else
  2377. turbo = "off"
  2378. end
  2379. if IsToggleModOn(veh,20) then
  2380. tiresmoke = "on"
  2381. else
  2382. tiresmoke = "off"
  2383. end
  2384. if IsToggleModOn(veh,22) then
  2385. xenon = "on"
  2386. else
  2387. xenon = "off"
  2388. end
  2389. if IsVehicleNeonLightEnabled(veh,0) then
  2390. neon0 = "on"
  2391. else
  2392. neon0 = "off"
  2393. end
  2394. if IsVehicleNeonLightEnabled(veh,1) then
  2395. neon1 = "on"
  2396. else
  2397. neon1 = "off"
  2398. end
  2399. if IsVehicleNeonLightEnabled(veh,2) then
  2400. neon2 = "on"
  2401. else
  2402. neon2 = "off"
  2403. end
  2404. if IsVehicleNeonLightEnabled(veh,3) then
  2405. neon3 = "on"
  2406. else
  2407. neon3 = "off"
  2408. end
  2409. if GetVehicleTyresCanBurst(veh) then
  2410. bulletproof = "off"
  2411. else
  2412. bulletproof = "on"
  2413. end
  2414. if GetVehicleModVariation(veh,23) then
  2415. variation = "on"
  2416. else
  2417. variation = "off"
  2418. end
  2419.  
  2420. TriggerServerEvent('lscustoms:UpdateVeh', vehicle, plateindex,primarycolor,secondarycolor,pearlescentcolor,wheelcolor,neoncolor1,neoncolor2,neoncolor3,windowtint,wheeltype,mods0,mods1,mods2,mods3,mods4,mods5,mods6,mods7,mods8,mods9,mods10,mods11,mods12,mods13,mods14,mods15,mods16,turbo,tiresmoke,xenon,mods23,mods24,neon0,neon1,neon2,neon3,bulletproof,smokecolor1,smokecolor2,smokecolor3,variation)
  2421. else
  2422. vRP.notify({"No vehicle found!"})
  2423. end
  2424. end)
  2425. end
  2426.  
  2427. RegisterNetEvent('lscustoms:payGarageFalse')
  2428. AddEventHandler('lscustoms:payGarageFalse', function()
  2429. vRP.notify({"You don't have enough money."})
  2430. end)
  2431.  
  2432. RegisterNetEvent('lscustoms:UpdateDone')
  2433. AddEventHandler('lscustoms:UpdateDone', function()
  2434. vRP.notify({"Vehicle saved."})
  2435. end)
  2436.  
  2437. RegisterNetEvent('lscustoms:StoreVehicleFalse')
  2438. AddEventHandler('lscustoms:StoreVehicleFalse', function()
  2439. vRP.notify({"You don't own this vehicle."})
  2440. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement