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

# identix\_pl\_name\_rs

🟥 𝗦𝗘𝗥𝗩𝗘𝗥

`identix_pl_name_rs(`[**ᵖˡᵃʸᵉʳ**](https://wiki.facepunch.com/gmod/player) pl`)`

## ▸ Parameters

&#x20;   ***`ply`***       *`pl`*\
&#x20;                      player to reset name

## ▸ Description

&#x20;      Resets player name

## ▸ Notes

&#x20;      Runs in the following order:\
&#x20;            **🢖** Updates database\
&#x20;            **🢖** **DarkRP.storeRPName**\
&#x20;            **🢖** pmeta **setalias**\
&#x20;            **🢖** **set\_firstname,** **set\_lastname**\
&#x20;            **🢖** **base:broadcast( )**

## ▸ Example

{% tabs %}
{% tab title="Example 1" %}

```lua
local function your_hook( pl, fname, lname )

    // your custom hook function here

end
hook.Add( 'identix_pl_name_rs', 'your_hook_id', your_hook )
```

{% endtab %}

{% tab title="Example 2" %}

```lua
hook.Add( 'identix_pl_name_rs', 'your_hook_id', function( pl. fname, lname )

    // your custom hook function here

end )
```

{% endtab %}

{% tab title="Example 3" %}

```lua
local function your_hook( pl, fname, lname )

    // your custom hook function here

end
rhook.new.rlib( 'identix_pl_name_rs', 'your_hook_id', your_hook )
```

{% endtab %}
{% endtabs %}
