🍏Player

Contains all functions from Local player namespace.

-- This Lua code calls the "GetTeam" function of the "Player" module, which takes a player index as input parameter.
-- Parameters:
--     index: integer
-- Returns:
--     team as an integer. (1 = tt | 2 = ct)
Player.GetTeam(index)
-- Returns the origin (position) of the player with the specified index.
-- Parameters:
--     index: integer value representing the index of the player to get the origin of.
-- Returns:
--     A vector containing the x, y, and z coordinates of the player's origin.
Player.GetOrigin(index)
-- This function takes an index of a player and returns the player's name as a string.
-- Parameters:
--     index: The index of the player (a number)
-- Returns:
--     The name of the player (a string)
Player.GetName(index)
-- This function returns the model name of a player specified by their index.
-- Parameters:
--     index: the index of the player
-- Returns:
--     the model name of the player as a string
Player.GetModelName(index)

Last updated