-- Define a set of coordinates
local coords = vector3(145.0, 200.0, 1000.0)
-- Get the player's current ped
local playerPed = PlayerPedId()
-- Get the player's current coordinates
local coordsPlayer = GetEntityCoords(playerPed, false)
-- Calculate the distance between the player and the coordinates
local distance = Vdist(coordsPlayer.x, coordsPlayer.y, coordsPlayer.z, coords.x, coords.y, coords.z)
if (distance < 10.0) then
print("You are close to the coordinates")
else
print("You are far from the coordinates")
end