Garry's Mod
Download vyhub-gmod-?.?.?.zip fitting to your version here:
https://github.com/matbyte-com/vyhub-gmod/releases
Compatible Admin Mods
- xAdmin (1/2)
- ULX
- ServerGuard
- SAM
- FAdmin
- sAdmin
- Maybe more
Installation
- In VyHub open the
Add Serverdialog in theServersettings and create the server. - Click on the
Setupbutton of the server and follow the instructions. - Optionally, adjust the config files to your needs.
Group Sync
You can sell groups and VIP-ranks through VyHub for your gameserver. Syncing the user groups can be either done through a command or by using the VyHub Group-Sync feature. Read more about syncing groups in the group guide.
User groups are automatically synced. For this to work correctly, the serverbundle must be in multigoup: disabled
mode.
VyHub group names can be mapped to in-game groups at the Advanced Properties tab in the group settings.
The group sync can be disabled in sv_config.lua.
Commands
!dashboard: Open server dashboard (with bans and warnings)!warn <user> <reason>: Warn a user!warnings: Open the warnings page*!bans: Open the bans page*!shop: Open the shop page*!user <user>: Open the profile page of the given user*
* Command changeable in sv_config.lua
Rewards
For Garry's Mod, two types of rewards are supported:
COMMAND: Executes a console command on the serverSCRIPT: Executes a Lua script on the server- IMPORTANT: For this to work, you need to:
- execute
vh_config reward_disable_scripts falsein the server console
- execute
- IMPORTANT: For this to work, you need to:
Available replacements
The following string replacements are available for both types of rewards:
%user_id%: The VyHub user id%nick%: The players in-game nickname%steamid64%: The players steamid64%steamid32%: The players steamid32%uniqueid%: The players uniqueid%applied_packet_id%: The id of the applied packet%packet_title%: The title of the packet%purchase_amount%: Total amount with currency of the purchase. For example30 EUR. If a packet was applied without a purchase:-.
For the SCRIPT reward, the player object is available in the script as PLAYER.
Reserved Slots
It is possible to configure reserved slots in the server settings.
| Setting | Description |
|---|---|
| Number of reserved slots | How many slots of the total slots of your server should be reserved. |
| Keep reserved slots free | If this is enabled, the reserved slots will not actually be used. Instead, a player with access to a reserved slot will automatically kick the newest player if the server is full. However, for this to work, a few of these fake reserved slots must exist to allow permitted players to join even if the server is full. |
| Hide reserved slots | Hide the reserved slots in the server browser. Only the slot count without the reserved slots will be shown. This works best together with the "Keep reserved slots free" option. |
Giving access to reserved slots
There are two ways to give player access to reserved slots:
- By adding the user to a group that has the
reserved_slot_useproperty. - By creating a reward on connecting that executes the following script:
table.insert(VyHub.Server.reserved_slot_plys, PLAYER:SteamID64())
Ban Integration
vyhub-gmod automatically catches bans of compatible admin mods and transforms them to VyHub bans.
This feature can be disabled in the sv_config.lua.
Lua
ply:VyHubID(): Returns VyHub user ID. May benil.VyHub.API:{get,post,patch,delete}(...): Use VyHub API
Console Commands
The console commands can only be used in the server console.
vh_dashboard: Open/Close server dashboardvh_reinit: Reinitialize VyHub addonsvh_ban <steamid64> <minutes> <reason>: Ban a playervh_unban <steamid64>: Unban a playervh_setgroup <steamid64> <group> [<bundle>]: Add player to a group in a serverbundle. By default, the serverbundle of the executing server is used.
Troubleshooting
Broken Bans/Unbans
Problem: Every few seconds the server tries to send a ban to VyHub, but the ban data is malformed, which causes the request to never succeed.
Solution: Delete the file data/vyhub/ban_queue.json.