Players API
Access cached player data with high performance.
Overview
Player Object
{
address = 0x..., -- Memory address (number)
name = "PlayerName", -- Player name (string)
health = 100, -- Current health (number)
max_health = 100, -- Maximum health (number)
distance = 50.5, -- Distance in studs (number)
position = { -- Position (table, may be nil)
x = 0,
y = 0,
z = 0
}
}Functions
get_all()
get_local()
get_closest()
get_by_name()
filter_by_distance()
filter_by_health()
Complete Examples
Player List Display
Closest Player Tracker
Threat Detector
Team Analyzer
Performance Notes
Tips
Next Steps
Last updated