Garry's Mod

How to fix it?

Submitted by timur121213, , Thread ID: 150110

Thread Closed
timur121213
Novice
Level:
0
Reputation:
0
Posts:
29
Likes:
0
Credits:
0
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?

sanjer
Newbie
Level:
0
Reputation:
0
Posts:
18
Likes:
0
Credits:
1
20-11-2019, 12:39 PM
#2
Post a source of ammo script, to understand what problem is

RE: How to fix it?

timur121213
Novice
Level:
0
Reputation:
0
Posts:
29
Likes:
0
Credits:
0
OP
20-11-2019, 12:46 PM
#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?

sanjer
Newbie
Level:
0
Reputation:
0
Posts:
18
Likes:
0
Credits:
1
20-11-2019, 12:54 PM
#4
Is the Ammo("") category initialized? mb you forgot to create it

RE: How to fix it?

timur121213
Novice
Level:
0
Reputation:
0
Posts:
29
Likes:
0
Credits:
0
OP
20-11-2019, 12:58 PM
#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?

timur121213
Novice
Level:
0
Reputation:
0
Posts:
29
Likes:
0
Credits:
0
OP
20-11-2019, 01:14 PM
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: 1 Guest(s)