Nil value error truck inventory


I can store items in the trunk of vehicles, but I some items I cant get out (coke leaves, phone etc), I get the following message:

The lines are:

Menu dialog line:
menu.submit(data, menu)

Trunk line:
if tonumber(PlayerData.inventory[i].limit) < tonumber(PlayerData.inventory[i].count) + quantity and PlayerData.inventory[i].limit ~= -1 then

I really hope someone would have time to help me, every affords are much appreciated!


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.