Posted 02 August 2017 - 06:41 AM
Resolved, Please delete/ignore
Edited on 02 August 2017 - 08:29 PM
local inv = pim.inventoryGetterFunctionThingy()
if inv then
-- Sift through the inv table and do stuff.
.
.
.
Odds are you're calling a function which returns nil, and then trying to index into that result as if it were a table. You probably want to do something like this:local inv = pim.inventoryGetterFunctionThingy() if inv then -- Sift through the inv table and do stuff. . . .
Of course, it's difficult to be specific about the problem without seeing your code or the actual error it throws.
Ok, This has been resolved, I'm just stupid and found the really easy answer.