◾Docs/Web
This information explains the 'web' folder provided in your downloaded zip.
◾ Summary
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 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
folder. 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/ and use the link they provide after upload within your config to change wallpaper URLs.
◾ Static Wallpapers
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
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
Upload the contents of the docs/web folder to your own hosting server.
Open your script's background config file.
lua\modules\arivia\cfg\sh_2_bg.lua
Locate the two tables associated with static and live wallpaper URLs.
cfg.bg.static.list
andcfg.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
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\arivia\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.
Last updated