Legacy Lua Api
  • Overview
  • Getting Started
    • Creating Scripts
    • Coding Scripts
    • Examples
  • Fatality
    • Render
    • Config
    • Menu
    • Callbacks
    • Math
    • Input
    • Datatypes
      • Shot
      • Lag Record
      • Shot Info
      • Config Value
  • Csgo
    • Interface Handler
      • Global Vars
      • Entity List
      • Engine Client
      • Cvar
      • Events
      • Debug Overlay
    • Datatypes
      • Color
      • Vector3
      • Vector2
      • Angle
      • Entity
      • Player
      • Cvar
      • Game Event
      • Font
      • Matrix3x4
Powered by GitBook

© 2025 - FATALITY

On this page
  • Functions
  • get_name
  • get_eye_pos
  • is_alive
  • get_hitbox_pos
  1. Csgo
  2. Datatypes

Player

csgo.player

PreviousEntityNextCvar

Last updated 2 years ago

Player data type. Derives from . See

Functions

get_name

returns the player's name as a string

get_name( )

get_eye_pos

returns the player's eye position as a

get_eye_pos( )

is_alive

returns true if the player is alive

is_alive( )

get_hitbox_pos

return a with the coordinates of the hitbox

get_hitbox_pos( hitbox )

Parameter

Data type

Description

hitbox

integer

the hitbox to get the

position of

Hitboxes

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,
}

csgo.entity
csgo.vector3
csgo.vector3
entity_list:get_player