> For the complete documentation index, see [llms.txt](https://arivia.rlib.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://arivia.rlib.io/developers/jobs/parameters/needgroup.md).

# NeedGroup

## Alias

&#x20;           *`NeedGroup, groups`*

## Source

&#x20;           *`added in Arivia v3`*

## Requires

&#x20;           *`no additional requirements`*

## Type

&#x20;           *`table { }`*

## Example

{% tabs %}
{% tab title="Single Group" %}

```lua
TEAM_CHIEF = DarkRP.createJob( 'Civil Protection Chief',
{
    color           = Color( 5, 255, 0, 255 ),
    model           = 'models/player/combine_soldier_prisonguard.mdl',
    description     = [[The Chief is the leader of the Civil Protection]],
    weapons         = { 'arrest_stick', 'unarrest_stick', 'weapon_deagle2', 'stunstick', 'door_ram', 'weaponchecker' },
    command         = 'chief',
    chief           = true,
    NeedGroup       = { 'vip' },
    category        = 'Civil Protection',
} )
```

{% endtab %}

{% tab title="Multiple Groups" %}

```lua
TEAM_CHIEF = DarkRP.createJob( 'Civil Protection Chief',
{
    color           = Color( 5, 255, 0, 255 ),
    model           = 'models/player/combine_soldier_prisonguard.mdl',
    description     = [[The Chief is the leader of the Civil Protection]],
    weapons         = { 'arrest_stick', 'unarrest_stick', 'weapon_deagle2', 'stunstick', 'door_ram', 'weaponchecker' },
    command         = 'chief',
    chief           = true,
    NeedGroup       = { 'vip', 'donator' },
    category        = 'Civil Protection',
} )
```

{% endtab %}

{% tab title="Alias" %}

```lua
TEAM_CHIEF = DarkRP.createJob( 'Civil Protection Chief',
{
    color           = Color( 5, 255, 0, 255 ),
    model           = 'models/player/combine_soldier_prisonguard.mdl',
    description     = [[The Chief is the leader of the Civil Protection]],
    weapons         = { 'arrest_stick', 'unarrest_stick', 'weapon_deagle2', 'stunstick', 'door_ram', 'weaponchecker' },
    command         = 'chief',
    chief           = true,
    groups          = { 'vip', 'donator' },
    category        = 'Civil Protection',
} )
```

{% endtab %}
{% endtabs %}

## Output

If player selects a job that has a group requirement; they will be presented with an error message in multiple locations:

![Example of player not meeting group requirement](/files/-MK-P59skL1WNcirn_sf)

## Notes

{% hint style="info" %}
Some server owners tend to use CustomCheck to validate groups; we'd recommend using **NeedGroup** instead for more functionality within Arivia.
{% endhint %}
