Garry's Mod

How to fix it?

Submitted by timur121213, , Thread ID: 150110

Thread Closed
20-11-2019, 12:34 PM
This post was last modified: 20-11-2019, 12:35 PM by timur121213
#1
i dont buy ammo, he say "This ammo is unavailable"

RE: How to fix it?

#2
Post a source of ammo script, to understand what problem is

RE: How to fix it?

OP
#3
20-11-2019, 12:39 PM
sanjer Wrote:
Post a source of ammo script, to understand what problem is
DarkRP.createAmmoType("smg1", {
name = "-",
model = "models/Items/BoxMRounds.mdl",
price = 45,
amountGiven = 30,
category = ""
})

DarkRP.createAmmoType("ar2", {
name = "/?",
model = "models/Items/BoxMRounds.mdl",
price = 80,
amountGiven = 30,
category = ""
})

DarkRP.createAmmoType("buckshot", {
name = "",
model = "models/Items/BoxBuckshot.mdl",
price = 50,
amountGiven = 8,
category = ""
})

DarkRP.createAmmoType("pistol", {
name = "",
model = "models/Items/BoxSRounds.mdl",
price = 30,
amountGiven = 24,
category = ""
})

RE: How to fix it?

#4
Is the Ammo("") category initialized? mb you forgot to create it

RE: How to fix it?

OP
#5
20-11-2019, 12:54 PM
sanjer Wrote:
Is the Ammo("") category initialized? mb you forgot to create it
yes

DarkRP.createCategory{
name = "",
categorises = "ammo",
startExpanded = false,
color = Color(30, 30, 30, 255),
canSee = function(ply) return true end,
sortOrder = 28,
}

RE: How to fix it?

#6
try to put this (https://pastebin.com/wEJD3HXX) in ammo.lua

RE: How to fix it?

OP
This post was last modified: 20-11-2019, 01:25 PM by timur121213
#7
20-11-2019, 01:07 PM
sanjer Wrote:
try to put this (https://pastebin.com/wEJD3HXX) in ammo.lua
Not helped, i think the error is in the settings

20-11-2019, 01:07 PM
sanjer Wrote:
try to put this (https://pastebin.com/wEJD3HXX) in ammo.lua
i change F4 menu and fixed this but ammo spawn as entities

Users browsing this thread: 2 Guest(s)