Player.SetMaxSpeed

From GMod Wiki

Jump to: navigation, search
Function
Syntax Player:SetMaxSpeed( Integer MaxSpeed )
Description:
Sets the player's maximum speed. Sprinting resets maximum speed.
Returns: nil
In Object: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.SetMaxSpeed]Player.SetMaxSpeed [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionMakes everyone run like crazy
Used onNewerServer.png
Code
for i, ply in pairs(player.GetAll()) do
    if ( ply:IsValid() ) then
        ply:SetMaxSpeed(5000)
    end
end
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox