Garry's Mod Wiki

GM:CreateMove

  boolean GM:CreateMove( CUserCmd cmd )

Description

Allows you to change the players movements before they're sent to the server.

See Game Movement for an explanation on the move system.

Due to this hook being clientside only, it could be overridden by the user allowing them to completely skip your logic, it is recommended to use GM:StartCommand in a shared file instead.

Arguments

1 CUserCmd cmd
The User Command data

Returns

1 boolean
Return true to:
  • Disable Sandbox C menu "screen clicking"
  • Disable Teammate nocollide (verification required)
  • Prevent calling of C_BaseHLPlayer::CreateMove & subsequently C_BasePlayer::CreateMove