A method for unlocking a hood of a vehicle, wherein a hood locking mechanism comprises a latch , a safety catch , a locking member , and a striker ; wherein the latch and the safety catch are arranged for engaging the striker and the locking member is arranged for engaging the safety catch , wherein the method comprises the steps; manually displacing a door of the vehicle, wherein the door in a closed position is blocking an inner hood handle , from the closed position to an open position in a fully locked mode (M1) of the hood locking mechanism for giving access to the inner hood handle ; manually activating the inner hood handle for moving the hood locking mechanism from the fully locked mode (M1) to an intermediate locked mode (M2), wherein the activation of the inner hood handle mechanically is displacing the latch from a closed position (Pc) where the latch is in locking engagement with the striker to an open position (P O ) where the latch is disengaged from the striker ; triggering a sensor by the latch , when the latch is displaced to the open position (P O ), wherein an electrical signal from the sensor is activating the locking member after a predetermined time interval (T) if at least one predetermined vehicle condition is fulfilled, where upon activation, the locking member is displaced from a first position (P 1 ) where the locking member is in locking engagement with the safety catch to a second position (P 2 ) where the locking member is disengaged from the safety catch ; displacing the safety catch if the at least one predetermined vehicle condition is fulfilled from a closed state (S C ) wherein the safety catch is in locking engagement with the striker to an open state (S O ) where the safety catch is disengaged from the striker for moving the hood locking mechanism from the intermediate locked mode (M2) to an open mode (M3). manually displacing a door of the vehicle, wherein the door in a closed position is blocking an inner hood handle , from the closed position to an open position in a fully locked mode (M1) of the hood locking mechanism for giving access to the inner hood handle ; manually activating the inner hood handle for moving the hood locking mechanism from the fully locked mode (M1) to an intermediate locked mode (M2), wherein the activation of the inner hood handle mechanically is displacing the latch from a closed position (Pc) where the latch is in locking engagement with the striker to an open position (P O ) where the latch is disengaged from the striker ; triggering a sensor by the latch , when the latch is displaced to the open position (P O ), wherein an electrical signal from the sensor is activating the locking member after a predetermined time interval (T) if at least one predetermined vehicle condition is fulfilled, where upon activation, the locking member is displaced from a first position (P 1 ) where the locking member is in locking engagement with the safety catch to a second position (P 2 ) where the locking member is disengaged from the safety catch ; displacing the safety catch if the at least one predetermined vehicle condition is fulfilled from a closed state (S C ) wherein the safety catch is in locking engagement with the striker to an open state (S O ) where the safety catch is disengaged from the striker for moving the hood locking mechanism from the intermediate locked mode (M2) to an open mode (M3). <EOS>