The problem is on the client side code (src: cl_hob.lua)
net.Receive("HobNetMsg", function(len)
local Queue = {}
Queue = net.ReadTable()
for I = 1 , #Queue do
local index = Queue[I]["index"]
for Key , Value in pairs(Queue[I]) do
HBeamTable[index][Key] = Value
end
end
end)
The code is supposed to take net messages from my server side code hob.lua which contains a table of all the updates I want to make to the client side table HBeamTable. what the above code is supposed to do is look at the recived table, and then based on whats in there update the relevent tables in the main table with the new data.
The new data does not have to contain information for every single field, but the main table Must have a full set of data for every index otherwise the render function breaks.
however the code above outputs an error:
/cl_hob.lua:16: attempt to index a nil value
I don't see any obvious problems with the above code so that error is really confusing...