Nexus# Posted August 8, 2016 Share Posted August 8, 2016 Hola, tengo un problema al crear categorias a mi sistema de vehiculos quiero crear categorias como Rapidos, Fuertes Deportivos, 4 Puertas, etc. Pero no puedo lograr hacerlo aqui dejo una foto de como lo tengo y el client-side del Script. Foto: Client-Side carshopWindow = guiCreateWindow(41, 56, 442, 426, "Venta de Autos", false) guiWindowSetSizable(carshopWindow, false) guiSetVisible(carshopWindow, false) guiSetAlpha(carshopWindow, 1.00) carGridList = guiCreateGridList(13, 28, 188, 383, false, carshopWindow) guiGridListAddColumn(carGridList, "Vehiculo", 0.5) guiGridListAddColumn(carGridList, "Costo $", 0.5) for i = 1, 2 do guiGridListAddRow(carGridList) end guiGridListSetItemText(carGridList, 0, 1, "Rapidos", true, true) guiGridListSetItemText(carGridList, 0, 2, "", true, true) guiGridListSetItemText(carGridList, 1, 1, "Fuertes", true, true) guiGridListSetItemText(carGridList, 1, 2, "", true, true) buyButto = guiCreateButton(225, 275, 184, 46, "Comprar", false, carshopWindow) guiSetFont(buyButto, "default-bold-small") guiSetProperty(buyButto, "NormalTextColour", "FFAAAAAA") closeButton = guiCreateButton(225, 359, 184, 42, "Cerrar", false, carshopWindow) guiSetFont(closeButton, "default-bold-small") guiSetProperty(closeButton, "NormalTextColour", "FFAAAAAA") guiLabelSetVerticalAlign(placa, "center") colorButton = guiCreateButton(225, 62, 184, 46, "Elegir Color", false, carshopWindow) guiSetFont(colorButton, "default-bold-small") guiSetProperty(colorButton, "NormalTextColour", "FFAAAAAA") ------------- local cars = { {411, 1000000} } for i, v in ipairs(cars) do local carName = getVehicleNameFromModel(v[1]) local row = guiGridListAddRow(carGridList) guiGridListSetItemText(carGridList, row, 1, carName, false, true) guiGridListSetItemText(carGridList, row, 2, tostring(v[2]), false, true) guiGridListSetItemText(carGridList, row, 3, "N/A", false, true) end guiGridListSetSelectedItem(carGridList, 64, 1) guiSetAlpha(carGridList, 1) Link to comment
Recommended Posts