# Docs/Web

## ◾ Summary <a href="#summary" id="summary"></a>

This script includes wallpapers / live backgrounds which can be displayed on your interface. These wallpapers are hosted via **rlib's cloud**, which should only be temporary.

Your downloaded zip from [**gmodstore.com**](https://gmodstore.com/) includes a **`docs/web`** folder which contains a series of static images and a live wallpaper .webm file that you can use as wallpaper to display on your in-game interface.

It is recommended that you utilize your own hosting server and upload the files provided in the **`docs/web`**&#x66;older. If the rlib cloud goes down; your wallpapers will not work.

You may also upload the images to a website such as [**https://imgur.com/**](https://imgur.com/) and use the link they provide after upload within your config to change wallpaper URLs.

## ◾ Static Wallpapers <a href="#static-wallpapers" id="static-wallpapers"></a>

Static wallpapers are still images located in the **`docs/web/static`** folder. This folder includes a few demo wallpapers to get you started, however, you can use any images you'd like.

Creating your own? We recommend you use an image size of **1920x1080** **minimum**.

## ◾ Live Wallpapers <a href="#live-wallpapers" id="live-wallpapers"></a>

Live wallpapers are animated videos that are in **.webm** format. One is provided for you as an example, as well as a .php script which allows you to implement them in your script.

## ◾ Upload / Webserver <a href="#upload-webserver" id="upload-webserver"></a>

* Upload the contents of the docs/web folder to your own hosting server.
* Open your script's background config file.
  * **`lua\modules\apollo\cfg\sh_2_bg.lua`**
* Locate the two tables associated with static and live wallpaper URLs.
  * **`cfg.bg.static.list`** and **`cfg.bg.live.list`**
* Edit the URLs to match your own webserver URL.
  * For static images; it is simply the path to your image:
    * *<https://yourdomain.com/web/static/1.jpg>*
  * For live wallpapers; use the .php file provided and add the video name:
    * *<http://yourdomain.com/web/live/index.php?id=default\\_1>*
* If you change the names of the files; then edit the paths accordingly.
* Once edited; save the config, and restart the server.

## ◾ Upload / Imgur <a href="#upload-imgur" id="upload-imgur"></a>

​[**https://imgur.com/**](https://imgur.com/) can be used for static wallpapers only. You will need to use your own personal webserver to host live wallpapers.

* Create an account on imgur.com
* Select **Add Images** and use the upload interface to select your static wallpapers and upload them.
* Once uploaded; select the photo and a popup will appear with a series of links on the right.
* Copy the **Direct Link** url
* Open your script's background config file.
  * **`lua\modules\apollo\cfg\sh_2_bg.lua`**
* Locate the static table URLs:
  * **`cfg.bg.static.list`**
* Edit the URLs to match your imgur direct URL.
  * *<https://i.imgur.com/yourimage.png>*
* Once edited; save the config, and restart the server.

![](https://gblobscdn.gitbook.com/assets%2F-MFKC6GfaQOESD8DNVqi%2F-MOBhHJsscsmybXaWtPk%2F-MOBhKnWnEgohH3Xb5nz%2Fwebdocs_imgur_setup.png?alt=media\&token=558cd8ca-889a-4f4a-a65b-c4be37a0d5e4)
