> ## Documentation Index
> Fetch the complete documentation index at: https://lua.nlcrack.cc/llms.txt
> Use this file to discover all available pages before exploring further.

# User

> Logged-in user information.

## Functions

| Function | Returns | Description |
| - | - | - |
| `user.name()` | `string` | Username |
| `user.uid()` | `number` | User ID |
| `user.avatar([size])` | `texture` | User avatar. Default size 96 |
| `user.info()` | `table` | `{name, uid}` |

## Example

```lua theme={null} theme={null}
events.on('paint', function()
    local tex = user.avatar(32)
    render.image(tex, 10, 10, 32, 32)
    render.text(50, 10, color(255, 255, 255), user.name(), 's')
end)
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.