mz-bins
A bin-diving script using XP to alter the sale price a player gets when recovering bin loot
Acquire resource: https://github.com/MrZainRP/mz-bins
Resource features
Some of the items are sellable directly at "Trash 'n Treasure", other items can be broken down or processed into materials for use in crafting and other items have a rare drop rare or a unique purpose.
Dumpster props that can be interacted with (and more props can be added via config),
A crafting location is included, that can be configured in the same way that boxZone locations can be changed by changing the coordinates for the relevant polyzone or PED;
A functioning shop is included- again, the location of which can be changed.
XP modifier via mz-skills applies for successful bin diving, more XP is awarded for successful crafting.
mz-skills modifiers: The benefit of leveling up is that the shop vendor pays higher for bin-dive sellable items. The config.lua explains the multiplier by reference to calling separate configurations. Changing the prices of items that the vendor will purchase will adjust the impact XP will have on the mz-bins progression. Server owners can tailor this to their economic needs. Further, in an RP-based server this can create a separate sub-economy whereby proficient bin divers can not only bin dive for items but might also seek to buy them from players for more than the vendor would pay a low XP player and profit off the margin - encouraging an RP interaction.
Configuring with mz-skills
If you do not already have mz-skills running in your server, ensure that mz-skills forms part of your running scripts.
If this is your first time running mz-skills, be sure to run the "skills.sql" sql file and open the database. (This will add a data table to the existing "players" database which will hold the skill value for "Scraping" as well as other jobs)
For more information see: the mz-skills tab
Adding items to your server - QB-CORE/SHARED/ITEMS.LUA
Add the following items to qb-core/shared/items.lua
ITEM IMAGES - adding images to your inventory resource
Add the images which appear in the "images" folder to your inventory images folder. 44
If using lj-inventory, add the images to: lj-inventory/html/images/
FINALISATION
If you attend to all of the above steps you will need to restart the server in order for the new added items to be recognised by qb-core.
Starting the mz-bins resource without doing this will cause errors.
Please restart your server ensuring that mz-bins is ensured/starts after qb-core starts (ideally it should just form part of your [qb] folder in your server resources).
Last updated