Am I doing invisibility right? [closed]

If you go invisibility can you use a hide action without having a place to hide? and also if you hit someone after you did the hide action, would you get a surprise attack? This is using a rogue assassin, at level 17 although I doubt I ever get high of a level.