---
description: Check the instructions below.
---

# Exports



{% tabs %}
{% tab title="client-side" %}
**Getting the visibility of menu**

<pre class="language-lua"><code class="lang-lua"><strong>local visible = exports["gfx-crew"]:IsMenuVisible()
</strong></code></pre>

**Getting Player Crew Data**

```lua
local playerCrewData = exports["gfx-crew"]:GetPlayerCrewData()
```

**Output Example**

```lua
{
        id = "steam:11111xxxx",
        name = "fizzfau",
        image = "image_link",
        rank = "Member",
        rankId = 2,
        permissions = {
           kick = true,
           invite = true,
           edit = true,
           delete = true,
           announce = true,
        }
        crewId = "gfx crew",
}
```

{% hint style="warning" %}
Returns an empty array if player does not belong to any crew.
{% endhint %}
{% endtab %}

{% tab title="server-side" %}
**AddBadgeToMember**

Badge must be defined at the config. Returns true if success, returns nil if fail.

```lua
local added = exports["gfx-crew"]:AddBAdgeToMember(source, badgeId)
```

**GetPlayerCrewName**

```lua
local crewName = exports["gfx-crew"]:GetPlayerCrewName(source)
```

Output

<figure><img src="https://1044273234-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWzb2HRwaoBbhxog9Ap98%2Fuploads%2FWwOK1UN1I9iPGBEVNZrH%2Fimage.png?alt=media&#x26;token=67b545eb-6fd5-4acb-aeac-237a7634095d" alt="" width="375"><figcaption></figcaption></figure>

**GetPlayerCrewMembersForMarker**

Returns an array of sources related to crew members.

```lua
--Usage
exports["gfx-crew"]:GetPlayerCrewMembersForMarker(source)
-- Output
-- [3,6,7,11,39]
```
{% endtab %}
{% endtabs %}

