# ZovHook user

### get\_user()

Returns current user data.

#### Returns

`table | nil` - user object or `nil` if not found

#### User Object

| Field    | Type     | Description       |
| -------- | -------- | ----------------- |
| `uid`    | `string` | User unique ID    |
| `name`   | `string` | Username          |
| `avatar` | `string` | Avatar URL        |
| `role`   | `string` | User role         |
| `plan`   | `string` | Subscription plan |

#### Example

```lua
local user = ZovHook.get_user()
if user then
    print(user.name, user.plan)
end
```
