Jump to content

No Markers?


Zalmon

Recommended Posts

I am working on a script that takes you to the bank interior and dimension 1, and a marker that lets you go out of the interior and back to dimension 1, but the outBankMarker is un-findable :(

bankMarker = createMarker ( 1654.1, -1654.76, 22.51, "cylinder", 2, 255, 255, 255, 255 ) 
outBankMarker = createMarker ( 389.82, 173.71, 1008.38, "cylinder", 2, 255, 255, 255, 255 ) 
    function goIntoBank(hitElement, matchingDimension) 
    if getElementType( hitElement ) == "player" and not getPedOccupiedVehicle( player ) then 
    setPedFrozen( hitElement, true ) 
    setElementDimension ( hitElement, 1 ) 
    setElementInterior ( hitElement, 3, 386.59, 173.84, 1008.38 ) 
    setPedFrozen( hitElement, false ) 
    end 
end 
addEventHandler( "onMarkerHit", bankMarker, goIntoBank ) 
     
    function goOutOfBank(hitElement, matchingDimension) 
    if getElementType( hitElement ) == "player" and not getPedOccupiedVehicle( player ) then 
    setPedFrozen( hitElement, true ) 
    setElementDimension ( hitElement, 0 ) 
    setElementInterior ( hitElement, 0, 1654.496, -1661.855, 22.51 ) 
    setPedFrozen( hitElement, false ) 
    end 
end 
addEventHandler( "onMarkerHit", outBankMarker, goOutOfBank ) 
     
    function setDim() 
    if ( getElementDimension ( outBankMarker ) == 0 ) then 
    setElementDimension (outBankMarker , 1 )   
    end 
end 
addEventHandler( "onResourceStart", setDim ) 

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