Player.UnLock
From GMod Wiki
Function | |
Syntax | Player:UnLock( ) |
Description: | |
Unlocks a player locked with Player:Lock(). | |
Returns: | nil |
In Object: | Player |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player.UnLock]Player.UnLock [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | This example will unlock all players. |
---|---|
Used on | |
Code | local players = player.GetAll() for _, player in pairs(players) do player:UnLock() end |
Output | N/A |
Additional Notes
- Use Player.Lock to lock them.
- Like Player.Freeze except that they're still locked after killing themselves, and cannot use binds.
- People can still use their numpad.