Garry's Mod Wiki

GM:SetPlayerSpeed

  GM:SetPlayerSpeed( Player ply, number walkSpeed, number runSpeed )

Description

Sets player run and sprint speeds.

This is not a hook. Treat this as a utility function to set the player's speed.

Arguments

1 Player ply
The player to set the speed of.
2 number walkSpeed
The walk speed.
3 number runSpeed
The run speed.