Unlock the power of Garry's Mod scripting! This guide breaks down the GMod Lua API, helping you understand and utilize its functions for custom game modes and addons.
This guide will help you understand the Garry's Mod API (GMod Lua). It covers server configuration, installing content, and uploading maps.
Basic server configuration
Create backup
You can create backups for your GPORTAL server. Free storage space is provided for saving your gameplay. Backups are not created automatically.
How to create a backup via the web interface:
- Log on to our website
- Click on “My Servers” in the menu on the left
- Select the desired server
- Click on “Backup” in the “Administration” menu on the left
- Click on “Create Backup“
- The server stops for the backup
- After creating the backup, the server restarts automatically
Further Garry’s Mod server configuration
How do I install Steam workshop content?
- Generate an API Key at https://steamcommunity.com/dev/apikey
- Log on to our website
- Click on “My Server” in the menu on the left
- Select the chosen server
- Stop the server
- Navigate to “Basic Settings” in the menu on the left
- Under the “Workshop” item, enter the API Key
- Enter the Collection ID under “Workshop Collection”
- Confirm the change using the “Save” button
- Restart the server
Note Only complete collections work.
If you do not see the address bar on Steam, navigate to Steam-> Settings-> Interface and select “Show Steam URL address bar if available“.
How do I install DarkRP?
- Download DarkRP from GitHub
- Unzip the download on your computer
- Name the unzipped folder in “darkrp“
- Log on to your GPORTAL account
- Select the chosen server
- Make a note of the FTP access data
- Use an FTP client to connect to the FTP
- Navigate to the “/garrysmod/gamesmodes” folder
- Navigate to “Basic Settings” in the web interface on the left
- Stop the server
- Select the game mode “DarkRP”
- Restart the server
Note Regularly update DarkRP. We recommend an interval of 1-2 months. Perform the above steps to update, overwriting the folder on the FTP server.
Frequently Asked Questions / FAQ
How do I upload Garry’s Mod maps?
Maps for Garry’s Mod must be uploaded via the FTP server. Maps in workshop collections will not be transferred.
- Log on to our website
- Select the chosen server
- Make a note of the FTP data
- Start your FTP client (e.g. FileZila)
- Navigate to the “/maps” folder
- Load the maps into the directory
- Restart the server to implement the changes
100% Human-Written. AI Fact-Checked. Community Verified. Learn how AntMag verifies content