Entity List

csgo.interface_handler:get_entity_list( )

Functions

get_player

returns player from their index

entity_list:get_player( index )

Parameter

Data type

Description

index

integer

get_player_from_id

returns player from their user id. (used in events)

entity_list:get_player_from_id( user id)

Parameter

Data type

Description

user id

integer

player's user id

get_entity

returns entity from its index

entity_list:get_entity( index)

Parameter

Data type

Description

index

integer

get_from_handle

returns entity from its handle

entity_list:get_from_handle( handle )

Parameter

Data type

Description

handle

handle

entity's handle

get_max_players

returns max amount of players allowed by server

entity_list:get_max_players( )

get_max_entities

returns highest server index

entity_list:get_max_entities( )

get_localplayer

returns your player

entity_list:get_localplayer( )

Last updated