util.GetModelInfo

From GMod Wiki

Jump to: navigation, search
Function
Syntax util.GetModelInfo( String Model Path )
Where is this used?
Description:
Returns a table containing the number of skins in a model.
Returns: Table Skin Count
Part of Library: Util
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Util.GetModelInfo]Util.GetModelInfo [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionAssuming that you have defined "target" someplace, this dumps the table to the console.
Used onNewerServer.png
Code
Msg("\tUtil.GetModelInfo: ".. util.TableToKeyValues(util.GetModelInfo(target:GetModel())).."\n")
Output Util.GetModelInfo: "Out" { "SkinCount" "1" }


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox