Garry's Mod Wiki

Revision Difference

GM:SetPlayerSpeed#552892

<function name="SetPlayerSpeed" parent="GM" type="hook"> <ishook>yes</ishook>⤶ <description> Sets player run and sprint speeds. <warning>This is not a hook. Treat this as a utility function to set the player's speed.</warning> </description> <realm>Shared</realm> <predicted>No</predicted>⤶ <hidepredictionwarning>No</hidepredictionwarning>⤶ <args> <arg name="ply" type="Player">The player to set the speed of.</arg> <arg name="walkSpeed" type="number">The walk speed.</arg> <arg name="runSpeed" type="number">The run speed.</arg> </args> </function>