Jump to content

Recommended Posts

Posted

I was following the project Saturn tutorials on how to create an in game inventory.

And I followed it doing exactly what he said but I get an error.

76 : attempt to index local 'currentItem' (a boolean value)

 

Can someone please help?

I'll attach the 2 scripts I am using.

 

Also here are the links to the tutorial vids in case it helps.

http://steamcommunity.com/sharedfiles/filedetails/?id=319799499

Inventory.lua

InventoryItem.lua

Posted

You are setting self.items = true which is boolean, instead of self.items = item wink.png

  • Upvote 1

---

Scott

 

Using Windows 7 Ultimate 64 bit/Core I7-2700K @ 4312mhz/24G RAM/Nvidia GTX 1060

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...