Teleport Script ie. one loaction to an other using blue circle

So back again asking for something as im not as good with coding as i used to be.
im trying to edit a map location and i need a way to get into that said location.
Is there a script already out there that im missing or a way to add a “open interiors” of your own with a blue circle and all
to get to said location?

If not will someone be kind enough to point me in the right direction?

If you want to teleport them as soon as they go over the blip:

local table = {
	{x = 1,y = 1,z = 1},
	{x = 2,y = 2,z = 2},
	{x = 3,y = 3,z = 3}
}

-- Draw Markers --
Citizen.CreateThread(function()
	while true do
		Citizen.Wait(0)
		for k in pairs(table) do
			-- Draw Marker Here --
			DrawMarker(1, table[k].x, table[k].y, table[k].z, 0, 0, 0, 0, 0, 0, 1.001, 1.0001, 0.5001, 0, 0, 255, 200, 0, 0, 0, 0)
		end
	end
end)

Citizen.CreateThread(function()
	while true do
		Citizen.Wait(0)

		for k in pairs(table) do

			local plyCoords = GetEntityCoords(GetPlayerPed(-1), false)
			local dis = Vdist(plyCoords.x, plyCoords.y, plyCoords.z, table[k].x, table[k].y, table[k].z)

			if dist <= 1.2 then
				pP = GetPlayerPed(-1)
                SetEntityCoords(pP, x, y, z)
			end
		end
	end
end)

If you want them to press a button when at the blip (E is the example):

local table = {
	{x = 1,y = 1,z = 1},
	{x = 2,y = 2,z = 2},
	{x = 3,y = 3,z = 3}
}

-- Draw Markers --
Citizen.CreateThread(function()
	while true do
		Citizen.Wait(0)
		for k in pairs(table) do
			-- Draw Marker Here --
			DrawMarker(1, table[k].x, table[k].y, table[k].z, 0, 0, 0, 0, 0, 0, 1.001, 1.0001, 0.5001, 0, 0, 255, 200, 0, 0, 0, 0)
		end
	end
end)

Citizen.CreateThread(function()
	while true do
		Citizen.Wait(0)

		for k in pairs(table) do

			local plyCoords = GetEntityCoords(GetPlayerPed(-1), false)
			local dis = Vdist(plyCoords.x, plyCoords.y, plyCoords.z, table[k].x, table[k].y, table[k].z)

			if dist <= 1.2 then
				if IsControlJustPressed(1, 51) then
                    pP = GetPlayerPed(-1)
					SetEntityCoords(pP, x, y, z)
				end
			end
		end
	end
end)

Is it ran as a resource from there?

You have to put that in a client file (e.g client.lua)

But dont you need a server.lua file 2 and if so what do you write in it. + how to you edit where the ring is going to be dont understand table k x should you replace the x for the coords and z for the coords you know or is it the like 15 diffrent number that mostly is 0:os ?

So you make a LUA called client.lua you put that in a folder ma bye called Teleport and put the Teleport folder into resources on the server?

Because i’m trying to set a teleport for a Sandy Shores interior https://www.gta5-mods.com/maps/sandy-shores-sheriff-pd#description_tab
If you scoll down where he talks about the teloport stuff and look at the cords would this work
local table = {
{x = 1851.12,y = 3683.30,z = 34.32},
{x = 1851.12,y = 3683.30,z = 34.32},
{x = 1851.12,y = 3683.30,z = 34.32}
}

– Draw Markers –
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
for k in pairs(table) do
– Draw Marker Here –
DrawMarker(1, table[k].x, table[k].y, table[k].z, 0, 0, 0, 0, 0, 0, 1.001, 1.0001, 0.5001, 0, 0, 255, 200, 0, 0, 0, 0)
end
end
end)

Citizen.CreateThread(function()
while true do
Citizen.Wait(0)

	for k in pairs(table) do

		local plyCoords = GetEntityCoords(GetPlayerPed(-1), false)
		local dis = Vdist(plyCoords.x, plyCoords.y, plyCoords.z, table[k].x, table[k].y, table[k].z)

		if dist <= 1.2 then
			if IsControlJustPressed(1, 51) then
                pP = GetPlayerPed(-1)
				SetEntityCoords(pP, 1849.465x, 3682.871y, 118.76z)
			end
		end
	end
end

end)

remove the xyz after every coordinate

so would this work? im trying to get the blue circle at a door in the sandy pd and teleport to an underground bit so it would be like this? local table = {
{x = 1851.12,y = 3683.30,z = 34.32},
{x = 1851.12,y = 3683.30,z = 34.32},
{x = 1851.12,y = 3683.30,z = 34.32}
}

– Draw Markers –
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
for k in pairs(table) do
– Draw Marker Here –
DrawMarker(1, table[k].x, table[k].y, table[k].z, 0, 0, 0, 0, 0, 0, 1.001, 1.0001, 0.5001, 0, 0, 255, 200, 0, 0, 0, 0)
end
end
end)

Citizen.CreateThread(function()
while true do
Citizen.Wait(0)

	for k in pairs(table) do

		local plyCoords = GetEntityCoords(GetPlayerPed(-1), false)
		local dis = Vdist(plyCoords.x, plyCoords.y, plyCoords.z, table[k].x, table[k].y, table[k].z)

		if dist <= 1.2 then
			if IsControlJustPressed(1, 51) then
                pP = GetPlayerPed(-1)
				SetEntityCoords(pP, 1849.465x, 3682.871y, 118.76z)
			end
		end
	end
end

end)