Jump to content

[REL] HeroInventory - Inventory System [Groups + More]


Recommended Posts

Posted (edited)

Description

HeroInventory is a new way to expand a roleplay server's features. This resource allows a server to not only archive items; but organize them appropriately! Adding items, and groups are very simple.

Features

  • Ability to organize items into groups.
  • Rather simple to integrate.
  • Ability to support your items with images.
  • Ability to support your groups with images.
  • Ability to easily code what an item does once used.
  • Ability to browse items quickly.

Thanks for being patient.

- Fixed inventory browsing bug.

- Fixed limited inventory bug.

- Fixed inventory grouping bug where items weren't sorted properly.

- Fixed issue where items weren't loading.

- Fixed issue where inventory items simply showed a black box.

- Fixed issue where groups didn't show up randomly.

- Added the ability to drag items to the world.

- Added the ability to pick up items.

- Moved all event related scripts into the "events" folder.

- Added the ability to customize dropped item object IDs, and their coordinates because of object dimensions.

With that being said, an item system has been added to the inventory system. The fixed version is available at the community resource center. If you encounter further bugs, please post here. Please don't PM me about bug encounters, or help setting this up, simply post here. Thanks!

Functions

Functions found here:

https://wiki.multitheftauto.com/wiki/HeroInventory

Screenshots

9842.png

9843.png

Download

Download available here - https://community.multitheftauto.com/ind ... ls&id=6310

Edited by Guest
  • Like 1
Posted

very good

______________________________________________________________________________________________________________

rugalmatandotodomundo.gif

Posted
Looks good. Does it have a built-in saving method?

No. If you were to build a saving method, all you have to consider storing is the element data key "inventory_items". I simply stored all inventory items through a table. It's possible that I might create a built-in saving method, but certain servers who use this resource like things their own way. Good luck!

Posted

when i add the items, i add like ITEM:1-2-3-4-5

1-2=Group1

3-4-5=Group2

It only show 1-2-3-4

and if i do 1-2-3-5-4

it only show 1-2-3-5

Posted
when i add the items, i add like ITEM:1-2-3-4-5

1-2=Group1

3-4-5=Group2

It only show 1-2-3-4

and if i do 1-2-3-5-4

it only show 1-2-3-5

Sounds like either a script error, or a problem you've made in g_items.lua. Can you post your g_items.lua here?

Posted
itemArchive =  
{  
  {"images/items/1.png", "1", "1"},{"images/items/2.png","2", "2"},{"images/items/3.png","3", "3"},{"images/items/4.png","4", "4"},{"images/items/5.png","5", "5"} 
} 

Posted
itemArchive =  
{  
  {"images/items/1.png", "1", "1"},{"images/items/2.png","2", "2"},{"images/items/3.png","3", "3"},{"images/items/4.png","4", "4"},{"images/items/5.png","5", "5"} 
} 

The inventory group names you've linked to the items are called: "1", "2", "3", "4", and "5"? If that's the case, all your items should be separated into five separate groups?

Posted
    itemArchive = 
    { 
      {"images/items/1.png", "1", "1"},{"images/items/2.png","2", "1"},{"images/items/3.png","3", "2"},{"images/items/4.png","4", "2"},{"images/items/5.png","5", "2"} 
    } 

Posted
    itemArchive = 
    { 
      {"images/items/1.png", "1", "1"},{"images/items/2.png","2", "1"},{"images/items/3.png","3", "2"},{"images/items/4.png","4", "2"},{"images/items/5.png","5", "2"} 
    } 

Can you show me the code where you created the inventory groups?

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...