Garry's Mod

Garry's Mod

52 ratings
DarkRP Gun Dealer Ammo Box
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Roleplay, Realism
File Size
Posted
Updated
1.968 KB
27 Apr, 2015 @ 6:47am
30 Apr, 2015 @ 3:30am
4 Change Notes ( view )

Subscribe to download
DarkRP Gun Dealer Ammo Box

Description

This is a very simple, indestructible vendor which will sell clips to ammo of literally any type automatically for $[20-200] for Gun Dealer type jobs.

Features
  • /setprice # will set the cost (minimum of 20 and max of 200).
  • If admin spawned, first player to touch it, owns it automatically.
  • Can be physgunned into place by the owner and can only be destroyed by the owner!
  • Means you can safely leave it anywhere without it getting blown up!

Entities code for DarkRP attached below!
---------------------------------------------------------------------------
DarkRP.createEntity("Ammo Box Vendor", {
ent = "eoti_ammo_box",
model = "models/items/ammocrate_smg1.mdl",
price = 600,
max = 1,
cmd = "ammobox",
allowed = {TEAM_GUN},
category = "ammo",
sortOrder = 100
})
---------------------------------------------------------------------------

Known Glitches: Animations will not work at all, if anyone knows the sequence codes for ammo boxes, send them to me!

PLEASE RATE, SUBSCRIBE AND CHECK OUT MY FANTASY RP MODS![facepunch.com]

In light of recent events, I would rather take donations through Patreon which I have set up for anyone willing to donate to allow me to continue making addons non-stop.

PATREON LINK[www.patreon.com]
15 Comments
اMattNificent 23 Nov, 2019 @ 2:36pm 
@MpL
It's trying to destroy itself upon you shooting it.
But it's indestructible.
2 years late but you're welcome.
MpL™ 9 Mar, 2017 @ 6:16pm 
Good addons, really !!

But look at this:

[DarkRP Gun Dealer Ammo Box] lua/entities/eoti_ammo_box/init.lua:87: attempt to call method 'Destruct' (a nil value)
1. unknown - lua/entities/eoti_ammo_box/init.lua:87
2. FireBullets - [C]:-1
3. CSShootBullet - gamemodes/darkrp/entities/weapons/weapon_cs_base2/shared.lua:234
4. unknown - gamemodes/darkrp/entities/weapons/weapon_cs_base2/shared.lua:194


(When we try destroy the box)

Sorry for my bad English, I'm French.
Corman 21 Feb, 2017 @ 6:41pm 
?
Corman 21 Feb, 2017 @ 6:40pm 
how to add ammo?
Corman 30 Jan, 2017 @ 7:23am 
From M9K or any other mag
Corman 30 Jan, 2017 @ 7:22am 
How to Add mags?
Vror 18 Nov, 2016 @ 5:16pm 
Is there a way to make it unowned? (No one wins money)
Zak 22 Mar, 2016 @ 12:24pm 
That would be ezz to fix
Gooner 2 Mar, 2016 @ 2:22am 
Theres a bug where it lets the player buy more causing their money to drop down the the negatives.
[Jokeeece]Nightmare 1 Jun, 2015 @ 8:40pm 
this addon is amazin