# Install

## ◾ 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**](#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/**lunera***
* **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;                           📁 **lunera**\
&#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**](https://lunera.rlib.io/faq/script-errors)
  * If you do not see errors, proceed forward
* Try to activate your addon.
  * View [**Binds**](https://lunera.rlib.io/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**](https://lunera.rlib.io/setup/workshop) page.

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