# Getting Started

This documentation serves the purpose of helping server owners install, setup, and use your new copy of this script.

{% hint style="warning" %}
**v1.x.x** has reached EOL \[end-of-life] and is no longer supported.\
**Please select the latest version** from the list to the top left.

If you are running an older version of the script, you will be asked to upgrade to the latest version to receive support. This helps with bugs, stability, and optimizations that the newer version will offer.
{% endhint %}


# Introduction

This documentation serves the purpose of helping server owners install, setup, and use your new copy of this script.

![YL-lang\]](https://img.shields.io/badge/language-lua-2A61CE.svg?logo=lua)![YL-Type\]](https://img.shields.io/github/manifest-json/description/im-richard/rlib.svg?color=D84B4B\&filename=manifest%2Flinx%2Fmanifest.json\&label=type)![YL-Ver\]](https://img.shields.io/github/manifest-json/v/im-richard/rlib.svg?filename=manifest%2Flinx%2Fmanifest.json)![YL-Req\]](https://img.shields.io/github/manifest-json/libreq/im-richard/rlib.svg?color=288A51\&filename=manifest%2Flinx%2Fmanifest.json\&label=rlib)![YL-Updated\]](https://img.shields.io/github/manifest-json/updated/im-richard/rlib.svg?color=D84B75\&filename=manifest%2Flinx%2Fmanifest.json\&label=last)![YL-ID\]](https://img.shields.io/github/manifest-json/script/im-richard/rlib.svg?color=D8714B\&filename=manifest%2Flinx%2Fmanifest.json\&label=id)![YL-hits\]](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fim-richard%2Frlib\&count_bg=%235A3DC8\&title_bg=%23555555\&title=hits\&edge_flat=false)

![](https://1251030218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M9HqlGThfNkt1Lk0Uyl%2F-MPNysoQ-b7M7YjknQ1Y%2F-MPNz-IwrnOJDiKusi3A%2F920x260.png?alt=media\&token=a397b84d-e150-422d-904c-b81c1205559a)

## ▸ Compatibility ▸ Addons

![ULX](https://g.rlib.io/gms/badges/addons/86/u.png) ![XAdmin](https://g.rlib.io/gms/badges/addons/86/x.png) ![SAM](https://g.rlib.io/gms/badges/addons/86/s.png) ![ServerGuard](https://g.rlib.io/gms/badges/addons/86/sg.png)

## ▸ Compatibility ▸ Gamemodes

![All Gamemodes](https://g.rlib.io/gms/badges/gm/86/gm_all.png)

## ▸ About

A multi-purpose addon that can be triggered via chat, console command or on player join. Allowing it to be utilized as an informative interface, that functions as both an escape menu, as well as an MOTD (message of the day) addon with 2-in-1 functionality.

Display your network rules either via standard text, or by directing players to a website.

Advertise your network's website, forums, donations page, steam workshop collection, and more, which are all readily available with a simple click.&#x20;

Have important information you want to announce to your players? The slides feature allows you to post important news, as well as detailed text that the player will see on the interface. Slide images support external urls which allows any image to be hosted via a web host and then referenced within the addon's configuration file.

View this addon's **Features** section for a full list.

## ▸ Features

* **Escape menu** **mode** allows the addon to work as a fully-functional escape menu activated by the player with the ESCAPE key.<br>

* **MOTD mode** forces interface to display when a player connects to your server.
  * Ability to also turn off "Escape Menu" mode and function only as an MOTD; or leave both on for MOTD + Escape Menu.<br>

* **Slider / Banner** feature which allows you to display important news about the server.
  * Supports web hosted images so there's no need to use a workshop to change banner images.
  * Display a title for each headline, and a summary with the news you want to announce.
  * Supports 10+ tabs which gives plenty of room to post donation reminders, announce server upgrades, etc. <br>

* **Welcome greeting** displays a message in chat when a player connects to the server.
  * Includes setting to edit greeting and add your own lua if desired.<br>

* **Announcements** interface comes as a *secondary option* for owners who don't want to display the slider / banners. This is a more simple type of announcement panel which displays the title of a single announcement, and the message itself.

  * Supports .webm videos to be attached to the announcement.

* **Live and Static Backgrounds**

  * Supports web URLs for both static and live backgrounds.
  * **Live Backgrounds** utilize **.webm** videos
  * Background source files provided in download
  * Supports standard **materials** (hosted by a Steam Workshop Collection)

* **Rules** interface which displays when the player joins the server (if configured), or can be viewed by pressing the navigation button.

  * Rules can also be pulled up at any time by the player simply by using the chat command specified in the config.
  * Admins can also force rules to appear on a player's screen; and they will have to accept the rules in order to continue playing.
  * Rules can either be text-based or displayed via a website that you configure.

* **Admin Mod Support & Permissions**

  * Supports admin mods: **ULX**, **ServerGuard**, **xAdmin**, and **SAM**.
  * Specify certain groups that can bypass the delay when the MOTD appears.
    * Also useful for server owners who want to give donators / VIP members the ability to bypass without the wait.
  * Force interface open for players
  * Refresh entire interface ( for development purposes / recoloring / etc )
  * Specify certain groups that don't have to view the MOTD when they connect (such as staff, donators, etc.)

* **Server Hopper** which displays servers you own within your network. Players can connect to another server by pressing the corresponding button.

  * Confirmation dialog which ensures no accidental clicks
  * Immediate connection to server once confirmed by player
  * Supports 3 modes for button:
    * Type 1 : Icons + Text
    * Type 2 : Icon only
    * Type 3 : Text only

* **Navigation buttons** allow you to display numerous websites including your official website, donation url, steam group, etc.

  * Supports both an integrated browser (included with script), and the option of using the Steam overlay.

* **Header buttons** display special actions:

  * Toggle gmod console open
  * Hide custom escape menu & display default gmod menu
  * Access game settings (video, etc)

* **News Ticker** to broadcast important messages to your players.
  * Supports string variables that can be added to each message which displays:

    * Player name / steam id
    * Server population count / Max pop
    * Network Name

* **Detailed configuration** file which allows server owner to edit almost anything included with script *(well over 100 different settings)*
  * Most features can be enabled / disabled
  * Dozens of coloring options
  * Can specify how the script behaves for players ( *show on join / motd mode / etc* )
  * Determine how the nav menu displays for players ( *icons, text only, etc* )
  * Toggle interface animations
  * Coloring of almost every aspect of addon
  * Developer settings for easier addon configuration


# Showcase

Preview screenshots of this addon

## ▸ Static Images

![General interface : Navigation ( text enabled ) : Slider ( enabled )](https://1251030218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M9HqlGThfNkt1Lk0Uyl%2F-M9N4G2mAndqJpN8zxtB%2F-M9N4NRnURUy73DmfNUu%2F1.png?alt=media\&token=fa93b0a9-4983-4eab-9110-cd57a60c1384)

![Server connection confirmation](https://1251030218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M9HqlGThfNkt1Lk0Uyl%2F-M9N4G2mAndqJpN8zxtB%2F-M9N4PaKnING0BVYMSih%2F2.png?alt=media\&token=b6a2d342-3f39-4c07-896c-a464a96ce28c)

![Rules interface ( text mode )](https://1251030218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M9HqlGThfNkt1Lk0Uyl%2F-M9N4G2mAndqJpN8zxtB%2F-M9N4TIG3Du0kVYDOzJg%2F3.png?alt=media\&token=3c1fb8eb-3c4e-4f87-ac13-f189fbac1fcc)

![Navigation ( text enabled ) : Slider / Announcements / Footer ( disabled )](https://1251030218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M9HqlGThfNkt1Lk0Uyl%2F-M9N4G2mAndqJpN8zxtB%2F-M9N4VSxu_JTrQ3Ehrro%2F4.png?alt=media\&token=c6078361-6193-412e-a518-3fe1dd2ae3dc)

![Navigation ( icons enabled ) : Announcements ( enabled ) : Slider ( disabled )](https://1251030218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M9HqlGThfNkt1Lk0Uyl%2F-M9N4G2mAndqJpN8zxtB%2F-M9N4XmtnfQjauhJT4CL%2F5.png?alt=media\&token=9c4e443e-b1e6-4ed3-ba1e-aa20f35b82af)

## ▸ Animated Images

Please note that animated gifs may show sluggish animations due to FPS limits of the image itself. In-game animations are smooth.


# Changelog

Displays the most important changes of a release.

### Which version do you want to see changes for?

The most recent update is listed at the top, and the oldest at the bottom

| Version                           | Build                                                                       |        |
| --------------------------------- | --------------------------------------------------------------------------- | ------ |
| [**2.3.2.0**](/changelog/2.4.0.0) | ![NL-build-stable\]](https://img.shields.io/badge/stable-4DA954.svg?label=) | latest |
| [**2.3.1.0**](/changelog/2.3.1.0) | ![NL-build-stable\]](https://img.shields.io/badge/stable-4DA954.svg?label=) |        |


# 2.4.0.0

This is a detailed changelog for the specified release above.

## ◾ Overview

* `[ + ]` [**added disconnect button confirmation dialog**](/changelog/2.4.0.0#added-disconnect-button-confirmation)
* `[ + ]` [**added player console 'goodbye' message**](/changelog/2.4.0.0#added-player-console-goodbye-message)
* `[ + ]` [**added external !rules chat command to display only rules ui in-game**](/changelog/2.4.0.0#added-external-rules-chat-command-to-display-only-rules-ui-in-game)
* `[ + ]` [**added new hook when addon initialized to help support plugins**](/changelog/2.4.0.0#new-hook-when-addon-initialized-to-support-plugins)
* `[ ^ ]` [**dialogs now have shadows**](/changelog/2.4.0.0#dialogs-now-have-shadows)
* `[ ^ ]` [**multiple dialog panels renamed / moved**](/changelog/2.4.0.0#multiple-dialog-panels-renamed-moved)
* `[ ^ ]` [**updated pnl registration system**](/changelog/2.4.0.0#updated-pnl-registration-system)
* `[ ^ ]` [**multiple chat / console commands can now activate interface**](/changelog/2.4.0.0#multiple-chat-console-commands-can-now-activate-interface)
* `[ ^ ]` [**integrated browser now has color setting for background**](/changelog/2.4.0.0#integrated-browser-now-has-color-setting-for-background)
* `[ ^ ]` [**integrated browser disabled by default in configs**](/changelog/2.4.0.0#integrated-browser-disabled-by-default-in-configs)
* `[ % ]` [**fixed minor pnl call issues**](/changelog/2.4.0.0#fixed-minor-pnl-call-issues)
* `[ % ]` [**fixed eprotect compatibility** ](/changelog/2.4.0.0#fixed-eprotect-compatibility)
* `[ % ]` [**fixed glitch with static text being editable**](/changelog/2.4.0.0#fixed-glitch-with-static-text-being-editable)

## ◾ File Changelog

### &#x20;     ◾ **CONFIGS**

* linx\cfg\sh\_cfg.lua
* linx\cfg\sh\_cfg\_binds.lua
* linx\cfg\sh\_cfg\_nav.lua

### &#x20;     ◾ **GENERAL**

* linx\core\cl\_fonts.lua
* linx\core\cl\_init.lua
* linx\core\cl\_rcc.lua
* linx\core\sv\_init.lua
* linx\core\sv\_psay.lua   [**🇳​​​​​🇪​​​​​🇼**](/doc-references/status#new)
* linx\diag\cl\_diag\_cwserv.lua   [**🇳​​​​​🇪​​​​​🇼**](/doc-references/status#new)
* linx\diag\cl\_diag\_dcserv.lua   [**🇳​​​​​🇪​​​​​🇼**](/doc-references/status#new)
* linx\diag\cl\_ibws\_notice.lua   [**🇳​​​​​🇪​​​​​🇼**](/doc-references/status#new)
* linx\pnl\cl\_pnl\_cwserv.lua    [**🇷​​​​​🇪​​​​​🇲​​​​​**](/doc-references/status#rem)
* linx\pnl\cl\_pnl\_footer.lua​​​​​
* linx\pnl\cl\_pnl\_ibws.lua
* linx\pnl\cl\_pnl\_nav.lua
* linx\pnl\cl\_pnl\_rules.lua
* linx\pnl\cl\_pnl\_rules\_web.lua
* linx\pnl\cl\_pnl\_servers.lua
* linx\pnl\cl\_pnl\_ticker.lua
* linx\sh\_env.lua
* linx\lang\en.lua

## ◾ Changes

####

### ◾  Added disconnect button confirmation

Players will now be asked to confirm if they wish to disconnect from the server. This should help with accidental clicks.

![](https://1251030218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M9HqlGThfNkt1Lk0Uyl%2F-MVUDWLSmNcYvn0iiw_Z%2F-MVUDiGSCD77R_nz6Z9_%2Fdc_confirm.gif?alt=media\&token=ab6b5b1d-1c9a-4f68-b6ba-0a9cb0a987bc)

####

### ◾ Added player console 'Goodbye' message

If a player disconnects from the server; they will simply be sent a message to their player console that reminds them to favorite the server and provides the IP address

![](https://1251030218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M9HqlGThfNkt1Lk0Uyl%2F-MVUDWLSmNcYvn0iiw_Z%2F-MVUDrbBniCkZQCQxqpC%2Fdc_console.png?alt=media\&token=7aaa4346-2e00-445c-9c71-be2d91876907)

####

### ◾ Added external **!rules** chat command to display only rules ui in-game

Added a !rules chat command so players can view the rules without opening the main interface.

####

### ◾ New hook when addon initialized to support plugins

Can now use **`linx_cl_init`** to activate a hook when addon loads the interface.

####

### ◾ Dialogs now have shadows

Shadows have been added around all dialog boxes so that they are more visible in front of interfaces with the same color.

####

### ◾ Multiple dialog panels renamed / moved

| Old                     |   | New                       |
| ----------------------- | - | ------------------------- |
| `pnl/cl_pnl_cwserv`     | ➜ | `diag/cl_diag_cwserv.lua` |
| `elm/cl_elm_notice.lua` | ➜ | `diag/cl_ibws_notice.lua` |

####

### ◾ Updated pnl registration system

An internal change which makes primary panels separate from internal panels.

####

### ◾ Multiple chat / console commands can now activate interface

Interfaces can now have multiple triggered bound to activate the interface.

####

### ◾ Integrated browser now has color setting for background

Due to some websites not having a background-color; this causes the site to have the background color of the interface panel. A setting has been added to give a white background that will appear behind the website to prevent some websites from being transparent:

![](https://1251030218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M9HqlGThfNkt1Lk0Uyl%2F-MWNFgw6CiyqWb3dehWW%2F-MWNFvO36AdxJ8Wm9yGx%2Fibws_white_bg.png?alt=media\&token=8ac00c31-edf7-4fd3-ad9e-28f78ee0075d)

Setting can be located in **`lua\modules\linx\cfg\sh_cfg_nav.lua`**

{% tabs %}
{% tab title="lua\modules\linx\cfg\sh\_cfg\_nav.lua" %}

```lua
bg_main                 = Color( 255, 255, 255, 255 ),
```

{% endtab %}
{% endtabs %}

####

### ◾ Integrated browser disabled by default in configs

Prior to this update; the integrated web browser was enabled by default. Because the Garry's Mod framework is so outdated and some websites may appear as blank pages; the integrated browser is now disabled by default.&#x20;

To enable it; open **`lua\modules\linx\cfg\sh_cfg_nav.lua`** and change the following settings:

{% tabs %}
{% tab title="lua\modules\linx\cfg\sh\_cfg\_nav.lua" %}

```lua
cfg.nav.btn.donate_int      = true
cfg.nav.btn.website_int     = true
cfg.nav.btn.workshop_int    = true
```

{% endtab %}
{% endtabs %}

### ◾ Fixed minor pnl call issues

Patched a few pnl calls that were not registered properly.

####

### ◾ Fixed eprotect compatibility

Resolved an issue which caused a random error with customers also using eProtect related to SetTitle()

####

### ◾ Fixed glitch with static text being editable

Users were able to move their cursors inside a dialog panel and type text. This caused no issues with functionality itself; but was not intended and has been fixed.


# 2.3.1.0

This is a detailed changelog for the specified release above.

### ◾ Support for Materials as Wallpapers

Server owners can now specify materials for their interface background. By default, this script uses a DHTML panel to load wallpapers from external websites. The issue with this is that it can sometimes make the interface take a second or two longer to actually load.

By using materials; it can make load times significantly less; however, this requires the server owner to upload the desired materials to a Steam Workshop collection and call the image within the config:

{% tabs %}
{% tab title="linx\lua\modules\linx\cfg\sh\_cfg\_bg.lua" %}

```lua
cfg.bg.material.enabled     = true
cfg.bg.material.list        =
{
    'path/to/material_1.png',
    'path/to/material_2.png',
}
cfg.bg.material.clr         = Color( 255, 255, 255, 255 )
```

{% endtab %}
{% endtabs %}

If you decide to enable material wallpapers; it is HIGHLY recommended that you disable the other wallpaper settings for loading external images; otherwise load-times will be equally as bad:

{% tabs %}
{% tab title="linx\lua\modules\linx\cfg\sh\_cfg\_bg.lua" %}

```lua
cfg.bg.static.enabled     = false
cfg.bg.live.enabled       = false
```

{% endtab %}
{% endtabs %}

In order to create a Steam Workshop collection; you must utilize a tool such as GMPU (**Garry's Mod Publishing Utility**) which can be [**downloaded here**](https://github.com/alatnet/gmpu):

####

### ◾ Removed sh\_init.lua

This file is no longer needed. If you delete your addons completely prior to updating, then you should not need to do anything. However, if you overwrite your existing files; then you will need to delete this file manually.

####

### ◾ Updated Font Library

Migrated font library to new system. Nothing should be changed on the server owner's end.

####

### ◾ Optimizations

Several aspects have been updated for better load times.

####

### ◾ Updated Documentation

Several pages have been updated with better structuring so that steps are easier to follow. Also added more information related to certain steps.

####

### ◾ Updated ServerGuard permissions

ServerGuard permissions are now more easily identifiable with new names.


# FAQ

Answers to common questions and troubleshooting steps.

### ▸[Addon Won't Show](/faq/addon-wont-show)

&#x20;   Instructions for handling situations where the addon will not \
&#x20;   display at all on the server.

####

### ▸[Incompatible Addons](/faq/incompatible-addons)

&#x20;    View a list of Workshop Addons that are deemed incompatible \
&#x20;    with this addon.

####

### ▸[Modified Script](/faq/modified-script)

&#x20;   The answer you will receive if you wrote your own customizations\
&#x20;   which are not working.

####

### ▸[Refunds](/faq/refunds)

&#x20;   Policy regarding refunds

####

### ▸[Script Errors](/faq/script-errors)

&#x20;   Instructions for handling situations where the addon throws\
&#x20;   errors in the server console.

####

### ▸[When Are Updates?](/faq/when-are-updates)

&#x20;   The main question I always get asked.


# Addon Won't Show

Steps to take if your addon will not display in-game.

## ▸Verify Install

Verify that you've followed the instructions on the [**Install**](/setup/install) page. Ensure that this includes both a good installation of rlib AND the addon itself. You can also follow the steps on the [**Verify**](/setup/verify) page to ensure that both of these are functioning properly.

## ▸Revert Config Changes

If you have made changes to the configuration and cannot get the addon to show; revert those changes. Try installing a fresh copy of the addon without any changes to determine if the changes to the config are to blame or if you are having issues elsewhere.

## ▸Use Latest Versions

Ensure that you are using the latest version of both rlib AND the addon you are trying to install. [**Gmodstore**](https://gmodstore.com) allows developers to post multiple versions of an addon, and sometimes customers can accidentally click if downloading the addon from the Versions tab. Double-check your installed version.

## ▸Check For Incompatible Addons

If you are experiencing issues with this addon; ensure first that it is not conflicting with other addons. Any addons that have been installed from the Steam Workshop **MUST** be checked first. This developer cannot control the quality of code for addons distributed via the Steam Workshop and most reported situations involve a Workshop addon that is not coded properly and has not been updated in years.

For more detailed instructions; view the [**Incompatible Addons**](/faq/incompatible-addons) page.


# Incompatible Addons

Addons in this list have been deemed "incompatible" and require extra work.

## ▸Official List

The following workshop addons have been known to cause issues with this script after being reported to the developer.  In order to get this addon functioning properly; please review the chart below to see what is causing the incompatibility.

Certain workshop addons are coded poorly, and the Steam Workshop does not have "Coding Standards". In order to correct the addons below; it would be required to modify the Workshop addon itself which is not good practice for us. We do not want to modify other scripts to behave differently than what you expect them to behave.

|                      |   |
| -------------------- | - |
| *No addons reported* |   |

## ▸Check Addons

From time to time; certain addons from the Steam Workshop may conflict with purchased addons from Gmodstore.

{% hint style="warning" %}
**Ensure you follow these instructions**. If you submit a ticket about the addon not showing up and it properly being installed; this will be the first process the developer makes you go through.
{% endhint %}

To eliminate the possibility of a Steam Workshop addon breaking this addon; please complete the following:

* **Open** your server's Hosting Control Panel (gmc, crident, etc).
* Locate the **Startup Parameters** section.
* **REMOVE** the steam workshop collection id associated to the server

![](https://1251030218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M9HqlGThfNkt1Lk0Uyl%2F-MTk2iJvjYPJZgGe92Xz%2F-MTk2kgXk2Ae-4MBak1A%2Fws_removegif.gif?alt=media\&token=f0cac2fa-c778-4a8b-ba29-aa21e394ba33)

* **Save** your server settings with **workshop id removed**
* **Restart** the server and then join
* **Check** to see if the addon now works

If you removed the workshop collection and your addon **does NOT work**; Submit a Ticket to the developer.

If you removed the workshop collection and your addon **now works**; you will need to use [**Process of Elimination**](/faq/incompatible-addons#process-of-elimination) to figure out which addon is causing a conflict.

####

## ▸Process of Elimination

If you have verified that this addon does not function unless you remove your Steam Workshop Collection; then you will need to figure out which addon is causing conflicts. Again, this is usually not a developer issue related to addons on Gmodstore, but improperly coded addons that are provided on the workshop that have no quality control in place.

You will need create an additional Steam Workshop Collection titled something such as **Test**; and apply that new workshop id to your server; replacing your official collection.

Add a small group of addons to begin with (roughly five (5) at a time) to your new test collection, and then restart your server.&#x20;

When the server is back online, join the server and test this addon to see if it starts to function. If it does, you will need to narrow down which of the five newest addons may be causing the conflict by removing one of the five; one by one and doing a restart.

If the issue persists after five are added; then add an additional five and continue this process.

It is tedious, and takes time especially on servers which a large list of subscribed workshop items, but it is the only way to determine which addon is conflicting.

Once you find the conflicting addon; contact the developer of *this gmodstore addon* to see if some type of work-around can be developed.

{% hint style="info" %}
When adding workshop items to a test collection, start with workshop items that add major functionality. These are usually the ones that cause issues. Leave workshop items that simply add player or prop models and maps for last as these are less likely to be the issue.
{% endhint %}


# Modified Script

The answer you will receive if you wrote your own customizations which are not working.

If you modified this script and are now having issues getting your changes to function properly; this is an issue you will have to troubleshoot yourself.

I do not provide support for modifications to the base script.

This policy does **NOT** include changing settings that come out-of-box; which you will still receive support for.


# Refunds

Policy regarding refunds

It is common for customers to have basic issues with a script; immediately assume it is the script's fault, and request a refund before any type of communication or ticket has been created. Then after initial troubleshooting; it ends up being a bad installation, or a user-error.

For this reason is why refunds are not granted simply upon request if you report an issue with the script. The developer will request that you submit a ticket with the following information:

* Any errors in your server-side console
* Verifying your installation path
* Confirming the script works without any initial settings being modified

If the above points appear to be fine; then the developer is going to request additional information related to your server itself so that the developer can take a look personally.

Should bugs with the script be present; the developer will release updates addressing the issue.

Because you are dealing with digital items; a developer cannot remove your downloaded copy of an addon. *Therefore, a refund is approved in instances where no other possible solution can be provided to address your issue in a proper amount of time; as long as the issue is with the addon itself, and NOT because of user-errors.* Which will be determined by the developer after you create your initial support ticket.


# Script Errors

If your server console is throwing errors.

## ▸**Errors occur after you edited the config files?**

If yes; go back to the edited config file and remove the edits you have made and attempt to restart the server and check for errors.

## ▸**Errors occur with no edits?**

Make sure you followed the [**Install**](/setup/install) procedures properly.

## ▸**Errors occur with good install and no edits?**

Write down the error and contact the developer on [**gmodstore.com**](https://gmodstore.com)


# When Are Updates?

The number one question...

I cannot give ETAs on when updates are released. I am constantly working on adding new features, as well as bug fixes. On top of that, I have a large list of scripts that also still receive regular updates. If I give an ETA on an update release; I cannot stick to that schedule because something can arise that causes the update to be delayed; therefore, I'll never give a time / date of a release.


# Install

This section explains the installation process. Follow the instructions step-by-step.

## ◾ Install rlib

* Go to [**https://get.rlib.io/**](https://get.rlib.io/) and download the latest version of **rlib**.&#x20;
* **Extract** the downloaded zip to your computer
* **Create** a new folder on your gmod server called **rlib**
  * *Example: garrysmod/addons/**rlib**/*
* **Upload** the extracted rlib zip files to the newly created folder.&#x20;
  * Ensure you are uploading the files to match the following file structure:

&#x20;                   📁 garrysmod\
&#x20;                       📁 addons\
&#x20;                           📁 **rlib**\
&#x20;                                📁 lua\
&#x20;                                📁 materials\
&#x20;                                📁 resource

* **Restart** the server
* As the server restarts, **view** the console **for errors**.&#x20;
  * If you see errors, contact the developer with a list of them.
  * If you do not see errors, proceed forward
* **Connect** to your gmod server and spawn in.&#x20;
* Make sure you have **superadmin** access on the server. If you are using an admin mod; do one of the following sub-points below:
  * **ULX:** In server console; type `ulx adduser yourname superadmin`
  * **SAM:** In server console; type `sam giverank yourname superadmin`
  * **SGUARD:** In server console; type `serverguard_setrank yourname superadmin`
* Once you have superadmin; type **`?setup`** in chat.
* You have completed the setup. Proceed to the [**Install Addon**](/setup/install#install-addon) section below.

###

## ◾ Install addon

* Go to [**https://gmodstore.com/**](https://gmodstore.com/) and download a fresh copy of your purchased script.
* **Extract** the download zip to your computer
* **Create** a new folder on your gmod server called the name of the addon
  * Make sure the folder name contains **NO SPACES**, **NO SPECIAL CHARACTERS**, and **NO CAPS**
  * *Example:  garrysmod/addons/**linx***
* **Upload** the extracted addon files to the newly created folder
  * Ensure you are uploading the files to match the following file structure:

&#x20;                   📁 garrysmod\
&#x20;                       📁 addons\
&#x20;                           📁 **linx**\
&#x20;                                📁 lua\
&#x20;                                📁 materials\
&#x20;                                📁 resource

* **Restart** the server
* As the server restarts, **view** the console **for errors**.&#x20;
  * If you see errors, view [**Script Throwing Errors**](/faq/script-errors)
  * If you do not see errors, proceed forward
* Try to activate your addon.
  * View [**Binds**](/first-use/binds) page for list of methods available for this script.
* If you see the script actively working, then you are finished with the setup.

###

### ◾ What's Next?

Want to subscribe to this addon's **steam workshop collection**? Visit the [**Workshop**](/setup/workshop) page.

Curious about the ***/docs/web*** folder provided in your zip? Visit the [**Web**](/setup/docs-web) part of this guide.


# Verify

Validating the installation of rlib and your addon

If you want to double check and confirm the installation of rlib and your addon; you may do the following.

## ◾ Verify rlib

* Once installation is complete; connect to your Garry's Mod server.
* Open the console ( \~ )
* Execute the command:

{% tabs %}
{% tab title="Console" %}

```
rlib.version
```

{% endtab %}
{% endtabs %}

The following should output:

{% tabs %}
{% tab title="Console" %}

```
rlib Manifest: 
       Ver :  v3.2.0-stable  ( 12.06.2020 )
       Dev :  Richard
       Doc :  https://docs.rlib.io/ 
```

{% endtab %}
{% endtabs %}

##

## ◾ Verify addon

### ▸Method 1 (Console)

To verify if your addon is installed properly:

* Connect to your Garry's Mod server
* Open the console ( \~ )
* Execute the command:

{% tabs %}
{% tab title="Console" %}

```
rlib.running
```

{% endtab %}
{% endtabs %}

The following should output:

{% tabs %}
{% tab title="Console" %}

```
[CONSOLE] [rlib] nodules » linx, workshop
```

{% endtab %}
{% endtabs %}

You can also execute the following command in the server-side console:

{% tabs %}
{% tab title="Console" %}

```
rlib.modules
```

{% endtab %}
{% endtabs %}

This command should show something such as the following:

![](https://1251030218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M9HqlGThfNkt1Lk0Uyl%2F-MOBmht6oicHtYXN8KlR%2F-MOBnAeE_cGP7q8lqpyF%2Flinx_rlib_modules.png?alt=media\&token=89341c12-a4b4-4465-8af4-315021501bf6)

##

### ▸Method 2 (In-game)

Any addon that includes an interface will come with multiple ways to make it appear on-screen. Obviously, by making the interface appear, you will know that it is successfully installed.

For a list of activation methods, view the [**Binds**](/first-use/binds) page.


# Workshop

Workshop collection info related to this addon

Each addon has a workshop collection associated to it. The workshop content delivers materials, fonts, and sounds to your users so that they'll be able to see everything within the addon.

These scripts include a workshop auto-mounting system which will force each connecting player to mount the required workshop for this addon; however, if you need the workshop for other purposes or to add to your server's workshop collection; you can get it below:

[![Download](https://img.shields.io/badge/download-here-red.svg)](https://steamcommunity.com/sharedfiles/filedetails/?id=2315070701) ![Downloads](https://img.shields.io/steam/downloads/2315070701.svg?color=blue\&logo=steam) ![Subscriptions](https://img.shields.io/steam/subscriptions/2315070701.svg?color=%23DF54AF) ![Size](https://img.shields.io/steam/size/2315070701.svg)


# Docs/Web

This information explains the 'web' folder provided in your downloaded zip.

{% hint style="warning" %}
Wallpapers provided by the developer are meant to be for **demonstration purposes**. It is advised that you locate your own set of wallpapers to use with the examples provided in the download. Ensure the image file sizes are not large; otherwise they may take a few seconds to load for players who view the interface.
{% endhint %}

## ◾ 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**](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

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.

{% hint style="info" %}
Creating your own? We recommend you use an image size of **1920x1080** **minimum**.
{% endhint %}

## ◾ 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\linx\cfg\sh_cfg_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

[**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\linx\cfg\sh_cfg_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://1251030218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M9HqlGThfNkt1Lk0Uyl%2F-MOBh5A_sh1KlAB07cdi%2F-MOBh8TC1PkQXMcF7zI5%2Fwebdocs_imgur_setup.png?alt=media\&token=be186084-2874-4567-874b-f10edab7b9c1)


# Env

Library environment file.

The environment (env) file tells the library (rlib) how it should be loaded, and what needs to be done in order for the addon to work properly. Settings in this file should *only* be modified if the person knows exactly what they are doing; or by the developer. You will not be provided support if you modify this file without expressed consent by the developer.

## ▸Location

&#x20;   **`lua\modules\linx\sh_env.lua`**

## ▸Settings

| Setting                | Desc                                                                                                                                                |
| ---------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| **MODULE.enabled**     | Allows you to disable the addon without the need to move the addon's parent folder out of the server's addon folder.                                |
| **MODULE.ws\_enabled** | If false; workshop collection for the addon will not be forced to the player when they connect.                                                     |
| **MODULE.ws\_lst**     | Workshop collection to force on players if **MODULE.ws\_enabled** is true.                                                                          |
| **MODULE.mats**        | List of materials used with the addon. You may add your own, however, the server must be restarted after adding new entries before they are usable. |


# Fonts

Information related to modifying fonts.

## ▸ Location

&#x20;     **`lua\modules\linx\core\cl_fonts.lua`**

## ▸ Parameters

&#x20;     ***`str`**`    ``prefix`*\
&#x20;                         prefix added to front of **id\_name** string

&#x20;     ***`str`**`    ``id_name`*\
&#x20;                         name used to call font entry

&#x20;     ***`str`**`    ``font`*\
&#x20;                         name of font used

&#x20;    ***`int`**`     ``size`*\
&#x20;                          size for font

&#x20;    ***`int`**`     ``weight`*\
&#x20;                          font weight ( *`100, 200, 300, 400, 500, 600, 700, 800`* )

&#x20;    ***`bool`**`    ``shadow`*\
&#x20;                          add shadow casting to the font

&#x20;    ***`bool`**`    ``extended`*\
&#x20;                          allow font to display glyphs outside Latin-1 range. \
&#x20;                          unicode code points above 0xFFFF are not supported.

&#x20;    ***`bool`**`    ``symbol`*\
&#x20;                          enables the use of symbolic fonts such as Webdings

## ▸ Structure

Each font has the following structure:

{% tabs %}
{% tab title="Structure Example" %}

```lua
_f( prefix, 'id_name', 'Font Name', size, weight, shadow, extended, sym )
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="lua\modules\linx\core\cl\_fonts.lua" %}

```lua
_f( pf, 'g_section_name', 'Advent Pro Light', 32, 200 )
```

{% endtab %}
{% endtabs %}

## ▸ Saving Changes

After changing a font; you must execute the console command\
&#x20;     **`linx.fonts.reload`**

## ▸ Notes

The only values you should modify are the **font name**, **size**, **weight**, and **shadow**.

If you wish to use a **custom font** that is not included with Garry's Mod; you must provide that font in a Steam Workshop collection for your server; or sync it to players using FastDL. This documentation does not include instructions on doing that; as it's outside the scope of what the purpose of this documentation is for.


# Languages

This section explains how to add your own language

## ▸Location

All languages included with script are located in **`lua\modules\linx\lang`**

## ▸Add Language

* Copy the **lua\modules\linx\lang\en.lua** file
* Rename copied en.lua file to your own language
  * Example: **lua\modules\linx\lang\ru.lua** ( russian )
* Open the new language file in a text editor.
* Locate the line:&#x20;
  * `mod.language[ 'en' ]`
* Change the line to your new language:&#x20;
  * `mod.language[ 'ru' ]`
* Translate all of the strings to your own language.

## ▸Set Default Language

* Open the folder **lua\modules\linx\lang\\**
* Find the filename for the language you want to make as your default
* Open **lua\modules\linx\cfg\sh\_cfg.lua**
* Locate the setting **cfg.lang**
* Change **'en'** to your own language's filename (without the .lua at the end)

```lua
cfg.lang = 'ru' -- russian
cfg.lang = 'es' -- spanish
cfg.lang = 'fr' -- french
```

* Restart your server if changes do not get applied immediately.

## ▸Switching Languages

You can switch languages in-game on-the-fly by typing **`!lang`** in chat.

![](https://1251030218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M9HqlGThfNkt1Lk0Uyl%2F-MTHvk4m9_m_AVdnzi3H%2F-MTHvroFOzwx6ZobOiVT%2Flang.gif?alt=media\&token=a456ef69-f926-4084-8b07-68f7edaf2e25)

{% hint style="warning" %}
The languages in the list are a compiled set from all the addons you own running rlib. If you own multiple scripts, but only have French translations for one; then the one addon will be translated to French and the others will default to English.
{% endhint %}


# Settings

Explains configuration options, paths, and general settings information

Settings files contain a wide variety of values that can be changed and deal with how the overall addon will look and perform. These files are typically where you will turn certain addon features on/off, change feature settings, modify the colors for any user-interface provided, etc.

## ▸ Location

**`lua\modules\linx\cfg\*`**


# General

This config file controls the general settings of this addon

### ◾ cfg.lang

{% tabs %}
{% tab title="Desc" %}
default language script will use.\
see list of available languages in **linx\lua\modules\linx\lang**

You must translate your own languages if the desired language is not available.
{% endtab %}

{% tab title="Default" %}

```lua
cfg.lang = 'en'
```

{% endtab %}
{% endtabs %}

####

### ◾ cfg.initialize.esc\_enabled

{% tabs %}
{% tab title="Desc" %}
will act as an escape menu which will force it to appear when a player presses the ESC key.
{% endtab %}

{% tab title="Default" %}

```lua
cfg.initialize.esc_enabled = true
```

{% endtab %}
{% endtabs %}

####

### ◾ cfg.initialize.motd\_enabled

{% tabs %}
{% tab title="Desc" %}
will act as an MOTD (message of the day) system; which forces the interface to display for a player when they first connect to the server.
{% endtab %}

{% tab title="Default" %}

```lua
cfg.initialize.onjoin_enabled = false
```

{% endtab %}
{% endtabs %}

####

### ◾ cfg.initialize.precache

{% tabs %}
{% tab title="Desc" %}
interface will be opened for the player automatically in the background when they first connect to the server. this helps load the interface and then hide itself while they're still connecting so that all panels and assets can be loaded for future use.

this helps with the interface being faster and more responsive when the player actually presses the key to open it.
{% endtab %}

{% tab title="Default" %}

```lua
cfg.initialize.precache = false
```

{% endtab %}
{% endtabs %}

####

### ◾ cfg.general.network\_name

{% tabs %}
{% tab title="Desc" %}
text to display in upper-left side of interface
{% endtab %}

{% tab title="Default" %}

```lua
cfg.general.network_name = 'Server Name'
```

{% endtab %}

{% tab title="Location" %}

<div align="center"><img src="https://1251030218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M9HqlGThfNkt1Lk0Uyl%2F-M9QpUkLahSZMA-TEXr3%2F-M9QrcRHpCgJitS0fcg-%2F1.png?alt=media&amp;token=c1a8e04f-87bf-41ce-87cc-e03a5b3ccfaf" alt=""></div>
{% endtab %}
{% endtabs %}

####

### ◾ cfg.general.margin\_left

{% tabs %}
{% tab title="Desc" %}
amount of padding to use on the left side of the entire interface.
{% endtab %}

{% tab title="Default" %}

```lua
cfg.general.margin_left = 100
```

{% endtab %}

{% tab title="Location" %}
![](https://1251030218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M9HqlGThfNkt1Lk0Uyl%2F-M9QsHvPgKFmzoSFR7It%2F-M9QujvufUUL3BZpw5hg%2F2.png?alt=media\&token=c8ead702-ed60-456e-a57d-6bf0cd6abe24)
{% endtab %}
{% endtabs %}

####

### ◾ cfg.general.margin\_top

{% tabs %}
{% tab title="Desc" %}
amount of padding to use on the top of the entire interface.
{% endtab %}

{% tab title="Default" %}

```lua
cfg.general.margin_top = 85
```

{% endtab %}

{% tab title="Location" %}
![](https://1251030218-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M9HqlGThfNkt1Lk0Uyl%2F-M9QsHvPgKFmzoSFR7It%2F-M9QvS2pyweqY_LZXaIf%2F3.png?alt=media\&token=c566de29-167c-45cd-ae95-8a80c583418e)
{% endtab %}
{% endtabs %}


# Binds

Information related to displaying the script interface

| **Bind**  | **Desc**         | **Type**                                  |
| --------- | ---------------- | ----------------------------------------- |
| *Chat*    | **`!help`**      | Activate interface                        |
| *Chat*    | **`!motd`**      | Activate interface (if motd mode enabled) |
| *Chat*    | **`!rules`**     | Activate rules interface only             |
| *Key*     | **`F8`**         | Activate interface                        |
| *Console* | **`linx`**       | Activate interface                        |
| *Console* | **`help`**       | Activate interface                        |
| *Console* | **`motd`**       | Activate interface (if motd mode enabled) |
| *Console* | **`linx.rules`** | Activate rules interface only             |
| *Console* | **`rules`**      | Activate rules interface only             |


# Rules

## ◾ About

The **url value** for your **rules** in the addon config file has not been set.

**Open your addon's config file** and set the url to a website which contains your network's rules; OR set your config to use text-based rules instead.

## ◾ Modifying

You may edit your **text-based rules** by opening:

&#x20;      **`lua\modules\linx\cfg\sh_cfg_rules.lua`**

You may edit your **external rules url** by opening:

&#x20;      **`lua\modules\linx\cfg\sh_cfg_nav.lua`**


# Slider

This is an example website you can attach to each slide in this script. When a player sees a slider with news they are interested in; they can click the slide and get redirected to a website of your choice.

You can modify the URLs for your slider references in:**`addons\addon_folder\lua\modules\linx\cfg\sh_cfg_slider.lua`**

Slider settings can be configured within the `cfg.slider.items` table of the config file.

```lua
cfg.slider.items =
{
    {
        enabled     = true,
        title       = 'Advertise Your Banners',
        desc        = 'Edit the sh_cfg_slider.lua file to change these',
        img         = 'http://g.rlib.io/banners/static/2.jpg',
        link        = 'https://linx.rlib.io/interval/slider',
    },
    {
        enabled     = true,
        title       = 'Documentation',
        desc        = 'Read more about this addon on the official docs page',
        img         = 'http://g.rlib.io/banners/static/3.jpg',
        link        = 'https://linx.rlib.io/interval/slider',
    },
    {
        enabled     = true,
        title       = 'Stay Tuned',
        desc        = 'More product updates by this developer coming soon',
        img         = 'http://g.rlib.io/banners/static/4.jpg',
        link        = 'https://linx.rlib.io/interval/slider',
    },
}
```


# Web Demo

Information for your addon's web-browser

## ◾ About

This is a **demo page** for your addon's web-browser.

To edit this and your other URLs; open **`lua\modules\linx\cfg\sh_cfg_nav.lua`**

## ◾ Integrated Browser Mode

The integrated browser mode displays your configured websites internally within the interface.&#x20;

## ◾ Steam Browser Mode

This option will display your configured websites within the Steam overlay.

## ◾ Changing Modes

To change between Integrated Browser and the Steam Browser; open the file specified in the **About** section.

Locate the setting for each button like the following:

{% tabs %}
{% tab title="lua\modules\linx\cfg\sh\_cfg\_nav.lua" %}

```lua
cfg.nav.btn.group_int       = true
cfg.nav.btn.forums_int      = true
cfg.nav.btn.donate_int      = true
cfg.nav.btn.website_int     = true
cfg.nav.btn.workshop_int    = true
cfg.nav.btn.discord_int     = true
cfg.nav.btn.rules_int       = true
```

{% endtab %}
{% endtabs %}

| value     | description             |
| --------- | ----------------------- |
| **true**  | Integrated Browser Mode |
| **false** | Steam Overlay Mode      |

## ◾ Important Note (blank pages)

Currently; the integrated browser mode works by utilizing a library developed by Facepunch for Garry's Mod. Developers do not have access to actually change / update code in that library.

If you enable the Integrated Browser; and notice that certain websites are appearing blank; then you will need to either change the URL; or disable the integrated browser.

This is due to the fact that the provided library by Facepunch is extremely outdated and is based on Chromium v22 which is extremely outdated and does not recognize code used on websites. As of writing this; the current version of Chromium is v89.

Until Facepunch actually updates Chromium for Garry's Mod; this is the only solution.


# Status

## ◾ NEW

Files marked as **NEW** are files added to the specified version of the addon released. No further actions are needed.

####

## ◾ REM

Files marked as **REM** have been removed from the specified version of the addon release. If updating your script / overwriting existing files; ensure that you delete files marked this.


