Malicious Hero. Posted January 13, 2013 Share Posted January 13, 2013 (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 Download Download available here - https://community.multitheftauto.com/ind ... ls&id=6310 Edited February 5, 2013 by Guest 1 Link to comment
Xeno Posted January 13, 2013 Share Posted January 13, 2013 Holy shit this looks nice. Good job man. The only thing I don't like is that Liverpool shirt! Lmao! Link to comment
Raahim Posted January 14, 2013 Share Posted January 14, 2013 You can change that Looks epic. Well done! Link to comment
Snes Posted January 14, 2013 Share Posted January 14, 2013 very good ______________________________________________________________________________________________________________ Link to comment
manawydan Posted January 14, 2013 Share Posted January 14, 2013 how to open the inventory? Link to comment
Malicious Hero. Posted January 14, 2013 Author Share Posted January 14, 2013 how to open the inventory? Press "i" on your keyboard. Link to comment
manawydan Posted January 17, 2013 Share Posted January 17, 2013 I press "i", but there is no gui. Link to comment
Raahim Posted January 18, 2013 Share Posted January 18, 2013 Is the resource running? Link to comment
Malicious Hero. Posted January 18, 2013 Author Share Posted January 18, 2013 I press "i", but there is no gui. Make sure you have created groups before starting the resource. If you have, check any possible errors through debugscript. Link to comment
J.S. Posted January 19, 2013 Share Posted January 19, 2013 Looks good. Does it have a built-in saving method? Link to comment
Malicious Hero. Posted January 19, 2013 Author Share Posted January 19, 2013 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! Link to comment
manawydan Posted January 27, 2013 Share Posted January 27, 2013 how to create groups? An example please Link to comment
Malicious Hero. Posted January 28, 2013 Author Share Posted January 28, 2013 There are examples featured already in s_resource.lua located in the server folder. Link to comment
manawydan Posted January 29, 2013 Share Posted January 29, 2013 ok. i understand. thanks Link to comment
AJXB Posted February 2, 2013 Share Posted February 2, 2013 this have 2 slots for items in every group too? Link to comment
Malicious Hero. Posted February 2, 2013 Author Share Posted February 2, 2013 this have 2 slots for items in every group too? A group can have an unlimited amount of items. Link to comment
AJXB Posted February 2, 2013 Share Posted February 2, 2013 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 Link to comment
Malicious Hero. Posted February 2, 2013 Author Share Posted February 2, 2013 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? Link to comment
AJXB Posted February 3, 2013 Share Posted February 3, 2013 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"} } Link to comment
Malicious Hero. Posted February 3, 2013 Author Share Posted February 3, 2013 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? Link to comment
AJXB Posted February 3, 2013 Share Posted February 3, 2013 no wait let me fix its not like that Link to comment
AJXB Posted February 3, 2013 Share Posted February 3, 2013 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"} } Link to comment
Malicious Hero. Posted February 3, 2013 Author Share Posted February 3, 2013 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? Link to comment
AJXB Posted February 3, 2013 Share Posted February 3, 2013 addInventoryGroup( "1", "images/groups/1.png" ) addInventoryGroup( "2", "images/groups/2.png" ) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now