Search the Community
Showing results for tags 'entry'.
-
It should spawn me in the Las Venturas planning department but it spawns me to nowhere.. probably there is a problem with the dimension or idk.. local Exitdoor = createMarker( 385.23818969727,173.71939086914,1007.3828125, "arrow", 1.5, 150, 255, 255, 0 ) setElementInterior( Exitdoor, 3 ) function Exitd( player ) if (source == Exitdoor) then if getElementType(player) == "player" then fadeCamera ( player, false, 1, 0, 0, 0 ) setTimer ( fadeCamera, 1000, 1, player, true, 1 ) setTimer ( setElementPosition, 1000, 1, player, 1367, -1279, 13 ) setTimer ( setElementInterior, 1000, 1, player, 0, 1367, -1279, 13 ) toggleControl ( player, "fire", true ) end end end addEventHandler ("onMarkerHit", getRootElement() ,Exitd ) local Doorentry = createMarker(593.58807373047,-1250.8880615234,19.250591278076, "arrow", 1.5, 255, 255, 255, 0 ) function Doore( player ) if (source == Doorentry) then if getElementType(player) == "player" then fadeCamera ( player, false, 1, 0, 0, 0 ) setTimer ( fadeCamera, 1000, 1, player, true, 1 ) setTimer(setElementPosition, 1000, 1, player, 593.58807373047,-1250.8880615234,19.250591278076) setTimer ( setElementInterior, 1000, 1, player, 3, 593.58807373047,-1250.8880615234,19.250591278076 ) toggleControl ( player, "fire", false ) end end end addEventHandler ("onMarkerHit", getRootElement(), Doore )