You want all cars from the game to be in gridList??
local car_c = guiCreateGridList ( 0.80, 0.10, 0.15, 0.60, true )
local cars = getElementsByType("vehicle")
local column = guiGridListAddColumn( car_c, "Cars_id", 0.85 )
for numb, car in iparis(cars) do
local id = getElementModel(car)
local row = guiGridListAddRow ( car_c )
guiGridListSetItemText ( car_c, row, column, id, false, true )
end
Then you just use form from wiki example of gridList to get data from car_id table.
You create server event and trigger it when ID is choosen from gridlist + button clicked