local marker = {
{x = 429.6825, y = -800.1528, z = 28.49113}
}
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
for i = 1, #marker do
local playerCoords = GetEntityCoords(GetPlayerPed(-1));
local distance = Vdist(playerCoords.x, playerCoords.y, playerCoords.z, marker[i].x, marker[i].y, marker[i].z);
DrawMarker(1, marker[i].x, marker[i].y, marker[i].z, 0, 0, 0, 0, 0, 0, 2.001, 2.0001, 0.501, 0, 0, 255, 200, 0, 0, 0, 0);
if ( distance <= 1.5 ) and IsControlJustPressed(0, 51) then
SetEntityCoords(GetPlayerPed(-1), 1.6543, 23.45, 6.6543)
end
end
end
end
You can just do something like this to do it
also the coords that is set right now is not the actual coords for the interior that you want. YOU will need to change them.
Put this in a file called client.lua.
Also make a file called __resource.lua
where you will put this code in.
client_script "client.lua"
boom, and you are done.