Player.UnSpectate

From GMod Wiki

Jump to: navigation, search
Function
Syntax Player:UnSpectate( )
Description:
Make a player not spectate any more.
Returns: nil
In Object: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.UnSpectate]Player.UnSpectate [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionThis will take whatever player is passed to the function un_spectate out of spectate mode.
Used onNewerServer.png
Code
function un_spectate(ply)
  ply:UnSpectate()
end
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox