I’m working on a custom darkrp sever (woo another rp server -.-) and I’m trying to add 2 more types of ammo. 357, which works fine, and crossbow ammo. When i buy the 357, my magnum gets ammo and i can kill things with loud bangs np. When i buy crossbow ammo, no ammo is added. I’m pretty darn sure the ammo type for crossbows is XBowBolt. I’ve edited this in main.lua:
[lua] if args == “rifle” then
elseif args == “shotgun” then
elseif args == “pistol” then
elseif args == “357” then
elseif args == “crossbow” then
I’ve also added the icons in the showteamtabs.lua which work fine as well. I just cant get the crossbow ammo, when bought, to give me any ammo for the crossbow.
EDIT: now i’m getting confused here. I had my buddy go into hammer (map maker) and check wut the ammo spawner was called for the crossbow and it’s item_ammo_crossbow. so i made a custom weapons shipment (just like a custom weapons shipment of say, an ak47) using this and it gives me crossbow ammo (6 which is prob default). Anyhoo, when i try to buy crossbow ammo via the F4 menu (the lua code above), i get a message on the side saying “This ammo is unavailable” but i don’t get this with any of the other ammo including the 357 which i added.
so STILL NOT WORKING