GamerDeMTA Posted March 17, 2013 Share Posted March 17, 2013 marker = createMarker ( -651.29998779297,954.29998779297,11.10000038147, "cylinder", 2, 0, 255, 0, 225 ) addEventHandler("onMarkerHit",marker, function (player) if (getElementType(player) == "player") then setElementPosition (player,-699.29998779297,964.09997558594,121.19999694824) end end ) Link to comment
GamerDeMTA Posted March 17, 2013 Author Share Posted March 17, 2013 Also how to set an Interior to teleport to a INT? Link to comment
Baseplate Posted March 17, 2013 Share Posted March 17, 2013 marker = createMarker ( -651.29998779297,954.29998779297,11.10000038147, "arrow", 2, 0, 255, 0, 225 ) addEventHandler("onMarkerHit",marker, function (player) if (getElementType(player) == "player") then setElementInterior(player, id) --change id with the wanted interior id setElementPosition (player,-699.29998779297,964.09997558594,121.19999694824) end end ) Link to comment
GamerDeMTA Posted March 17, 2013 Author Share Posted March 17, 2013 but for set an interior? Link to comment
Jaysds1 Posted March 17, 2013 Share Posted March 17, 2013 Check 5th line he added it but you need to change this: setElementInterior(player, id) --change id with the wanted interior id Link to comment
GamerDeMTA Posted March 17, 2013 Author Share Posted March 17, 2013 and how to do for Receive a new skin when you hit the marker? Link to comment
GamerDeMTA Posted March 17, 2013 Author Share Posted March 17, 2013 Can someone help me with that? Link to comment
Baseplate Posted March 17, 2013 Share Posted March 17, 2013 use setElementModel for that. Link to comment
GamerDeMTA Posted March 18, 2013 Author Share Posted March 18, 2013 This script will work so? I used that. marker = createMarker ( -651.29998779297,954.29998779297,11.10000038147, "cylinder", 2, 0, 255, 0, 225 ) addEventHandler("onMarkerHit",marker, function (player) if (getElementType(player) == "player") then setElementModel (player,2) end end ) Link to comment
iPrestege Posted March 18, 2013 Share Posted March 18, 2013 This script will work so? I used that. marker = createMarker ( -651.29998779297,954.29998779297,11.10000038147, "cylinder", 2, 0, 255, 0, 225 ) addEventHandler("onMarkerHit",marker, function (player) if (getElementType(player) == "player") then setElementModel (player,2) end end ) Use local so should to be > local marker . And then should work. 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