Parallax is a modular roleplay framework for Garry's Mod.
It provides the core runtime (characters, items, factions, commands, networking, modules, hooks), while your schema defines game-specific content.
- Documentation: https://parallax-framework.github.io/parallax/
- Beginner manuals:
manuals/README.md - Generated API docs source:
docs/api/ - Starter schema: parallax-skeleton
- Production schema example: parallax-hl2rp
- Community Discord: https://discord.gg/yekEvSszW3
This repository is the framework itself.
You typically run Parallax by deriving a separate schema gamemode from it.
Core areas:
gamemode/framework/- Framework systems and shared runtime libraries.gamemode/modules/- Optional feature modules.manuals/- Handwritten beginner-friendly docs.tools/generate_docs.py- Lua annotation to MkDocs API generator..github/workflows/docs-pages.yml- GitHub Pages deployment workflow.
- Put this repository in your GMod gamemodes folder as
parallax. - Create or clone a schema that derives from
parallax. - Launch your server with that schema.
Minimal schema bootstrap:
gamemode/init.lua
AddCSLuaFile("cl_init.lua")
DeriveGamemode("parallax")gamemode/cl_init.lua
DeriveGamemode("parallax")gamemode/schema/boot.lua
SCHEMA.name = "My Schema"
SCHEMA.description = "My schema powered by Parallax."
SCHEMA.author = "YourName"You can start faster by using parallax-skeleton.
Parallax docs are split into:
- Manuals (
manuals/) for onboarding and architecture. - Generated API (
docs/api/) from Lua doc annotations.
Generate and preview locally:
python -m pip install --upgrade pip
pip install mkdocs-material
python tools/generate_docs.py --clean
mkdocs serveBuild static output:
mkdocs buildOn push to main, GitHub Actions runs tools/generate_docs.py, builds MkDocs, and deploys site/ to GitHub Pages via .github/workflows/docs-pages.yml.
- Keep file realm prefixes consistent:
cl_,sh_,sv_. - Add Lua doc annotations for public functions so API pages stay complete.
- Regenerate docs before opening PRs that change framework APIs.
Parallax uses a custom MIT-based license with attribution and modification disclosure requirements.
If code is taken, used, or modified, it must be clearly disclosed and credited to the original holders (Riggs and bloodycop6385).
See LICENSE for the full legal text.