If you are a server owner running sv_pure 2 (white-list mode), note that textures.ini is often unless you specifically allow client-side overrides. To enable it, add garrysmod/textures.ini to your pure_server_whitelist.txt .
Tells the game/engine how to load, filter, or tile certain textures (e.g., [Texture0] section with File=wall01.png , WrapMode=Repeat ). textures.ini
function SwapTexture(original, replacement) local file = file.Open("garrysmod/textures.ini", "a") if file then file.Write("\"" .. original .. "\" \"" .. replacement .. "\"\n") file:Close() RunConsoleCommand("mat_reloadallmaterials") end end If you are a server owner running sv_pure
: Contains the actual mapping of original texture "hashes" (unique IDs) to the new replacement image files. 2. Configuration Options Within the section, you typically find: version = 1 or tile certain textures (e.g.
[Texture1] ID = "wall_brick_01" File = brick_red_diffuse.dds Format = DXT5 Mipmaps = true