The function returns 0 or 1, OK.
But when player exits from vehicle, function still returns to 1..
Even should be 0.
It was returning TRUE or NULL, I changed that to TRUE/FALSE. Nevertheless, I believe it wasn't the main reason and I suggest you to test it again when new files are out.