• How to make things not pocket able? (DarkRp)
    2 replies, posted
Can someone make the plant not pocket able [url]http://www.garrysmod.org/downloads/?a=view&id=99724[/url] Can someone also give me the snippet of code which makes it not pocket able.
Go in the pockets init.lua and add if ent:GetClass("insert_plant_class_here") then return end No spoonfeding from meh.
[QUOTE=Assault_Trooper;25672824]Go in the pockets init.lua and add if ent:GetClass("insert_plant_class_here") then return end No spoonfeding from meh.[/QUOTE] Adding onto what he said, go to line 53 in darkrp/entities/weapons/pocket/shared.lua You'll find this [LUA]local blacklist = {"fadmin_jail", "drug_lab", "money_printer", "meteor", "microwave", "door", "func_", "player", "beam", "worldspawn", "env_", "path_", "spawned_shipment", "darkrp_console"} [/LUA] Just add weed_plant into the list [LUA] local blacklist = {"fadmin_jail", "drug_lab", "weed_plant", "money_printer", "meteor", "microwave", "door", "func_", "player", "beam", "worldspawn", "env_", "path_", "spawned_shipment", "darkrp_console"} [/LUA]
Sorry, you need to Log In to post a reply to this thread.