theDavid Posted April 11, 2013 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
Mega9 Posted April 11, 2013 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.
PaiN^ Posted April 11, 2013 Posted April 11, 2013 addEventHandler ( 'onVehicleEnter', root, function ( ) setVehicleEngineState ( source, false ); end );
iPrestege Posted April 11, 2013 Posted April 11, 2013 @ #Pai_[N] You didn't understand what he want .
PaiN^ Posted April 11, 2013 Posted April 11, 2013 Sorry, I read have hthe post :\ addEventHandler ( 'onVehicleEnter', root, function ( ) setVehicleEngineState ( source, getVehicleEngineState ( source ) ); end );
Mega9 Posted April 11, 2013 Posted April 11, 2013 Let him try to do it first, that way he'll never learn.
iPrestege Posted April 11, 2013 Posted April 11, 2013 Wrong event Good event ._. . onVehicleEnter No Should To Be onVehicleStartEnter .
PaiN^ Posted April 11, 2013 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 ..
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