for i,v in ipairs(dane) do guiComboBoxAddItem(pojazdy,"["..tostring(v.id).."] "..tostring(getVehicleNameFromModel(v.model))) end end
local a=guiComboBoxGetSelected(pojazdy) if not a then return end local aid = tonumber(guiComboBoxGetItemText(pojazdy, a))