Player.SetCanZoom

From GMod Wiki

Jump to: navigation, search
Function
Syntax Player:SetCanZoom( )
Description:
Sets whether or not a player can zoom (+zoom).
Returns: nil
In Object: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.SetCanZoom]Player.SetCanZoom [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]




Example

DescriptionDon't let the first player use the HEV suit zoom.
Used onNewerServer.png
Code
local ply = player.GetByID( 1 )
ply:SetCanZoom( false )
 
OutputNone


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox