Custom Category Colors

Defining custom category colors.

By default; categories use the color that is assigned to each tab; these mean jobs, entities, weapons, ammo, vehicles, shipments, and food.

To assign custom colors, open lua\modules\arivia\cfg\sh_4_tabs.lua and set bCatColors = true for each tab you want custom cat colors enabled for.

You can then edit your darkrp category code to include the new custom category color:

DarkRP.createCategory
{
    name            = 'Civil Protection',
    categorises     = 'jobs',
    startExpanded   = true,
    color           = Color( 255, 25, 25, 255 ),
    canSee          = fp{ fn.Id, true },
    sortOrder       = 101,
    tip             = 'Law enforcement positions',
}

Last updated