Weapon Problems

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
Awesomebird27
New to forums
New to forums
Posts: 1
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Tue Jan 26, 2016 3:38 pm

Weapon Problems

Post by Awesomebird27 »

So I am attempting to code in some shipments for some custom weapons I've been put into my DarkRP server but it's saying "weapon unavailable" any idea why? Here's the code I wrote if it helps

AddCustomShipment("M4A1 Iron", {
model = "models/weapons/w_m4a1_iron.mdl",
entity = "m9k_m4a1",
price = 600,
amount = 1,
separate = true,
pricesep = 600,
noship = false
allowed = {TEAM_GUN}
})
a117yogi
New to forums
New to forums
Posts: 10
Joined: Thu Jan 28, 2016 10:47 pm

Re: Weapon Problems

Post by a117yogi »

it looks like someone did something just like that here http://forum.darkrp.com/threads/m9k-shi ... ammo.2184/

try changeing
"AddCustomShipment"
TO
"DarkRP.createShipment"
in your code
Post Reply