• Gmod Gamemode - ply:SetModel() to one of player's choosing
    7 replies, posted
When the player joins the server, I want their player model to be set to the one they get in sandbox (what they have set to cl_playermodel)
hook into playerinitialspawn, and set the model to the string retrieved by the convar?
the convar is set to say, male07, not models/player/male07.mdl, I can just concatenate the strings that's no big deal, but how do you get the string from the convar?
[img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Global/GetConVar]Global.GetConVar[/url] [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/ConVar/GetString]ConVar:GetString[/url]
thanks mate
oh, actually, GetConVar() is returning what the server has it set to not the individual client.
[QUOTE=Druu;48768123]oh, actually, GetConVar() is returning what the server has it set to not the individual client.[/QUOTE] use netmessages to retrieve it from the client.
in case anyone else is looking into this, check this out [url]http://wiki.garrysmod.com/page/player_manager/TranslatePlayerModel[/url] turns it from the simplified name into the path
Sorry, you need to Log In to post a reply to this thread.