Hooks/Shared/UpdatePlayerSpeed

From DarkRP
Hook
Hook name UpdatePlayerSpeed(Player ply)
Description:
Change a player's walking and running speed.
Warning:

This hook is deprecated. You should avoid using it as it only exists for backwards compatibility and may be removed from a future version.
Use GMod's SetupMove and Move hooks instead.

Returns: nil
Realm:
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Shared/UpdatePlayerSpeed]UpdatePlayerSpeed hook[/url][/b]

Parameters[edit]

  1. ply (Player)
  2. The player for whom the speed changes.

Return values[edit]

This hook does not accept return values. You can still return a value to override the default implementation of this hook.