Jump to content

Interior Marker


DonPro

Recommended Posts

Posted

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 
) 

Posted

You need to create a marker in the interior you are being sent to, else it'll never work.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
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

Posted

Yes, exactly.

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

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
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 
) 

Posted
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 
) 

Datastore - Store data to a database quickly. (Useful for saving scripted tables)

Posted
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) 

Posted

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

Datastore - Store data to a database quickly. (Useful for saving scripted tables)

Posted
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!

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...