# identix\_pl\_name\_set\_post

`identix_pl_name_set_post(`[**ᵖˡᵃʸᵉʳ**](https://wiki.facepunch.com/gmod/player) pl, [**ᵗᵉˣᵗ**](https://wiki.facepunch.com/gmod/string) name`)`

## ▸ Parameters

&#x20;   ***`ply`***       *`pl`*\
&#x20;                      player object

&#x20;   ***`str`***       *`name`*\
&#x20;                      new name for player

## ▸ Description

&#x20;      Runs after new name registered for player

## ▸ Example

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

```lua
local function your_hook( pl, name )

    // your custom hook function here

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

{% endtab %}

{% tab title="Example 2" %}

```lua
hook.Add( 'identix_pl_name_set_post', 'your_hook_id', function( pl. name )

    // your custom hook function here

end )
```

{% endtab %}

{% tab title="Example 3" %}

```lua
local function your_hook( pl, name )

    // your custom hook function here

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

{% endtab %}
{% endtabs %}
