(Not Tested)
local car = createVehicle ( 0, 0, 0 )
local arrow = createObject ( the_arrow_id, 0, 0, 0 )
addEventHandler ( "onClientPreRender", root, function ( )
local cx, cy, cz = getElementPosition ( car )
local x, y, z = getElementPosition ( localPlayer )
local rot = findRotation ( cx, cy, x, y )
setElementPosition ( arrow, x, y, z + 1 )
setElementRotation ( arrow, 0, 0, rot )
end )
function findRotation(x1,y1,x2,y2)
local t = -math.deg(math.atan2(x2-x1,y2-y1))
if t < 0 then t = t + 360 end;
return t;
end