Garry's Mod tools

DarkRP food generator

Food for cooks to sell when hungermod is on.

Paste into darkrpmodification/lua/darkrp_customthings/food.lua

Base Configuration

The food item, how filling it is and what it costs.

Shown in the F4 menu.

The model players see and eat.

Hunger restored, out of 100.

Cost of one item.

Who can buy it from the F4 menu.

Custom Check Configuration

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

What the player is checked against.

Press Enter after each group.

Shown when a player fails the check.

4 fields need attention.

Generated code

food.lua
1-- Unnamed Food2-- Generated with Wattle Tools: DarkRP Food Generator3-- https://wattletools.com/gmod/darkrp-food4 5DarkRP.createFood("", {6    model = "",7    energy = 0,8    price = 0,9    requiresCook = true,10})
Esc