Player.SprintDisable

From GMod Wiki

Jump to: navigation, search
Function
Syntax Player:SprintDisable( )
Description:
Forbids the player from sprinting.
Returns: nil
In Object: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.SprintDisable]Player.SprintDisable [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionForbids everyone from sprinting.
Used onNewerServer.png
Code
for i, ply in pairs(player.GetAll()) do
    if (ply:IsValid()) then
        ply:SprintDisable()
    end
end
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox