[RDH]Zerted wrote:You shouldn't just guess new functions. All the possible functions (yes, event callbacks are just functions, look at their format...) are accessible from Lua's global variables. The FakeConsole's Print Nested Globals (named something like that) will dump out all that info into the debug log. Look through that if you want to see if a function exists.
I usually don't just guess functions. Coding random code never leads to anything. It just seemed so obvious that if there was an EnterVehicle() and an ExitVehicle() and there was an OnEnterVehicle() that there would be an OnExitVehicle(). Obviously they just didn't get around to that one.
EDIT: In any case, I've decided to just use a work around. At first I was going to use the repeating timer to check if they were still in it, but in the end I just went with a button for simplicity.