> For the complete documentation index, see [llms.txt](https://nafing.gitbook.io/nafing/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nafing.gitbook.io/nafing/scripts/nf-skin-less-than-1.2.0/client/events-functions.md).

# Events/Functions

All events and functions.

{% tabs %}
{% tab title="Open Menu" %}

<table><thead><tr><th width="187">Params</th><th width="252">Values</th><th>Description</th></tr></thead><tbody><tr><td>navSelect</td><td>Single Value of <a data-footnote-ref href="#user-content-fn-1">array</a></td><td>Initial route of NUI, value must exist in <mark style="color:yellow;">navList</mark></td></tr><tr><td>navList</td><td><a data-footnote-ref href="#user-content-fn-1">array</a></td><td>Allows to display selected tabs in NUI</td></tr><tr><td>closeButton<a data-footnote-ref href="#user-content-fn-2"><mark style="color:blue;">(?)</mark></a></td><td>boolean</td><td>Disables close button in NUI (useful for creating your first skin)</td></tr><tr><td>outfits<a data-footnote-ref href="#user-content-fn-2"><mark style="color:blue;">(?)</mark></a></td><td>array</td><td>Table with job outfits</td></tr><tr><td>roomOutfits<a data-footnote-ref href="#user-content-fn-2"><mark style="color:blue;">(?)</mark></a></td><td>array</td><td>Table with job/gang outfits</td></tr><tr><td>creatorMode<a data-footnote-ref href="#user-content-fn-2"><mark style="color:blue;">(?)</mark></a> <a data-footnote-ref href="#user-content-fn-3"><mark style="color:blue;">[!]</mark></a></td><td>boolean</td><td>Enables creating/removing job/gang outfits</td></tr><tr><td>grades<a data-footnote-ref href="#user-content-fn-4"><mark style="color:blue;">(?)</mark></a></td><td>Framework.Jobs[Framework.Job].grades or Framework.Gangs[Framework.Gang].grades</td><td>Just data with QBCore jobs/gangs grades</td></tr></tbody></table>

#### Example Usage

Displays in NUI only head\_overlay (makeups etc.) , hair\_styles (chest hair, hair, eyebrows), clothes (components, props)

Initial route is hair\_styles

Close button forces player to save skin (doesn't have option to close skinchanger without saving skin)

<pre class="language-lua"><code class="lang-lua"><strong>exports['nf-skin']:OpenMenu({
</strong>    navSelected = 'hair_styles',
    navList = {
        'head_overlay', 'hair_styles', 'clothes'
    },
    closeButton = false
})
</code></pre>

#### Example Usage of job/gang outfits

Outfits: Loads your wardrobe clothes

RoomOutfits: Loads clothes from your job by grade (from config and DB)

CreatorMode: enables option to edit job DB clothes

Grades: If creatorMode is true

```lua
exports['nf-skin']:OpenMenu({
    navSelected = 'room_outfits',
    navList = {
        'clothes', 'outfits', 'room_outfits'
    },
    outfits = lib.callback.await('nf-skin:server:getOutfits', false),
    roomOutfits = lib.callback.await('nf-skin:server:getRoomOutfits', false, false,
                self.openRoomOutfits),
    creatorMode = true,
    grades = Framework.Gangs[Framework.Gang].grades
})
```

{% endtab %}

{% tab title="Show Text UI" %}
When you use ActionType “zone”, text is displayed, you can change the script to a different one.

```lua
RegisterNetEvent('nf-skin:textUI', function(text)
    if text == false then
        lib.hideTextUI()
    else
        lib.showTextUI(text)
    end
end)
```

{% endtab %}
{% endtabs %}

[^1]: head\_blend, face\_feature, head\_overlay, hair\_styles, clothes, tattoos, outfits, roomOutfits

[^2]: Not required

[^3]: If enabled then grades required

[^4]: Not required if not in creatorMode
