Advertisement
Guest User

Untitled

a guest
Jan 31st, 2015
401
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.05 KB | None | 0 0
  1. ItemStore
  2. ===========
  3.  
  4. Thanks for purchasing ItemStore! ItemStore is an inventory addon that aims
  5. to be modular and flexible, allowing server owners to configure it to their
  6. own personal preferences and give their players a customized experience
  7. that works hand in hand with their RP gamemode.
  8.  
  9. This document will provide a couple of important steps critical to setting up
  10. and configuring ItemStore on your server. Please read through it before
  11. opening support tickets or PMing me.
  12.  
  13. I'm always open to feature requests. Minor additions can be done for free,
  14. but it is not a right but rather a privilege, so I won't always be accepting.
  15. Paid jobs to add support for various things are usually NOT accepted,
  16. but sometimes I will be in the mood for it. Don't hesitate to ask.
  17.  
  18. Installtion
  19. =============
  20.  
  21. To install ItemStore, extract it to your server's addons/ directory and restart.
  22.  
  23. To add the large and small containers to your F4 menu, add these AddEntity definitions
  24. to whereever you typical add them:
  25.  
  26. AddEntity( "Large Container", "itemstore_box_large", "models/props/cs_office/Cardboard_box01.mdl", 100, 3, "buylargebox" )
  27. AddEntity( "Small Container", "itemstore_box_small", "models/props/cs_office/Cardboard_box02.mdl", 200, 3, "buysmallbox" )
  28.  
  29. If ItemStore isn't loading on your server, rename the addon folder to something all
  30. lowercase, for example, "itemstore" instead of "ItemStore".
  31.  
  32. If you're running DarkRP 2.4, make sure to go into lua/itemstore/config.lua and change
  33. itemstore.config.Gamemode from "darkrp25" to "darkrp24".
  34.  
  35. For MySQL setup, refer to mysqlsetup.txt, located in the same folder as this readme.
  36.  
  37. Configuration
  38. ===============
  39.  
  40. There is a configuration file located in lua/itemstore/config.lua. All settings are
  41. documented in that file.
  42.  
  43. Additionally, here's a list of CVars. Change these by entering the command in your server's
  44. console followed by the value you wish to change it to.
  45.  
  46. itemstore_box_small_w: The width of the small box's inventory
  47. itemstore_box_small_h: The height of the small box's inventory
  48. itemstore_box_large_w: The width of the large box's inventory
  49. itemstore_box_large_h: The height of the small box's inventory
  50. itemstore_box_breakable: Setting this to 1 will make boxes breakable. 0 by default.
  51. itemstore_trading: Setting this to 0 will disable trading
  52. itemstore_dropondeath: Setting this to 1 will cause the player to drop their entire inventory into a box when they die
  53. itemstore_dropondeath_linger: The amount of time in minutes that the death box should remain on the map
  54. itemstore_inventory_persist: If set to 1, player's inventories will persist between sessions (rejoins, map changes, etc).
  55. itemstore_darkrp_ignoreowner: If this is set to 0, players will only be able to pick up their own entities.
  56. itemstore_ctrle: Setting this to 0 will turn off the ctrl + E pickup option. Useful if you have a weapon pack or entity that conflicts.
  57. itemstore_trading_distance: The distance in hammer units that players must be within to trade. 0 means players can trade anywhere on the map.
  58. itemstore_trading_cooldown: The time in seconds that players must wait before initiating another trade.
  59.  
  60. You may need to restart your server for some of these to take effect.
  61.  
  62. Adding Entities to the Inventory
  63. ==================================
  64.  
  65. If you want to add support for an entity to the inventory, please run
  66. lua/itemstore/items/_Add New Item_.bat. This file will walk you through the process of
  67. adding support to mostly any entity that would otherwise work with the duplicator.
  68.  
  69. If the entity still does not work properly (creates lua errors when interacted with in
  70. the inventory, etc), then you may have to code your own item definition.
  71.  
  72. Have a look at lua/itemstore/items/spawned_weapon.lua. This is the definition file for
  73. DarkRP's spawned_weapon and contains plenty of examples of how the inventory functions
  74. and manages its items internally.
  75.  
  76. Please do not PM me for support for items you have created. PMing me for support for
  77. making an item is okay, but don't expect me to hand you a completed item definition.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement