# Client Exports

## Check if player is in a job group

<pre class="language-lua"><code class="lang-lua"><strong>local inGroup, uniqueID, groupData, = exports['darrk-groups']:isPlayerInJobGroup(job)
</strong></code></pre>

* job: `string`

Return:

* inGroup: `boolean`
* uniqueID: `string`
* groupData: `table`

## Check if player is a leader of a group

```lua
local isLeader, job = exports['darrk-groups']:isPlayerLeaderOfGroup()
```

Return:

* isLeader: `boolean`
* job: `string`

## Get Player Group

This function could be used to check/get player group id, if you don't want to cache it

```lua
local uniqueID = exports['darrk-groups']:getPlayerGroup()
```

Return:

* uniqueID : `string || boolean`

## Level check

You can use it to check if all members has the same level, you must add playerdata to make this function work

```lua
local hasLevel = exports['darrk-groups']:doesGroupHasLevel()
```

Return:

* hasLevel: `boolean`

## Hide / Show Job

{% hint style="info" %}
If you want to hide the group by default just add

<pre class="language-lua"><code class="lang-lua"><strong>hidden = true
</strong></code></pre>

Into the job shared/sh\_main.lua > JobGroups

Must look like this

```lua
["Postop"] = {
    maxMembers = 2,
    hidden = true
},
```

{% endhint %}

Can be used with illegal jobs

```lua
exports['darrk-groups']:updateJob(jobname, show)
```

* jobname: `string`
* show: `boolean`
