Type Player

Player type

Methods

getActiveWeapon () Returns the name of the player's active weapon
getAimVector () Returns the player's aim vector
getArmor () Returns the players armor
getDeaths () Returns the amount of deaths of the player
getEyeTrace () Returns a table with information of what the player is looking at
getFOV () Returns the player's field of view
getFrags () Returns the amount of kills of the player
getFriendStatus () Returns the relationship of the player to the local client
getJumpPower () Returns the player's jump power
getMaxSpeed () Returns the player's maximum speed
getName () Returns the player's name
getPing () Returns the player's current ping
getRunSpeed () Returns the player's running speed
getShootPos () Returns the player's shoot position
getSteamID () Returns the player's steam ID
getSteamID64 () Returns the player's community ID
getTeam () Returns the player's current team
getTeamName () Returns the name of the player's current team
getUniqueID () Returns the player's unique ID
getUserID () Returns the player's user ID
inVehicle () Returns whether the player is in a vehicle
isAdmin () Returns whether the player is an admin
isAlive () Returns whether the player is alive
isBot () Returns whether the player is a bot
isConnected () Returns whether the player is connected
isCrouching () Returns whether the player is crouching
isFlashlightOn () Returns whether the player's flashlight is on
isFrozen () Returns whether the player is frozen
isMuted () Returns whether the local player has muted the player
isNPC () Returns whether the player is an NPC
isPlayer () Returns whether the player is a player
isSuperAdmin () Returns whether the player is a super admin
isUserGroup (group) Returns whether the player belongs to a usergroup


Methods

player_methods:getActiveWeapon ()
Returns the name of the player's active weapon

Return value:

    Name of weapon
player_methods:getAimVector ()
Returns the player's aim vector

Return value:

    Aim vector
player_methods:getArmor ()
Returns the players armor

Return value:

    Armor
player_methods:getDeaths ()
Returns the amount of deaths of the player

Return value:

    Amount of deaths
player_methods:getEyeTrace ()
Returns a table with information of what the player is looking at

Return value:

    table trace data
player_methods:getFOV ()
Returns the player's field of view

Return value:

    Field of view
player_methods:getFrags ()
Returns the amount of kills of the player

Return value:

    Amount of kills
player_methods:getFriendStatus ()
Returns the relationship of the player to the local client

Return value:

    One of: "friend", "blocked", "none", "requested"
player_methods:getJumpPower ()
Returns the player's jump power

Return value:

    Jump power
player_methods:getMaxSpeed ()
Returns the player's maximum speed

Return value:

    Maximum speed
player_methods:getName ()
Returns the player's name

Return value:

    Name
player_methods:getPing ()
Returns the player's current ping

Return value:

    ping
player_methods:getRunSpeed ()
Returns the player's running speed

Return value:

    Running speed
player_methods:getShootPos ()
Returns the player's shoot position

Return value:

    Shoot position
player_methods:getSteamID ()
Returns the player's steam ID

Return value:

    steam ID
player_methods:getSteamID64 ()
Returns the player's community ID

Return value:

    community ID
player_methods:getTeam ()
Returns the player's current team

Return value:

    team
player_methods:getTeamName ()
Returns the name of the player's current team

Return value:

    team name
player_methods:getUniqueID ()
Returns the player's unique ID

Return value:

    unique ID
player_methods:getUserID ()
Returns the player's user ID

Return value:

    user ID
player_methods:inVehicle ()
Returns whether the player is in a vehicle

Return value:

    True if player in vehicle
player_methods:isAdmin ()
Returns whether the player is an admin

Return value:

    True if player is admin
player_methods:isAlive ()
Returns whether the player is alive

Return value:

    True if player alive
player_methods:isBot ()
Returns whether the player is a bot

Return value:

    True if player is a bot
player_methods:isConnected ()
Returns whether the player is connected

Return value:

    True if player is connected
player_methods:isCrouching ()
Returns whether the player is crouching

Return value:

    True if player crouching
player_methods:isFlashlightOn ()
Returns whether the player's flashlight is on

Return value:

    True if player has flashlight on
player_methods:isFrozen ()
Returns whether the player is frozen

Return value:

    True if player is frozen
player_methods:isMuted ()
Returns whether the local player has muted the player

Return value:

    True if the player was muted
player_methods:isNPC ()
Returns whether the player is an NPC

Return value:

    True if player is an NPC
player_methods:isPlayer ()
Returns whether the player is a player

Return value:

    True if player is player
player_methods:isSuperAdmin ()
Returns whether the player is a super admin

Return value:

    True if player is super admin
player_methods:isUserGroup (group)
Returns whether the player belongs to a usergroup

Parameters:

  • group: Group to check against

Return value:

    True if player belongs to group

Valid XHTML 1.0!