DarkRP Food Generator

Create custom food items for DarkRP's hunger mod — restore energy, set prices, and restrict to cooks.

Have questions? Check the FAQ

Basic Configuration

Core settings for the food item — name, model, energy restored, and price.

The display name for this food item

The world model for this food item

How much hunger this food restores

$

Cost to purchase this food

Common Food Models

Quick-fill presets for food models available in default Source engine content.

Advanced Options

Optional
food.lua
DarkRP.createFood("Food Item", {
    model = "models/props/cs_italy/bananna.mdl",
    energy = 10,
    price = 10,
})

Where does this code go?

Paste the code into lua/darkrp_customthings/food.lua inside the darkrpmodification addon on your server.

Full path: garrysmod/addons/darkrpmodification/lua/darkrp_customthings/food.lua

The hunger mod must be enabled on your server for food items to work. Restart your server or change the map for changes to take effect.

FAQ · Frequently. Asked. Questions.

Commonly asked questions about DarkRP food items, the hunger mod, and how to set them up on your server.

Visit Knowledge Base
Paste the generated Lua code into lua/darkrp_customthings/food.lua inside the darkrpmodification addon on your server. The full path is garrysmod/addons/darkrpmodification/lua/darkrp_customthings/food.lua. This file is loaded automatically by DarkRP when the hunger mod is enabled.

Questions?

Join over 6,000+ members in our Discord community chat with other server owners, get help, and stay up to date with the latest news.