I am storing a table in a GBC data cabinet like this:
cabinet = GBCDataCabinet.set("Cabinet1","shipInfo",{ ["ship1"] = {0,false,100}, ["ship2"] = {0,false,200}, ["ship3"] = {0,false,300}, ["ship4"] = {0,false,400}, ["ship5"] = {0,false,500}, ["ship6"] = {0,false,600}, ["ship7"] = {0,false,700}, ["ship8"] = {0,true ,800}})
How would I change one of the “false” values to true? I have found that I can access values with something like this:
local t = GBCDataCabinet.get("Cabinet1","shipInfo") entry.price = t[entry.imageName][3]
but how do I modify this value?