Jump to content

Made an entry script to interior but it spawns me to nowhere.. where is the problem?


bencskrisz

Recommended Posts

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 )

Edited by bencskrisz
Link to comment

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