TOOL:FreezeMovement
From GMod Wiki
| Event Hook | |
| Hook Name | FreezeMovement |
| Syntax | TOOL:FreezeMovement( ) |
| Description | Called every frame while the player can aim, so when no menu is open. |
| Returns | Nil |
| Lua State | |
| BBCode | [b][url=wiki.garrysmod.com/?title=TOOL:FreezeMovement]TOOL:FreezeMovement [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Blocks player's aiming. |
|---|---|
| Used on | |
| Code | function TOOL:FreezeMovement() return true end |
| Output | N/A |
Additional Notes
- Returning true will block the aiming of the player.