DonPro Posted May 11, 2014 Share Posted May 11, 2014 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
Castillo Posted May 11, 2014 Share Posted May 11, 2014 You need to create a marker in the interior you are being sent to, else it'll never work. Link to comment
DonPro Posted May 11, 2014 Author Share Posted May 11, 2014 You need to create a marker in the interior you are being sent to, else it'll never work. so a morker from the place and one to the place? so that will say i have to make 2 script like i have done? hehe Link to comment
Castillo Posted May 11, 2014 Share Posted May 11, 2014 Yes, exactly. You need two markers, and one of them must be in the destination interior. Link to comment
DonPro Posted May 11, 2014 Author Share Posted May 11, 2014 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
justn Posted May 11, 2014 Share Posted May 11, 2014 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
DonPro Posted May 11, 2014 Author Share Posted May 11, 2014 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
justn Posted May 11, 2014 Share Posted May 11, 2014 You must change "INTERIOR HERE" and "DIMENSION HERE" to the interior and dimension where you want the marker to be. Link to comment
DonPro Posted May 12, 2014 Author Share Posted May 12, 2014 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now