• How to enable cursor with movement restriction
    3 replies, posted
i was using gui.EnableScreenClicker but it does not restrict movement.
You could use [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Player/Freeze]Player:Freeze[/url]. [I]Please tell me what you exactly mean by "restrict movement" if I am wrong.[/I]
For example when you press f3 in darkrp , it enables cursor but it doesnt let you move with WASD. I need something like this.
[URL]http://wiki.garrysmod.com/page/gui/EnableScreenClicker[/URL] Then restrict player movement by using [URL]http://wiki.garrysmod.com/page/GM/StartCommand[/URL] Ideally ones that don't rely on the client entirely. Obviously the server needs to know when the player should be "frozen" so trigger the mouse being enabled on the server, and network it to the client.
Sorry, you need to Log In to post a reply to this thread.