Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: dxgridlist
1. dxGridlist
Witam, mam taki o to problem z dxgridlistem, ?e jak pobieram np z tabeli text
wygl?da to tak

[lua]Felgi = {
{" Shadow",1073},
{" Mega",1074},
{" Rimshine",1075},
{" Wires",1076},
{" Classic",1077},
{" Twist",1078},
{" Cutter",1079},
{" Switch",1080},
{" Grove",1081},
{" Import",1082},
{" Dollar",1083},

}

function pobierzTabele(player)
local info = {}
for i,fele in ipairs(Felgi) do
table.insert(info,{fele[1],fele[2]})
end
zaladujTabele(info)
end

function zaladujTabele(info)
startDxGridlist(info,_sX+resX(600),_sY+resY(350),resX(800),resY(720),7,resY(2.5),font,"Wyszukaj...")
end

function showDX()
showDxGridlist(100)
end

function utworzGridList()
pobierzTabele()
addEventHandler("onClientRender",root,showDX)
showCursor(true)
end
[/lua]

To normalnie mi wyskakuje w gridliscie nazwy Felg

[img]https://i.imgur.com/Qyn4alz.jpg[/img]

ale jak chce zrobi? ?eby pobra?o co mo?na zamontowa? do danego auto to zadna tabelka w gridliscie nie jest widoczna wygl?da to tak:

[img]https://i.imgur.com/JKA1iZD.jpg[/img]


Kod na pobieranie cz?sci
[lua]

--Client

function pobierzTabele(veh)
tuning = {}
local upgrades = getVehicleCompatibleUpgrades(veh)
for k,v in ipairs (upgrades) do
local slot = getVehicleUpgradeSlotName(v)
if no...