Added code to hide inventory on state change

Will hide inventory dialog and inventory tiles when player state changes
(entering vehicles etc)