> 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/needjob.md).

# NeedJob

## Alias

&#x20;           *`NeedJob, NeedToChangeFrom, jobs`*

## Source

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

## Requires

&#x20;           *`no additional requirements`*

## Type

&#x20;           *`table { }`*

## Example

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

```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,
    NeedJob         = { TEAM_POLICE },
    category        = 'Civil Protection',
} )
```

{% endtab %}

{% tab title="Multiple Jobs" %}

```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,
    NeedJob         = { TEAM_POLICE, TEAM_CIVIL },
    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,
    jobs            = { TEAM_POLICE, TEAM_CIVIL },
    category        = 'Civil Protection',
} )
```

{% endtab %}
{% endtabs %}

If multiple jobs are provided; the system will allow a player to be any ONE of the total list in order to switch to the new job.

## Output

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

![Example of player not meeting job requirement](/files/-MK-NDRcXMYaWuCMlND3)

## Notes

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