[Question] There is a replacement to GetDistanceBetweenCoords

In lua you have

local distance = #(vector3(0.0, 0.0, 0.0) - vector3(0.0, 0.0, 0.0))

Is in javascript you have a replacement for GetDistanceBetweenCoords?

In lua this is just shorthand for subtracting two vectors and calculating the length of the resultant vector, in javascript the vector type does not exist. You can either write your own Vector3 class or use an existing library which has this such as the fivem-js wrapper or do the maths which looks something like this:

const location = {x: 0.0, y: 0.0, z: 0.0};
const [ x, y, z ] = GetEntityCoords(PlayerPedId());

const distance = Math.hypot(x - location.x, y - location.y);