Garry's Mod

Garry's Mod

118 ratings
List all materials of a model!
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
File Size
Posted
Updated
1.301 KB
22 May, 2015 @ 12:30pm
21 Jun, 2016 @ 10:00pm
2 Change Notes ( view )

Subscribe to download
List all materials of a model!

In 4 collections by Cédric GÉRILLE [GiletJaune]
Soccer by Mohamed RACHID
37 items
Université Joseph Poireau (serveur)
70 items
Dev Tests Mohamed
50 items
G-1:788429
50 items
Description
Please click the picture and read how to use!

Intro
This addon provides a console command that lists all the materials used in a model.
1) You can use the list to easily find all required VMT files and VTF files needed by a model, to put them into the download list.
2) You can use the list to replace sub-materials of an entity.

[curse.com]

Usage
You can run this console command on the client or on the server, it does not matter.
list_all_materials "models/odessa.mdl"

Example of customization
This code (copy and paste to console) allows to replace the material #4 of the 1st Odessa NPC that you spawned:
lua_run ents.FindByClass('npc_citizen')[1]:SetSubMaterial(4, 'models/props_combine/combine_interface_disp')
27 Comments
stevensky 19 Sep, 2024 @ 7:02am 
really useful!
Cédric GÉRILLE [GiletJaune]  [author] 20 Apr, 2023 @ 10:54am 
Do you have all the materials installed for the said model? If I remember correctly, missing materials are not reported correctly.
[Jesus42] 15 Mar, 2023 @ 7:59pm 
Don't work for me(
Please say me monitor material (models/props_phx/sp_screen.mdl)
I need this cam material
Cédric GÉRILLE [GiletJaune]  [author] 5 Apr, 2021 @ 8:48am 
Thanks!
Paul 26 Mar, 2021 @ 7:54am 
Big up. Quite useful to handle models.
Cédric GÉRILLE [GiletJaune]  [author] 3 Feb, 2021 @ 2:24pm 
Please use my add-on Momo's Map Manipulation Tool and extract the LUMP_TEXDATA_STRING_TABLE as text!
The exact lump that you need to extract may be wrong as I do not have GMod available at the moment, but for sure it is a lump that can be extracted as text.
RobloxGranite 23 Jan, 2021 @ 3:04pm 
can you make a addon that allows you to do this with a map
Cédric GÉRILLE [GiletJaune]  [author] 7 Apr, 2019 @ 12:35am 
Thanks for asking!
Lord Inferno Bot 6 Apr, 2019 @ 7:13pm 
thank you very much Jean-Bernard H. [GiletJaune], it made my work easy for me.
Cédric GÉRILLE [GiletJaune]  [author] 6 Apr, 2019 @ 7:00pm 
I'm sorry but it is not the purpose of this addon.
You can use the Easy Entity Inspector instead, I think it can do that for you.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=195065185