▸category
Groups food into a particular category for better organization.
Alias
category
Source
added in Arivia v3
Requires
no additional requirements
Type
string
Info
By default; darkrp does not offer customization for food categories. Arivia has however added the ability to assign categories to food just like you can for entities, etc.
Open lua\modules\arivia\cfg\sh_6_food.lua
Locate the table cfg.food.categories
Add new category (see example 1 below)
Open your darkrp entities file that you wish to add the food item to
Add new food item and assign category (see example 2 below)
Example
cfg.food.categories =
{
[ 'yum' ] =
{
name = 'Yum',
startExpanded = true,
sortOrder = 1,
tip = 'The good stuff',
},
}
After following the steps above; restart the server and open your F4 menu. You should see the new category and your food item listed within it.
Notes
Last updated