entity
Interact with cached entities, usually just player info in this case.
When using the Entity API the info is returned from what the cheat has saved for it's own usage. It's safe to use these functions within the paint callback and experience little to no performance drawbacks.
Functions:
Get All
entity.get_all(string: schema);Returns an array with all entities that have the specified schema. Returns the class if an empty string is passed in schema.
Get Players
entity.get_players(boolean: only_enemies);Returns a table of players. If only_enemies isn't passed it will default to false. The local player and dead players will be excluded.
Get Local Player
entity.get_local_player();Returns the local player.
Get Target
entity.get_target();Returns the aimbot target.
Player Methods:
Get Position
player:get_position();Returns the player positon as vector (x, y, z).
Get Name
player:get_name();Returns the player name as a string.
Get Team
player:get_team();Returns the players team name as a string.
Get Bounding Box
player:get_bbox();Returns the player bounding box as x, y, w, h which are screen coordinates.
Is Alive
player:is_alive();Returns true if the player is alive.
Is Enemy
player:is_enemy();Returns true if the player is an enemy.
Is Visible
player:is_visible();Returns true if the player is visible.
Get Weapon
player:get_weapon();Returns the players currently held weapon index as an int.
Get Weapon Name
player:get_weapon_name();Returns the players currently held weapon as a string.
Get Health
player:get_health();Returns the players current health as an int.
Get Max Health
player:get_max_health();Returns the players maximum health as an int.
Get Ammo
player:get_ammo();Returns the players current ammo as an int.
Get Max Ammo
player:get_max_ammo();Returns the players maximum ammo as an int.
Bone Position
player:bone_position(int: index);Returns the position of the specified bone as x, y, z. (Ex. 6 known as Head)
Get Address
player:get_address();Returns the players address.
Get Pawn
player:get_pawn();Returns the players pawn.
Entity Methods:
Get Address
entity:get_address();Returns the entities address.
Get Schema Name
entity:get_schema_name();Returns the schema name as a string.
Last updated