Editing a dumpster addon for darkrp, I am trying to change the weapon spawn type. For some reason the weapon auto picks up and I am unable to change that. Any ideas?
[code] for i = 1, math.random(minimum_amount_items,maximum_amount_items) do
if math.random(1, 200) <= superrareweapon_percentage then
local ent = weapons.Get(table.Random(Dumpster_Items["SuperRareWeapons"]))
ent:SetPos(pos)
ent.nodupe = true
ent:Spawn()[/code]
I'm pretty sure all spawned in weapons will be autopickup.
[QUOTE=danker pepers;50359073]I'm pretty sure all spawned in weapons will be autopickup.[/QUOTE]
Nah I've seen multiple vending machines on servers that spawn the weapons where pressing e is necessary.
[QUOTE=Im_Drew;50359288]Nah I've seen multiple vending machines on servers that spawn the weapons where pressing e is necessary.[/QUOTE]
You will have to make a new entity with some datatables for weapon, model etc
[url]http://wiki.garrysmod.com/page/ENTITY/SetupDataTables[/url]
Sorry, you need to Log In to post a reply to this thread.