Looking for a script on the teleport to the interior, you enter the marker, press and teleport
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.
Send all files if you can
In folder script
check the topic again now
I do not understand too much: p, could you do it to make it ready?
what do you mean you dont understand it? i told you how to do it?
This is funny.
@The_Mati please learn how to make a basic script first
I have this script I wanted each marker to have its size, to teleport ipt. And what is the most important when you enter it has displayed the icon of pressing the e button
then add it, its not hard at all.
If it were not difficult, I would do it myself. I did not write about this topic.
seriously if you cant do that then you should not have a server dude.
And the second thing is that what you sent there does not work, do not you know?
GOD DAMNIT MAN LEARN HOW TO CODE. NOW LEAVE WOOPIE ALONE SO HE CAN FINNISH HIS FRAMEWORK.
I linked a post to you so you can learn scripting. Read it