Player

From GMod Wiki

Revision as of 17:25, 10 February 2011 by garry :D (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Library

Represents a set of functions that can be used to find all players, or just players by their entity index.
Note: Players can use most functions from entities, such as GetPos() (so stuff like ply:GetPos() will work)

Functions

NewerShared.png player.GetAll
NewerShared.png player.GetByID
NewerShared.png player.GetByUniqueID
NewerShared.png player.GetBots
NewerShared.png player.GetHumans

Object

Represents a player's properties. The Player object is a child of Entity.

Methods

Shared

State Method Name
shNewerShared.png
Player:AddCleanup
shNewerShared.png
Player:AddCount
shNewerShared.png
Player:AddFrozenPhysicsObject
shNewerShared.png
Player:Alive
shNewerShared.png
Player:AnimResetGestureSlot
shNewerShared.png
Player:AnimRestartGesture
shNewerShared.png
Player:AnimRestartMainSequence
shNewerShared.png
Player:AnimSetGestureWeight
shNewerShared.png
Player:Armor
shNewerShared.png
Player:ChatPrint
shNewerShared.png
Player:CheckLimit
shNewerShared.png
Player:ConCommand
shNewerShared.png
Player:Crouching
shNewerShared.png
Player:Deaths
shNewerShared.png
Player:DebugInfo
shNewerShared.png
Player:DoAnimationEvent
shNewerShared.png
Player:DoAttackEvent
shNewerShared.png
Player:DoCustomAnimEvent
shNewerShared.png
Player:DoReloadEvent
shNewerShared.png
Player:DoSecondaryAttack
shNewerShared.png
Player:FlashlightIsOn
shNewerShared.png
Player:Frags
shNewerShared.png
Player:Freeze
shNewerShared.png
Player:GetAIM
shNewerShared.png
Player:GetActiveWeapon
shNewerShared.png
Player:GetAimVector
shNewerShared.png
Player:GetAllowFullRotation
shNewerShared.png
Player:GetAmmoCount
shNewerShared.png
Player:GetAvoidPlayers
shNewerShared.png
Player:GetCanWalk
shNewerShared.png
Player:GetCanZoom
shNewerShared.png
Player:GetCount
shNewerShared.png
Player:GetCrouchedWalkSpeed
shNewerShared.png
Player:GetCurrentCommand
shNewerShared.png
Player:GetCursorAimVector
shNewerShared.png
Player:GetDuckSpeed
shNewerShared.png
Player:GetEmail
shNewerShared.png
Player:GetEyeTrace
shNewerShared.png
Player:GetEyeTraceNoCursor
shNewerShared.png
Player:GetFOV
shNewerShared.png
Player:GetGTalk
shNewerShared.png
Player:GetInfo
shNewerShared.png
Player:GetInfoNum
shNewerShared.png
Player:GetJumpPower
shNewerShared.png
Player:GetLocation
shNewerShared.png
Player:GetMSN
shNewerShared.png
Player:GetMaxSpeed
shNewerShared.png
Player:GetName
shNewerShared.png
Player:GetNoCollideWithTeammates
shNewerShared.png
Player:GetObserverMode
shNewerShared.png
Player:GetObserverTarget
shNewerShared.png
Player:GetPData
shNewerShared.png
Player:GetPunchAngle
shNewerShared.png
Player:GetRagdollEntity
shNewerShared.png
Player:GetRunSpeed
shNewerShared.png
Player:GetScriptedVehicle
shNewerShared.png
Player:GetShootPos
shNewerShared.png
Player:GetStepSize
shNewerShared.png
Player:GetTool
shNewerShared.png
Player:GetUnDuckSpeed
shNewerShared.png
Player:GetVehicle
shNewerShared.png
Player:GetViewModel
shNewerShared.png
Player:GetViewOffset
shNewerShared.png
Player:GetViewOffsetDucked
shNewerShared.png
Player:GetWalkSpeed
shNewerShared.png
Player:GetWeapons
shNewerShared.png
Player:GetWebsite
shNewerShared.png
Player:GetXFire
shNewerShared.png
Player:InVehicle
shNewerShared.png
Player:IsAdmin
shNewerShared.png
Player:IsBot
shNewerShared.png
Player:IsFrozen
shNewerShared.png
Player:IsNPC
shNewerShared.png
Player:IsPlayer
shNewerShared.png
Player:IsSuperAdmin
shNewerShared.png
Player:IsUserGroup
shNewerShared.png
Player:IsVehicle
shNewerShared.png
Player:IsWeapon
shNewerShared.png
Player:KeyDown
shNewerShared.png
Player:KeyDownLast
shNewerShared.png
Player:KeyPressed
shNewerShared.png
Player:KeyReleased
shNewerShared.png
Player:LagCompensation
shNewerShared.png
Player:LimitHit
shNewerShared.png
Player:Name
shNewerShared.png
Player:Nick
shNewerShared.png
Player:PacketLoss
shNewerShared.png
Player:PhysgunUnfreeze
shNewerShared.png
Player:Ping
shNewerShared.png
Player:PrintMessage
shNewerShared.png
Player:RemoveAllAmmo
shNewerShared.png
Player:RemoveAmmo
shNewerShared.png
Player:RemovePData
shNewerShared.png
Player:ResetHull
shNewerShared.png
Player:SetAllowFullRotation
shNewerShared.png
Player:SetAmmo
shNewerShared.png
Player:SetAvoidPlayers
shNewerShared.png
Player:SetCanWalk
shNewerShared.png
Player:SetCanZoom
shNewerShared.png
Player:SetCrouchedWalkSpeed
shNewerShared.png
Player:SetDSP
shNewerShared.png
Player:SetDuckSpeed
shNewerShared.png
Player:SetEyeAngles
shNewerShared.png
Player:SetFOV
shNewerShared.png
Player:SetHull
shNewerShared.png
Player:SetHullDuck
shNewerShared.png
Player:SetJumpPower
shNewerShared.png
Player:SetMaxSpeed
shNewerShared.png
Player:SetNoCollideWithTeammates
shNewerShared.png
Player:SetPData
shNewerShared.png
Player:SetRunSpeed
shNewerShared.png
Player:SetScriptedVehicle
shNewerShared.png
Player:SetStepSize
shNewerShared.png
Player:SetUnDuckSpeed
shNewerShared.png
Player:SetViewOffset
shNewerShared.png
Player:SetViewOffsetDucked
shNewerShared.png
Player:SetWalkSpeed
shNewerShared.png
Player:SteamID
shNewerShared.png
Player:Team
shNewerShared.png
Player:TranslateWeaponActivity
shNewerShared.png
Player:UnfreezePhysicsObjects
shNewerShared.png
Player:UniqueID
shNewerShared.png
Player:UniqueIDTable
shNewerShared.png
Player:UserID
shNewerShared.png
Player:ViewPunch
shNewerShared.png
Player:ViewPunchReset
shNewerShared.png
zPlayer:__gc
shNewerShared.png
zPlayer:__index
shNewerShared.png
zPlayer:__newindex
shNewerShared.png
zPlayer:__tostring

Server

State Method Name
seNewerServer.png
Player:AddDeaths
seNewerServer.png
Player:AddFrags
seNewerServer.png
Player:AllowImmediateDecalPainting
seNewerServer.png
Player:Ban
seNewerServer.png
Player:CreateRagdoll
seNewerServer.png
Player:CreateSharedTable
seNewerServer.png
Player:CrosshairDisable
seNewerServer.png
Player:CrosshairEnable
seNewerServer.png
Player:DetonateTripmines
seNewerServer.png
Player:DrawViewModel
seNewerServer.png
Player:DrawWorldModel
seNewerServer.png
Player:DropNamedWeapon
seNewerServer.png
Player:DropWeapon
seNewerServer.png
Player:DropObject
seNewerServer.png
Player:EnterVehicle
seNewerServer.png
Player:EquipSuit
seNewerServer.png
Player:ExitVehicle
seNewerServer.png
Player:Flashlight
seNewerServer.png
Player:GetSharedTable
seNewerServer.png
Player:GetViewEntity
seNewerServer.png
Player:GetWeapon
seNewerServer.png
Player:Give
seNewerServer.png
Player:GiveAmmo
seNewerServer.png
Player:GodDisable
seNewerServer.png
Player:GodEnable
seNewerServer.png
Player:HasWeapon
seNewerServer.png
Player:IPAddress
seNewerServer.png
Player:IsConnected
seNewerServer.png
Player:IsFullyAuthenticated
seNewerServer.png
Player:IsListenServerHost
seNewerServer.png
Player:Kick
seNewerServer.png
Player:Kill
seNewerServer.png
Player:KillSilent
seNewerServer.png
Player:LastHitGroup
seNewerServer.png
Player:Lock
seNewerServer.png
Player:PickupObject
seNewerServer.png
Player:PlayScene
seNewerServer.png
Player:PlayStepSound
seNewerServer.png
Player:RemoveAllItems
seNewerServer.png
Player:RemoveSuit
seNewerServer.png
Player:SelectWeapon
seNewerServer.png
Player:SendData
seNewerServer.png
Player:SendHint
seNewerServer.png
Player:SendLua
seNewerServer.png
Player:SetActiveWeapon
seNewerServer.png
Player:SetArmor
seNewerServer.png
Player:SetDeaths
seNewerServer.png
Player:SetFrags
seNewerServer.png
Player:SetNoTarget
seNewerServer.png
Player:SetSuppressPickupNotices
seNewerServer.png
Player:SetTeam
seNewerServer.png
Player:SetUserGroup
seNewerServer.png
Player:SetViewEntity
seNewerServer.png
Player:ShouldDropWeapon
seNewerServer.png
Player:SnapEyeAngles
seNewerServer.png
Player:Spawn
seNewerServer.png
Player:Spectate
seNewerServer.png
Player:SpectateEntity
seNewerServer.png
Player:SprayDecal
seNewerServer.png
Player:SprintDisable
seNewerServer.png
Player:SprintEnable
seNewerServer.png
Player:StopZooming
seNewerServer.png
Player:StripAmmo
seNewerServer.png
Player:StripWeapon
seNewerServer.png
Player:StripWeapons
seNewerServer.png
Player:SuppressHint
seNewerServer.png
Player:TimeConnected
seNewerServer.png
Player:TraceHullAttack
seNewerServer.png
Player:UnLock
seNewerServer.png
Player:UnSpectate

Client

State Method Name
cNewerClient.png
Player:AddPlayerOption
cNewerClient.png
Player:GetFriendStatus
cNewerClient.png
Player:IsMuted
cNewerClient.png
Player:IsSpeaking
cNewerClient.png
Player:IsVoiceAudible
cNewerClient.png
Player:SetMuted
cNewerClient.png
Player:ShouldDrawLocalPlayer
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox