player_manager.TranslatePlayerModel

From GMod Wiki

Jump to: navigation, search
Function
Syntax player_manager.TranslatePlayerModel( String name )
Where is this used?
Description:
This function will translate the "name" parameter into a valid player model filename. If the name specified isn't a valid model, it will return the default player model: "models/player/Kleiner.mdl".
Returns: String
Part of Library: player manager
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player manager.TranslatePlayerModel]Player manager.TranslatePlayerModel [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionPrints the model path for a certain playermodel.
Used onNewerShared.png
Code
print(player_manager.TranslatePlayerModel("breen"))
Outputmodels/player/breen.mdl


Additional Notes

NameFilename
alyxmodels/player/alyx.mdl
barneymodels/player/barney.mdl
breenmodels/player/breen.mdl
combinemodels/player/combine_soldier.mdl
prisonmodels/player/combine_soldier_prisonguard.mdl
supermodels/player/combine_super_soldier.mdl
elimodels/player/eli.mdl
gmanmodels/player/gman_high.mdl
kleinermodels/player/Kleiner.mdl
scientistmodels/player/Kleiner.mdl
monkmodels/player/monk.mdl
mossmanmodels/player/mossman.mdl
ginamodels/player/mossman.mdl
odessamodels/player/odessa.mdl
policemodels/player/police.mdl
zombiemodels/player/classic.mdl
burntmodels/player/charple01.mdl
corpsemodels/player/corpse1.mdl
charplemodels/player/charple01.mdl
zombinemodels/player/zombie_soldier.mdl
magnussonmodels/player/magnusson.mdl
fzombiemodels/player/Zombiefast.mdl
strippedmodels/player/soldier_stripped.mdl
female1models/player/Group01/female_01.mdl
female2models/player/Group01/female_02.mdl
female3models/player/Group01/female_03.mdl
female4models/player/Group01/female_04.mdl
female5models/player/Group01/female_06.mdl
female6models/player/Group01/female_07.mdl
female7models/player/Group03/female_01.mdl
female8models/player/Group03/female_02.mdl
female9models/player/Group03/female_03.mdl
female10models/player/Group03/female_04.mdl
female11models/player/Group03/female_06.mdl
female12models/player/Group03/female_07.mdl
male1models/player/Group01/male_01.mdl
male2models/player/Group01/male_02.mdl
male3models/player/Group01/male_03.mdl
male4models/player/Group01/male_04.mdl
male5models/player/Group01/male_05.mdl
male6models/player/Group01/male_06.mdl
male7models/player/Group01/male_07.mdl
male8models/player/Group01/male_08.mdl
male9models/player/Group01/male_09.mdl
male10models/player/Group03/male_01.mdl
male11models/player/Group03/male_02.mdl
male12models/player/Group03/male_03.mdl
male13models/player/Group03/male_04.mdl
male14models/player/Group03/male_05.mdl
male15models/player/Group03/male_06.mdl
male16models/player/Group03/male_07.mdl
male17models/player/Group03/male_08.mdl
male18models/player/Group03/male_09.mdl
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox