Garry's Mod

Garry's Mod

53 arvostelua
DarkRP Gun Dealer Ammo Box
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
Content Type: Addon
Addon Type: ServerContent
Addon Tags: Roleplay, Realism
Tiedostokoko
Julkaistu
Päivitetty
1.968 KB
27.4.2015 klo 6.47
30.4.2015 klo 3.30
4 muutosilmoitusta ( näytä )

Tilaa ladataksesi
DarkRP Gun Dealer Ammo Box

Kuvaus

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 kommenttia
76561198159809553 23.11.2019 klo 14.36 
@MpL
It's trying to destroy itself upon you shooting it.
But it's indestructible.
2 years late but you're welcome.
MpL™ 9.3.2017 klo 18.16 
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.2.2017 klo 18.41 
?
Corman 21.2.2017 klo 18.40 
how to add ammo?
Corman 30.1.2017 klo 7.23 
From M9K or any other mag
Corman 30.1.2017 klo 7.22 
How to Add mags?
Vror 18.11.2016 klo 17.16 
Is there a way to make it unowned? (No one wins money)
Zak 22.3.2016 klo 12.24 
That would be ezz to fix
Gooner 2.3.2016 klo 2.22 
Theres a bug where it lets the player buy more causing their money to drop down the the negatives.
[Jokeeece]Nightmare 1.6.2015 klo 20.40 
this addon is amazin