> For the complete documentation index, see [llms.txt](https://lua.legacy.fatality.win/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lua.legacy.fatality.win/csgo/datatypes/player.md).

# Player

csgo.player

Player data type. Derives from [csgo.entity](/csgo/datatypes/entity.md). See [entity\_list:get\_player](/csgo/interfaces/entity-list.md#get_player)

## Functions

### get\_name

returns the player's name as a string

`get_name( )`

### get\_eye\_pos

returns the player's eye position as a [csgo.vector3](/csgo/datatypes/vector3.md)

`get_eye_pos( )`

### is\_alive

returns true if the player is alive

`is_alive( )`

### get\_hitbox\_pos

return a [csgo.vector3](/csgo/datatypes/vector3.md) with the coordinates of the hitbox

`get_hitbox_pos( hitbox )`

| Parameter | Data type |                   Description                   |
| :-------: | :-------: | :---------------------------------------------: |
|   hitbox  |  integer  | <p>the hitbox to get the </p><p>position of</p> |

#### Hitboxes

```lua
local Hitboxes = 
{
    Head            = 0,
    Neck            = 1,
    Pelvis          = 2,
    Body            = 3,
    Thorax          = 4,
    Chest           = 5,
    UpperChest      = 6,
    LeftThigh       = 7,
    RightThigh      = 8,
    LeftCalf        = 9,
    RightCalf       = 10,
    LeftFoot        = 11,
    RightFoot       = 12,
    LeftHand        = 13,
    RightHand       = 14,
    LeftUpperArm    = 15,
    LeftForearm     = 16,
    RightUpperArm   = 17,
    RightForearm    = 18,
}
```
