Jump to content

Interior Marker


DonPro

Recommended Posts

Hi all. so i have tryed all this day figger out how to get this marker to the interior to work. i get in the interior but i cant get out aigen, so im stuck in the interior. ehm i have tryed make 2 scripts to the same interior too one in to the interior and one out but that was not any sucsess! so im not asking for help aigen! thanks

local marker = createMarker(1114.09,1351.40,11.69, "arrow", 1.5, 239, 213, 0) 
addEventHandler("onMarkerHit", marker, 
 function (player) 
 setElementPosition(player, 1120.90,1365.80,-23.10) 
 setElementInterior(player, 0) -- change number to the house number ! 
end 
) 

Link to comment
Yes, exactly.

You need two markers, and one of them must be in the destination interior.

something like this?

local marker = createMarker(1114.09,1351.40,11.69, "arrow", 1.5, 239, 213, 0) 
addEventHandler("onMarkerHit", marker, 
 function (player) 
 setElementPosition(player, 1120.90,1365.80,-23.10) 
 setElementInterior(player, 0) -- change number to the house number ! 
end 
) 
  
local marker = createMarker(1120.90,1365.80,-23.10, "arrow", 1.5, 239, 213, 0) 
addEventHandler("onMarkerHit", marker, 
 function (player) 
 setElementPosition(player, 1114.09,1351.40,11.69) 
 setElementInterior(player, 0) -- change number to the house number ! 
end 
) 

Link to comment
local marker = createMarker(1114.09,1351.40,11.69, "arrow", 1.5, 239, 213, 0) 
addEventHandler("onMarkerHit", marker, 
 function (player) 
 setElementPosition(player, 1120.90,1365.80,-23.10) 
 setElementInterior(player, 0) -- change number to the house number ! 
end 
) 
  
local marker2 = createMarker(1120.90,1365.80,-23.10, "arrow", 1.5, 239, 213, 0) 
setElementInterior(marker2,INTERIOR HERE) 
setElementDimension(marker2, DIMENSION HERE) 
addEventHandler("onMarkerHit", marker2, 
 function (player) 
 setElementPosition(player, 1114.09,1351.40,11.69) 
 setElementInterior(player, 0) 
end 
) 

Link to comment
local marker = createMarker(1114.09,1351.40,11.69, "arrow", 1.5, 239, 213, 0) 
addEventHandler("onMarkerHit", marker, 
 function (player) 
 setElementPosition(player, 1120.90,1365.80,-23.10) 
 setElementInterior(player, 0) -- change number to the house number ! 
end 
) 
  
local marker2 = createMarker(1120.90,1365.80,-23.10, "arrow", 1.5, 239, 213, 0) 
setElementInterior(marker2,INTERIOR HERE) 
setElementDimension(marker2, DIMENSION HERE) 
addEventHandler("onMarkerHit", marker2, 
 function (player) 
 setElementPosition(player, 1114.09,1351.40,11.69) 
 setElementInterior(player, 0) 
end 
) 

i get an error on these two ;S

setElementInterior(marker2, INTERIOR HERE) 
setElementDimension(marker2, DIMENSION HERE) 

Link to comment
You must change "INTERIOR HERE" and "DIMENSION HERE" to the interior and dimension where you want the marker to be.

ok i get it work and both seems to work but not working right.

im transporting from the base to the interior and i try hit it aigen and its just send min back to interior aigen!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...