REE.Lib.Coords - REE-FiveM/ree-core GitHub Wiki
REE.Lib.Coords
GetDistanceBetweenPedAndBlip(ped, blip, calc_z)
Given a ped and a blip table, will determine the distance between the two object. calc_z
can be provided, and if true, will include the z-distance in the calculation.
Parameters:
- ped (
float
) - The player ped used to calculate the distance- blip (
table{1,2,3}
) - The blip data used to calculate the distance- calc_z (
nil
,boolean
) - Whether the z distance should be included in the calculation
Returns:
float
GetCompassDirectionForEntity(entity)
Returns the human readable compass direction for a given entity.
Parameters:
- entity (
float
) - Any entity that has a heading
Returns:
string