Dimmitry007 Posted March 12, 2015 Posted March 12, 2015 addEventHandler ( "onVehicleStartExit", getRootElement(), exitVehicle ) sup?
Dealman Posted March 12, 2015 Posted March 12, 2015 Well you're not telling it to do otherwise, you're only checking if they're in a vehicle and the model. Of course it's still gonna fire so long as the model ID is the same - the script won't magically understand what to do. One solution would be to use element data, set the element data on the vehicle with a gun to true - and only fire it if the current vehicle has that value set to true - and the player is inside that vehicle. If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.
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