Garry's Mod Wiki

PLAYER

Description

This page describes all default fields for a player class.

Members

string DisplayName
The 'nice' name of the player class for display in User Interface and such.
number WalkSpeed
How fast to move when not running

Default: 400

number RunSpeed
How fast to move when running/sprinting

Default: 600

number SlowWalkSpeed
How fast to move when slow walking, which is activated via the +walk keybind.

Default: 200

number CrouchedWalkSpeed
Multiply walk speed by this when crouching

Default: 0.3

number DuckSpeed
How fast to go from not ducking, to ducking

Default: 0.3

number UnDuckSpeed
How fast to go from ducking, to not ducking

Default: 0.3

number JumpPower
How powerful a jump should be

Default: 200

boolean CanUseFlashlight
Can the player use the flashlight

Default: true

number MaxHealth
Max health we can have

Default: 100

number MaxArmor
Max armor the player can have

Default: 0

number StartHealth
How much health we start with

Default: 100

number StartArmor
How much armour we start with

Default: 0

boolean DropWeaponOnDie
Do we drop our weapon when we die

Default: false

boolean TeammateNoCollide
Do we collide with teammates or run straight through them

Default: true

boolean AvoidPlayers
Automatically swerves around other players

Default: true

boolean UseVMHands
Uses viewmodel hands

Default: true