Does anyone here know what is the circle you walk into and you acces an interior.
i am not looking for open ineriors.
I made my own house and i want a ciricle infront when you walk into it it takes you to a room.
If anyone has a Tutorial or Video pls link down below
DrawMarker(1, x, y, z, 0, 0, 0, 0, 0, 0, 0.8, 0.8, 0.6, 60, 60, 255, 175, false, false, false, false, 0, 0, 0)
So how does that work ?
I guess you stream it and then:
i found this
{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)
Can this work and if yes how ?
This may or may not help you