• Access a player's fov_desired convar from the server?
    3 replies, posted
How do I get access to the value of a player's convar? I cannot find a way to access a specific player's cvar. What I want to do is basically ply:GetCVarFloat("fov_desired"). How do I do this? I've only found ways to check from the clientside.
[url]http://wiki.garrysmod.com/page/Player/GetInfoNum[/url]
Why use the convar when you can just use Player:GetFOV()? It even compensates for when they are zooming in with weapons/suit zoom.
[QUOTE=BlackAwps;40427069]Why use the convar when you can just use Player:GetFOV()? It even compensates for when they are zooming in with weapons/suit zoom.[/QUOTE] Because I want to be able to set their FOV to default - 5. I mean, if you'd give me a snippet of code that I'd put into a weapon's ironsights function so I can understand what you mean, sure. [QUOTE=TweaK2007;40426626][url]http://wiki.garrysmod.com/page/Player/GetInfoNum[/url][/QUOTE] Well there that is. Thanks! And now I bookmark it so I can find it again.
Sorry, you need to Log In to post a reply to this thread.