theDavid Posted April 11, 2013 Share Posted April 11, 2013 Hi, Is there a way to cancel the engine start when player enters a vehicle if engine state is off and keep it on if it is on? Peace Link to comment
Mega9 Posted April 11, 2013 Share Posted April 11, 2013 Check it by getting engine state when player enters the vehicle ("onPlayerVehicleEnter") and setting it's values to what you want. Link to comment
PaiN^ Posted April 11, 2013 Share Posted April 11, 2013 addEventHandler ( 'onVehicleEnter', root, function ( ) setVehicleEngineState ( source, false ); end ); Link to comment
iPrestege Posted April 11, 2013 Share Posted April 11, 2013 @ #Pai_[N] You didn't understand what he want . Link to comment
PaiN^ Posted April 11, 2013 Share Posted April 11, 2013 Sorry, I read have hthe post :\ addEventHandler ( 'onVehicleEnter', root, function ( ) setVehicleEngineState ( source, getVehicleEngineState ( source ) ); end ); Link to comment
Mega9 Posted April 11, 2013 Share Posted April 11, 2013 Let him try to do it first, that way he'll never learn. Link to comment
Sasu Posted April 11, 2013 Share Posted April 11, 2013 Wrong event Good event ._. . onVehicleEnter Link to comment
iPrestege Posted April 11, 2013 Share Posted April 11, 2013 Wrong event Good event ._. . onVehicleEnter No Should To Be onVehicleStartEnter . Link to comment
PaiN^ Posted April 11, 2013 Share Posted April 11, 2013 No Should To Be onVehicleStartEnter . No, Because the car's engine state changes ( if it was off ) with onVehicleEnter and not onVehicleStartEnter .. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now