UIS Inventory
Posted: Fri May 13, 2022 4:21 am
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!
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!