Weed Rolling V2
Install and helpful information for Weed Rolling V2
Installation
Download the script from keymaster and place it anywhere in your server resources folder. Make sure you also have ox_lib installed as well: https://github.com/overextended/ox_lib/releases
Go to the "install" folder inside of the "dcweedroll" folder. Drag the images into your inventory images folder. Copy and paste the items depending on your inventory (ox.lua for ox_inventory, qb.lua for qbcore items.lua).
Open the config.lua file and set your options to your needs.
Conversions
Next we have the optional conversions section.
This section will control whether or not the items needed to roll up will be regular whole item packs or if they will be used as items that will hold other items inside.
So in this example, instead of the dc_smackwoodsbanana item being an item used to roll with, it is used as a package item instead which holds 5 dc_backwood items. When player uses the dc_smackwoodsbanana item it will give 5 dc_backwoods to player and the script would be using the dc_backwood items as rollup items instead. Only if Config.UseConversions = true.
Rollable Items
If Config.UseConversions = false then it will use the Config.RollableItems table to check for items that can be used to roll up with. If Config.UseConversions = true then it will use the Config.ConversionRollableItems table. The script will populate a context menu based on the items player has in their inventory. The items are categorized into sections:
Backwoods
Joints
Blunts
Grabba
Usable Items Section
Next we have the Config.UsableItems section. This section controls the item name that will be used to initiate the whole rolling process.
Here we have the usable item which is 'dc_ak47bag' this is also the name of the weed bag prop for this item. We also have the different categories and what each category will give player once rolling is complete. These items can be changed to whatever you want. But if you want to see the weed bag prop then the item name at top needs to stay the same. You can also specify how many of each item player will receive after rolling up.
Last updated