Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

TakeInvSlot Function Fix


Helladen
 Share

Recommended Posts

**Introduction**

This tutorial is to resolve an issue with the inventory not updating properly when you use the function _TakeInvSlot_ in the server.

**Instructions**

Replace your TakeInvSlot function in your server's source with what is provided below. If you notice bugs popping up after doing this, it is likely that there are custom edits done to the function indirectly or directly. This basically adds a new parameter that allows you to update inventory when an item is removed from the player's inventory.

**Script**

[Dropbox](https://dl.dropboxusercontent.com/u/67149765/Eclipse%20Scripts/TakeInvSlot%20Function%20Fix.txt)
Link to comment
Share on other sites

I updated the function. Removing update inventory caused a problem with trade. I just added a parameter for updating your inventory rather than always updating. This is useful if you write new code and need it remove items from the player's inventory without wanting to send an inventory update every time.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...