About Drug Deals
Transform your Rust server with an immersive, player-driven drug economy! This plugin introduces a thrilling and profitable new gameplay mechanic where players can dive into the drug trade.
Here’s how it works:
- Seed Purchase: Players can buy seeds for various "drugs" (e.g., weed, cocaine, tobacco, and opium) from any computer station.
- Seed Delivery: All orders are delivered by a cargo plane to the player's location when they make the purchase.
- Plant & Grow: Seeds must be planted and carefully grown over time.
- Obtaining Drugs: Once mature, players can harvest the drugs from the seeds they planted. The number of drugs they get depends on the plant's genetics.
- Selling Drugs: Players sell the drugs back to the Drug Dealer NPC or trade with other players, creating a new avenue for in-game profit.
Features:
- Ability to configure the number of drugs player receives when harvesting based on the plants genetics (eg. GGYYYY could give more than XXGYH)
- Advertise your server in the UI
- Animals and scientists ignore drug dealer NPC
- Charge players a delivery fee when they buy drugs based on permission
- Choose whether or not a harvested drug can be sold
- Compatible with the Auto Farm plugin by Razor
- Configure the dealers position, what items the dealer is wearing, and the dealer's display name
- Configurable drugs (names, items, skin ids and more)! Want players to get scrap or any other item when harvesting their drugs? Modify that in the config!
- Drug dealer NPC cannot be killed
- Discord logs when player purchases drugs
- Discord logs when player sells drugs
- Multiple currency options supported: economics, server rewards, custom items
- Option to lock drops to the player that bought it
- Option to require custom item to access the black market
- Option for keycards to lose condition (similar to being swiped) if black market item
- Option to not spawn the dealer
- Packaging of drugs before selling
- Plants must be fully grown (ripe) before they can be harvested
- Random dealer spawn points
- Visually see teammates and clanmates planters with drugs in them
- Vending machine map marker to show the dealer's position on the map
- See config for more customizable features
Drugs:
-
This plugin comes with 4 default drug seeds, drug items, and drug clones provided by DrugsAPI.
-
Drug Seeds:
- Weed Seeds
- Coca Seeds
- Tobacco Seeds
- Poppy Seeds
-
Drug Items:
- Weed Leaf
- Cocaine Leaf
- Tobacco Leaf
- Opium Leaf
-
Drug Clones:
- Weed Clone
- Cocaine Clone
- Tobacco Clone
- Opium Clone
-
Drug Seeds:
- Don't like those options or want to add your own? You can do that in the DrugsAPI config, but you will need to add the image for them to ImageLoaderAPI to display in the UI.
Chat Commands
- /mydrugs - shows planter boxes and drugs belonging to player and their teammates / clanmates
Chat Commands (for admin only):
- /adddealerpos <dealer name> - sets player's position as the dealer's spawn point and saves to config
Console Commands (for admin only):
- givedrugseed <steamid> <drug item display name> <amount> - gives the player the specified drug seed (from config)
- givedrug <steamid> <drug item display name> <amount> - gives the player the specified drug item (from config)
- giveblackmarketitem <steamid> - gives player the item required to access the black market
- givewrappingpaper <steamid> <amount> - gives player x amount of wrapping paper used to package drugs
Config:
{
"Black Market Settings": {
"Require item to access black market": false,
"Black market item display name": "Black Market Item",
"Black market item shortname": "keycard_red",
"Black market item skin ID": 0,
"Black market item condition loss per swipe (if keycard). Default = 1": 1
},
"Delivery Fee Settings": [
{
"Delivery fees": {
"Key": "drugdeals.fee1",
"Value": 10
}
},
{
"Delivery fees": {
"Key": "drugdeals.fee2",
"Value": 20
}
},
{
"Delivery fees": {
"Key": "drugdeals.fee3",
"Value": 30
}
}
],
"Discord Settings": {
"Use discord webhook": false,
"Discord webhook url": "https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks",
"Timezone ID for message timestamp": "America/Chicago",
"Embed color": 65280
},
"Dealer Settings": [
{
"Enabled [true/false]": true,
"Dealer name": "Drug Dealer",
"Dealer locations": [
"(0,0,0)",
"(0,0,0)"
],
"Dealer clothes": [
{
"Item shortname": "hoodie",
"Skin ID": 0
},
{
"Item shortname": "pants",
"Skin ID": 0
},
{
"Item shortname": "shoes.boots",
"Skin ID": 0
}
]
}
],
"Dealer Movement Interval [min.]": 30.0,
"Payment Settings": {
"Currency [economics/rp/custom]": "custom",
"Order confirmation message": "Order Confirmed! It will be delivered shortly.",
"Custom currency": {
"Custom currency item shortname": "scrap",
"Custom currency item skin ID": 0,
"Custom currency item display name": "Scrap",
"Custom currency item image": "scrap"
}
},
"UI Settings": {
"Buy UI server name / adversisement": "SERVER NAME OR ADVERTISEMENT",
"Sell UI server name / adversisement": "SERVER NAME OR ADVERTISEMENT"
},
"Plane Settings": {
"Plane speed": 20.0
},
"Drop Settings": {
"Drop speed": 0.6,
"Item slots in drop": 18,
"Lock drop to owner": true,
"Message to locked out player": "This does not belong to you."
},
"Item Purchase Prices": {
"Weed Seeds": 200,
"Coca Seeds": 300,
"Tobacco Seeds": 400,
"Poppy Seeds": 600
},
"Required Drugs Per Package": {
"Weed Leaf": 15,
"Cocaine Leaf": 20,
"Tobacco Leaf": 25,
"Opium Leaf": 30
},
"Drug Sell Prices": {
"Packaged Weed": 150,
"Packaged Cocaine": 275,
"Packaged Tobacco": 450,
"Packaged Opium": 650
},
"Planter Display Settings": {
"Display duration [sec.]": 10.0
},
"Configuration version": {
"Major": 2,
"Minor": 0,
"Patch": 0
}
}
Notes:
- This plugin uses a separate plugin of mine called ImageLoaderAPI (included) to host/display all the images.
- To display your images in the UI, all you need to do is drop the image in the oxide/data/ImageLoaderAPI folder (create it if it doesn't exist) and specify the image name in the DrugDeals config for the drug seed or drug item you want to use it for. If you need help, just ask.
- Recommended image size for is 100x100 pixels. Feel free to use other sizes if you want.
- If you don't want a dealer to spawn, just set "Enabled [true/false]": false for each dealer
- THIS PLUGIN WORKS WITH AUTO FARM
Thank you for considering to support me, I really do appreciate it. If you have any suggestions on how to improve this product, please do not hesitate to reach out!