# Install

## <mark style="color:red;">▸ Install rlib</mark>

* 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;                           📁 <mark style="color:green;">**rlib**</mark>\
&#x20;                                📁 lua\
&#x20;                                📁 materials\
&#x20;                                📁 resource

{% hint style="warning" %} <mark style="color:orange;">**WARNING:**</mark>\
Downloading the rlib zip will automatically place it inside a folder called **im-richard-XXXXXX**. Make sure that you do not place the lua, material, and resource folders too deep in multiple folders.
{% endhint %}

* **Restart** 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:
  * <mark style="color:yellow;">**ULX**</mark>**:** Type in server console: <mark style="color:yellow;">`ulx adduser yourname superadmin`</mark>
  * <mark style="color:yellow;">**SAM**</mark>**:** Type in server console:<mark style="color:yellow;">`sam giverank yourname superadmin`</mark>
  * <mark style="color:yellow;">**SGUARD**</mark>**:** Type in server console: <mark style="color:yellow;">`serverguard_setrank yourname superadmin`</mark>
* Once you have superadmin; type <mark style="color:yellow;">**`?setup`**</mark> in chat.
* You have completed the setup. Proceed to the [**Install Addon**](broken://pages/-MFKE7rR9eafweSbpIHl#install-addon) section below.

## <mark style="color:red;">▸</mark> <mark style="color:red;">Install addon</mark>

* Go to [**https://gmodstore.com/**](https://gmodstore.com/) and download a fresh copy of your purchased script.
* **Extract** downloaded zip to your computer
* **Create** new folder on gmod server with the name of the addon
  * Make sure the folder name contains <mark style="color:red;">**NO SPACES**</mark>, <mark style="color:red;">**NO SPECIAL CHARACTERS**</mark>, and <mark style="color:red;">**NO CAPS**</mark>
  * *Example:  garrysmod/addons/**hudhive***
* **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;                           📁 <mark style="color:green;">**hudhive**</mark>\
&#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**](broken://pages/-MTHyQd3C5mQOqKnAR6A)
  * If you do not see errors, proceed forward
* Try to activate your addon.
  * View [**Binds**](broken://pages/-MO60n3QnGr2kt-M-GDZ) page for list of methods available for this script.
* If you see the script actively working, then you are finished with the setup.

## <mark style="color:red;">▸ What's Next?</mark>

Want to subscribe to this addon's **steam workshop collection**? Visit the [**Workshop**](broken://pages/-MFKEyM_jfxq9_G-8wc7) page.

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hudhive.rlib.io/setup/install.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
