> For the complete documentation index, see [llms.txt](https://akulla-pro.gitbook.io/aphone/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://akulla-pro.gitbook.io/aphone/api/ui-renderview.md).

# UI - Renderview

This is a helper library to renderview, you can create, remove, take screenshot and return get the renderview on a material format

## aphone.RenderView\_Start(string name, string params)

{% hint style="danger" %}
You NEED to remove the renderview when you don't need it anymore, else you will get FPS issues
{% endhint %}

| Parameters | Purposes                                              |
| ---------- | ----------------------------------------------------- |
| Name       | Unique name of the renderview                         |
| Params     | <https://wiki.facepunch.com/gmod/Structures/ViewData> |

{% hint style="info" %}
If FOV is not specified. This will be set to 60.

Same for ZFar, will be set 6000
{% endhint %}

## aphone.RenderView\_RequestTexture(string name)

Will return the material of the renderview

## aphone.RenderView\_RequestScreenshot(string name, string dir)

| Parameters | Purposes                                       |
| ---------- | ---------------------------------------------- |
| Name       | Name of the renderview                         |
| Dir        | Where to save the picture ( Start from /data ) |

## aphone.RenderView\_End(string renderview\_name)
