GMA Extractor for Garry's Mod Addons
Drop a Garry's Mod .gma file to see what the addon contains and unpack it: the lua scripts, models, materials and sounds come out in a ZIP with their folders, plus an addon.json so you can re-pack it with gmad. It does what gmad.exe extract does, in your browser, without uploading the addon.
How to extract a GMA file
- 1
Find the .gma
Workshop addons are stored as .gma files, usually under steamapps/workshop/content/4000/<item id>/ or garrysmod/cache/workshop.
- 2
Drop it here
The header is read first: addon name, author, type, tags and the number of files, then the full file list.
- 3
Browse and preview
Search the paths, open Lua, VMT and text files to read them, and view VTF textures and images. Each file is checked against its stored CRC.
- 4
Download the ZIP
Extract everything (or your search matches) into a ZIP with lua/, models/, materials/ and sound/ folders as they were packed.
Inside a GMA file
GMA (Garry's Mod Addon) is a simple archive made by gmad.exe. This tool reads versions 1 to 3.
| Signature | "GMAD" followed by a version byte (3 for current addons). |
|---|---|
| Header | The SteamID64 and time it was packed, the addon name, a JSON description with type and tags, the author and an addon version. |
| File list | Each file's path, size and CRC32, in order. Paths are lower case, such as lua/autorun/myaddon.lua. |
| File data | The files' bytes back to back after the list, uncompressed. |
| Types | gamemode, map, weapon, vehicle, npc, entity, tool, effects, model or servercontent. |
| addon.json | Rebuilt from the header (title, type, tags, ignore list), so the extracted folder can be packed again with gmad.exe create. |
| Compressed downloads | Old Workshop downloads named *.bin are LZMA-compressed. Unpack them with 7-Zip first; the tool tells you when it sees one. |
Why unpack a GMA?
Server owners unpack addons to check the Lua code before they run it, to merge several addons into one content pack, or to fix a broken path. Mappers and modellers unpack them to look at how a model's materials are set up. Players unpack them to find a sound or texture. Reading the Lua first is a good habit: an addon's scripts run with the same access as any other server code.
GMA extractor vs gmad.exe
gmad.exe ships in GarrysMod/bin and extracts with a command line (gmad extract -file addon.gma). It works only on Windows unless you run it through Wine. This page gives the same result on any system, shows the file list before you extract, and lets you pull out just the files you need.
Need a new model or texture for your mod?
Make a 3D model from a photo or a short text prompt with AI, or generate a seamless texture, then bring it into your Source or GoldSrc project with these free converters.
More free Source modding tools
GMA extractor questions
Valve, Source, Garry's Mod, Team Fortress 2 and Counter-Strike are trademarks of Valve Corporation, named only to describe file compatibility; The3DAI is not affiliated with or endorsed by Valve.