UIS Inventory

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
vectorfrog
Posts: 86
Joined: Mon May 02, 2022 12:16 am

UIS Inventory

Post by vectorfrog »

Hello,

I am trying to figure out how to add something to the players inventory through Dialogue System. I've been trying the uisAddItem Lua function call, but not sure I'm doing something right as I get an exception when the function is called.

Here is the function call:

uisAddItem("Item Name", 1, "", "")

I just need it to go into the players inventory.

Here is the exception I get:

'Tried to invoke a function call on a non-function value. If you're calling a function, is it registered with Lua?'

Any help would be greatly appreciated.

Thanks!
vectorfrog
Posts: 86
Joined: Mon May 02, 2022 12:16 am

Re: UIS Inventory

Post by vectorfrog »

I was able to figure it out. I just needed to do some more reading. Thank you for putting together one of the most complete documentation sites I've seen in a long while. Thank you!
User avatar
Tony Li
Posts: 22149
Joined: Thu Jul 18, 2013 1:27 pm

Re: UIS Inventory

Post by Tony Li »

Thanks!
Post Reply