Hooks/Shared/UpdatePlayerSpeed

From Official DarkRP Wiki
Jump to navigation Jump to search
Hook
Hook name UpdatePlayerSpeed(Player ply)
Description:
Change a player's walking and running speed.
Error.png 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: NewerShared.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Shared/UpdatePlayerSpeed]UpdatePlayerSpeed hook[/url][/b]

Parameters

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

Return values

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