Added variables for common self natives

This commit is contained in:
xM4ddy
2022-05-07 18:27:59 -04:00
parent 973413a03f
commit 31124cbf28
19 changed files with 67 additions and 59 deletions

View File

@ -31,9 +31,8 @@ namespace big
}
else
{
Vector3 player = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), true);
Vector3 entLoc = ENTITY::GET_ENTITY_COORDS(entity, true);
double dist = math::distance_between_vectors(player, entLoc);
double dist = math::distance_between_vectors(self::pos, entLoc);
if (dist > 500)
{