ZL|LuCaS Posted March 28, 2013 Share Posted March 28, 2013 and what's wrong with that? addEventHandler('onVehicleStartExit', g_Root, function() if getElementData(player,"state") ~= "Play" then cancelEvent() end end) Link to comment
DNL291 Posted March 28, 2013 Share 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 Link to comment
ZL|LuCaS Posted March 28, 2013 Author Share 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) Link to comment
ZL|LuCaS Posted March 28, 2013 Author Share Posted March 28, 2013 but I had not realized thanks. 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