Bonus Action hide is a thing Rogues can do in 5e, but it should be a Cunning Action thing like Bonus Action Dash or otherwise triggered by an ability (I believe rangers get Bonus Action Hide eventually)... and also hide in general on a tabletop is judged case-by-case by the GM which in a video game context means adding tags in places to note whether there is enough cover or low enough light to pull it off.