Jump to content

Barrack's Sirens


WhoAmI

Recommended Posts

  
function sirens ( theVehicle, seat, jacked ) 
    if ( getElementModel ( theVehicle ) == 433 ) then  
         removeVehicleSirens( theVehicle ) 
        else 
        return 
    end 
end 
addEventHandler ( "onPlayerVehicleEnter", getRootElement(), sirens ) 
  

Edited by Guest
Link to comment

I would've went for another approach to enable the default GTA horn. Check for how long the client pressed the key, if it was above a certain tick count, then just let them do the horn. I am not sure if this works though, as you have to toggle the control state and I guess MTA doesn't toggle controls in real-time if key is already being pressed before the key is available again... but it would be worth a shot.

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