Jump to content

[help] Open Doors Andromeda


Reggae

Recommended Posts

I want that when the player enter the marker the door brings the Andromeda opens, My function dont work :S

      local marker = createMarker ( 1800.7584228516,-2503.3488769531,13.5546875, "cylinder", 1.5, 255, 255, 0, 170 ) 
  
      local andro = createVehicle ( 592, 1806.6535644531,-2485.2546386719,13.5546875 ) 
       
          
    function looool2 (hitElement) 
    if getElementType( hitElement ) == "player" then 
    if vehicle then 
            setVehicleDoorOpenRatio ( andro, 5, 1 - getVehicleDoorOpenRatio ( andro, 5 ), 2500 )       
        end 
        end 
        end 
    addEventHandler( "onClientMarkerHit", marker, looool2) 

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