Garry's Mod tools

DarkRP ammo generator

Buyable ammo types for the F4 menu.

Paste into darkrpmodification/lua/darkrp_customthings/ammo.lua

Base Configuration

How the ammo appears in the F4 menu.

Shown in the F4 menu.

The model shown in the menu.

The F4 menu category. It must already exist.

Ammo Configuration

What the player receives and pays.

Common types: pistol, smg1, ar2, buckshot, 357.

Rounds received per purchase.

Cost per purchase.

Custom Check Configuration

Limit who can buy this ammo to certain usergroups, SteamIDs or jobs.

What the player is checked against.

Press Enter after each group.

Shown when a player fails the check.

5 fields need attention.

Generated code

ammo.lua
1-- Unnamed Ammo2-- Generated with Wattle Tools: DarkRP Ammo Generator3-- https://wattletools.com/gmod/darkrp-ammo4 5DarkRP.createAmmoType("", {6    name = "",7    model = "",8    price = 0,9    amountGiven = 0,10})
Esc