DarkLink Posted June 16, 2011 Share Posted June 16, 2011 I want to put lights always off when entering a vehicle that has the engine off.. was working before, but not anymore function setLights () if ( (getVehicleEngineState ( source ) ) == false ) then setVehicleOverrideLights ( source, 1 ) end end addEventHandler("onVehicleEnter", getRootElement(), setLights) I hope u guys can help thanks anyway EDIT: FIXED, Changed from onVehicleEnter to onVehicleStartEnter and it works now . Thanks anyway. u can close. Link to comment
Blueman Posted June 17, 2011 Share Posted June 17, 2011 Oops I answered than noticed the edit. Link to comment
DarkLink Posted June 17, 2011 Author Share Posted June 17, 2011 Oops I answered than noticed the edit. eheh thanks anyway bro 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