ZL|LuCaS Posted March 28, 2013 Posted March 28, 2013 and what's wrong with that? addEventHandler('onVehicleStartExit', g_Root, function() if getElementData(player,"state") ~= "Play" then cancelEvent() end end) MTA Scripters. ♥♥♥Beijinhos♥♥♥
DNL291 Posted March 28, 2013 Posted March 28, 2013 (edited) Parameters: exitingPlayer, seat, jacked, door addEventHandler('onVehicleStartExit', g_Root, function(exitingPlayer) if getElementData(exitingPlayer,"state") ~= "Play" then cancelEvent() end end ) Edited March 28, 2013 by Guest Please do not PM me with scripting related question nor support, use the forums instead.
ZL|LuCaS Posted March 28, 2013 Author Posted March 28, 2013 player is not defined! I had added it to race twice, thus addEventHandler('onVehicleStartExit', root, function(player) if getElementData(player,"state") ~= "Play" then cancelEvent() end end) addEventHandler('onVehicleStartExit', root, function(player) if getElementData(player,"state") ~= "Play" then cancelEvent() end end) MTA Scripters. ♥♥♥Beijinhos♥♥♥
ZL|LuCaS Posted March 28, 2013 Author Posted March 28, 2013 but I had not realized thanks. MTA Scripters. ♥♥♥Beijinhos♥♥♥
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