Player.Lock

From GMod Wiki

Revision as of 17:56, 25 August 2011 by ClavusElite (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Player:Lock( )
Description:
Stops players from using any inputs, such as moving or firing
Returns: nil
In Object: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.Lock]Player.Lock [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionThis example will lock all players.
Used onNewerServer.png
Code
local players = player.GetAll()
for _, player in pairs(players) do
   player:Lock()
end
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox