Emmanuel Posted December 9, 2017 Share Posted December 9, 2017 (edited) When I create a marker, it works, but when I created a marker in an interior it doesn't show up, and also doesn't show any kind of error. local yMarker = createMarker (2104.7353515625, -1806.4340820313, 12.5, "cylinder", 0.5, 255, 255, 0) function yMarker (hitPlayer, matchingDiemension) if matchingDiemension and hitPlayer == localPlayer then outputChatBox ("Has entered the shop") setElementInterior ( localPlayer, 5, 372.40167236328, -132.85858154297, 1001.4921875) end end addEventHandler ("onClientMarkerHit", root, yMarker) local rMarker = createMarker (372.40167236328, -132.85858154297, 1001.4921875, "cylinder", 0.5, 255, 255, 0) The one highlighted green, is the coordinates of the int. Edited December 9, 2017 by Emmanuel Link to comment
Dimos7 Posted December 9, 2017 Share Posted December 9, 2017 (edited) You need put the marker inside the interior for show setElementInterior(rMarker,5) Edited December 9, 2017 by Dimos7 1 Link to comment
kieran Posted December 9, 2017 Share Posted December 9, 2017 You made a marker, but you forgot to put the marker inside the interior When you create markers, they are the same as any other element, interior 0, dimension 0, until you set there interior/dimension, try this. local yMarker = createMarker (2104.7353515625, -1806.4340820313, 12.5, "cylinder", 0.5, 255, 255, 0) function yMarker (hitPlayer, matchingDiemension) if matchingDiemension and hitPlayer == localPlayer then outputChatBox ("Has entered the shop") setElementInterior ( localPlayer, 5, 372.40167236328, -132.85858154297, 1001.4921875) end end addEventHandler ("onClientMarkerHit", root, yMarker) local rMarker = createMarker (372.40167236328, -132.85858154297, 1001.4921875, "cylinder", 0.5, 255, 255, 0) setElementInterior ( rMarker, 5) Also it is important to note, if you set your players position/interior at the marker where you exit, the player will be moving between markers forever unable to move away. 1 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