libloader
is an attempt to make a package manager for Garry's Mod.
All packages are searched on GitHub, in open source repositories.
- autumngmod/cream - Web based UI (React/Vue/etc) in Garry's Mod
- autumngmod/logmo - Small logger utility library
- autumngmod/binloader - Auto
DLL
module loader - autumngmod/workyaround - Creates a data/worky folder whose contents are passed to the client anyway, bypassing Garry's Mod's prohibitions on extensions.
Download latest release, and put it to GarrymodDS/garrysmod/lua/autorun/
(its minified version of libloader
)
Note
Alternatively, you can just download this repository, and install libloader as an addon. This way you can make sure that the code is not modified and does not contain anything dangerous.
Note
You can hide tooltips (hints) by using the libloader_showhints 0
command
# Installation of latest version of library
lib i/install autumngmod/binloader
# Forcing a version
lib install autumngmod/binloader@0.1.0
# # Forcing a version with a flag
lib install autumngmod/binloader --version 0.1.0
Note
Libraries are disabled by default, so enable them after installation.
lib en/enable autumngmod/binloader@0.1.0
lib disable autumngmod/binloader@0.1.0
lib remove/delete/r autumngmod/binloader@0.1.0
lib list
Your repository should have an addon.json file in GitHub release, and its contents should match this json schema.
Example:
{
"$schema": "https://raw.githubusercontent.com/autumngmod/json/refs/heads/main/addon.scheme.json",
"name": "Addon's name",
"description": "Short description",
"authors": ["author1", "author2"],
"version": "0.1.0",
"githubRepo": "https://github.com/example/repo",
"side": ["server", "client"]
}
Also, the library itself should be uploaded to GitHub Release under the name lib.lua.
Note
Yes, the library itself should be compressed into a single file.
You can do this either manually or via GitHub Actions like gm-donate/igs.
Note
GitHub Release should have a name like βv*...*β, e.g. βv0.1.0β.