_comment: 'DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL' meta: version: PLCN_v3 update_url: 'https://github.com/pelican-dev/panel/raw/main/database/Seeders/eggs/source-engine/egg-garrys-mod.yaml' exported_at: '2025-10-31T12:37:53+00:00' name: 'Garrys Mod' author: panel@example.com uuid: 60ef81d4-30a2-4d98-ab64-f59c69e2f915 description: |- Garrys Mod, is a sandbox physics game created by Garry Newman, and developed by his company, Facepunch Studios. image: 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyNC4zLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAzODQgMzg0IiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAzODQgMzg0OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPg0KCS5zdDB7ZmlsbDojMDA4MUZGO30NCgkuc3Qxe2ZpbGw6I0ZGRkZGRjt9DQo8L3N0eWxlPg0KPHBhdGggY2xhc3M9InN0MCIgZD0iTTM0My45MiwzODRjLTEwMS42LDAtMjAzLjIsMC0zMDQuOCwwYy0wLjg5LTAuNDQtMS44NC0wLjMxLTIuNzktMC4zOGMtNC41MS0wLjM2LTguNjEtMi4wNy0xMi41Ni00LjEzDQoJYy01LjktMy4wNy0xMC44NC03LjMxLTE0LjkyLTEyLjU0Yy0zLjkzLTUuMDQt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uOSwwLjAxcy0wLjAxLDAuOTYtMC4wMSwxLjEyYzAuMTYsOC44NiwyLjYyLDE2Ljg2LDguNzcsMjMuNDRjNC41OSw0LjkxLDEwLjI2LDguMTYsMTYuNyw5Ljg5DQoJYzE0Ljk2LDQuMDMsMjkuNTksMy4xOSw0My40OS0zLjk4YzEyLjUtNi40NSwyMC40LTE2LjU0LDIxLjMtMzAuODVjMC42Ny0xMC43OSwwLjI3LTIxLjY2LDAuMzQtMzIuNDkNCglDMjM1LjU3LDIyMi4zNSwyMzUuNTcsMjIxLjc5LDIzNS41NywyMjEuOTF6Ii8+DQo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTUwLjc3LDE0OS44MmMtMC4zLTExLjc5LDAuOTMtMjMuMzcsNS41NS0zNC4zNWM1LjQzLTEyLjg5LDE0LjkxLTIwLjc0LDI4LjktMjIuODgNCgljOS42Ny0xLjQ4LDE5LjA4LTAuODUsMjcuOTksMy40N2M4LjksNC4zMiwxNC4zOSwxMS43LDE3Ljk5LDIwLjY0YzMuNTMsOC43NSw1LjMzLDE3Ljk0LDUuNDYsMjcuMzFjMC4xMiw4LjM4LDAuMDksMTYuODktMS4yLDI1LjE0DQoJYy0yLjU5LDE2LjU3LTE0LjA5LDMyLjA4LTMxLjczLDM2LjRjLTE2LjA5LDMuOTQtMzIuNjktMi4yMy00Mi4yOC0xNS44MWMtNi43NC05LjUzLTkuODUtMjAuMjEtMTAuNjYtMzEuNjgNCglDMTUwLjYxLDE1NS4zMywxNTAuNzcsMTUyLjU3LDE1MC43NywxNDkuODJ6Ii8+DQo8L3N2Zz4NCg==' tags: - source - steamcmd features: - gsl_token - steam_disk_space docker_images: Source: 'ghcr.io/parkervcp/games:source' file_denylist: { } startup_commands: Default: './srcds_run -game garrysmod -console -port {{SERVER_PORT}} +ip 0.0.0.0 +host_workshop_collection {{WORKSHOP_ID}} +map {{SRCDS_MAP}} +gamemode {{GAMEMODE}} -strictportbind -norestart +sv_setsteamaccount {{STEAM_ACC}} +maxplayers {{MAX_PLAYERS}} -tickrate {{TICKRATE}} $( [ "$LUA_REFRESH" == "1" ] || printf %s ''-disableluarefresh'' )' config: files: { } startup: done: 'gameserver Steam ID' logs: { } stop: quit scripts: installation: script: |- #!/bin/bash # steamcmd Base Installation Script # # Server Files: /mnt/server ## just in case someone removed the defaults. if [ "${STEAM_USER}" == "" ]; then echo -e "steam user is not set. " echo -e "Using anonymous user. " STEAM_USER=anonymous STEAM_PASS="" STEAM_AUTH="" else echo -e "user set to ${STEAM_USER}" fi ## download and install steamcmd cd /tmp mkdir -p /mnt/server/steamcmd curl -sSL -o steamcmd.tar.gz https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz tar -xzvf steamcmd.tar.gz -C /mnt/server/steamcmd mkdir -p /mnt/server/steamapps # Fix steamcmd disk write error when this folder is missing cd /mnt/server/steamcmd # SteamCMD fails otherwise for some reason, even running as root. # This is changed at the end of the install process anyways. chown -R root:root /mnt export HOME=/mnt/server ## install game using steamcmd ./steamcmd.sh +force_install_dir /mnt/server +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} ${EXTRA_FLAGS} validate +quit ## other flags may be needed depending on install. looking at you cs 1.6 ## set up 32 bit libraries mkdir -p /mnt/server/.steam/sdk32 cp -v linux32/steamclient.so ../.steam/sdk32/steamclient.so ## set up 64 bit libraries mkdir -p /mnt/server/.steam/sdk64 cp -v linux64/steamclient.so ../.steam/sdk64/steamclient.so # Creating needed default files for the game cd /mnt/server/garrysmod/lua/autorun/server echo ' -- Docs: https://wiki.garrysmod.com/page/resource/AddWorkshop -- Place the ID of the workshop addon you want to be downloaded to people who join your server, not the collection ID -- Use https://beta.configcreator.com/create/gmod/resources.lua to easily create a list based on your collection ID resource.AddWorkshop( "" ) ' > workshop.lua cd /mnt/server/garrysmod/cfg echo ' // Please do not set RCon in here, use the startup parameters. hostname "New Gmod Server" sv_password "" sv_loadingurl "" sv_downloadurl "" // Steam Server List Settings // sv_location "eu" sv_region "255" sv_lan "0" sv_max_queries_sec_global "30000" sv_max_queries_window "45" sv_max_queries_sec "5" // Server Limits sbox_maxprops 100 sbox_maxragdolls 5 sbox_maxnpcs 10 sbox_maxballoons 10 sbox_maxeffects 10 sbox_maxdynamite 10 sbox_maxlamps 10 sbox_maxthrusters 10 sbox_maxwheels 10 sbox_maxhoverballs 10 sbox_maxvehicles 20 sbox_maxbuttons 10 sbox_maxsents 20 sbox_maxemitters 5 sbox_godmode 0 sbox_noclip 0 // Network Settings - Please keep these set to default. sv_minrate 75000 sv_maxrate 0 gmod_physiterations 2 net_splitpacket_maxrate 45000 decalfrequency 12 // Execute Ban Files - Please do not edit exec banned_ip.cfg exec banned_user.cfg // Add custom lines under here ' > server.cfg container: 'ghcr.io/parkervcp/installers:debian' entrypoint: bash variables: - name: Gamemode description: 'The gamemode of your server.' env_variable: GAMEMODE default_value: sandbox user_viewable: true user_editable: true rules: - required - string sort: 5 - name: 'Lua Refresh' description: "0 = disable Lua refresh,\r\n1 = enable Lua refresh" env_variable: LUA_REFRESH default_value: 0 user_viewable: true user_editable: true rules: - required - boolean sort: 8 - name: Map description: 'The default map for the server.' env_variable: SRCDS_MAP default_value: gm_flatgrass user_viewable: true user_editable: true rules: - required - string - alpha_dash sort: 1 - name: 'Max Players' description: 'The maximum amount of players allowed on your game server.' env_variable: MAX_PLAYERS default_value: 32 user_viewable: true user_editable: true rules: - required - integer - 'max:128' sort: 6 - name: 'Source AppID' description: 'Required for game to update on server restart. Do not modify this.' env_variable: SRCDS_APPID default_value: 4020 user_viewable: false user_editable: false rules: - required - string - 'max:20' sort: 3 - name: 'Steam Account Token' description: 'The Steam Account Token required for the server to be displayed publicly.' env_variable: STEAM_ACC default_value: '' user_viewable: true user_editable: true rules: - nullable - string - alpha_num - 'size:32' sort: 2 - name: Tickrate description: "The tickrate defines how fast the server will update each entity's location." env_variable: TICKRATE default_value: 22 user_viewable: true user_editable: true rules: - required - integer - 'max:100' sort: 7 - name: 'Workshop ID' description: 'The ID of your workshop collection (the numbers at the end of the URL)' env_variable: WORKSHOP_ID default_value: '' user_viewable: true user_editable: true rules: - nullable - integer sort: 4