Well I need it to get the selected item from the gridlist then look at a table and get the certain ID. It must then add use that ID as addVehicleUpgrade ID for the vehicle the player is it. I need some guidance on how I am to do this.
GUI:
Vehicle Mods Table:
Here is what I have so far. However, it doesn't work.
function buymod()
local bSelect = guiGridListGetSelectedItem(bodygrid)
outputChatBox(bSelect)
local iData = guiGridListGetItemData(bodygrid, bSelect, bSelect)
outputChatBox(iData)
end