As an AI text-based model, I can provide you with a simple example of a text-based game implemented in a single HTML file using JavaScript. However, please note that creating a game similar to GTA 5's complexity is beyond the scope of a simple text-based example. Here's a basic example for you to start with:
In this example, the player will be prompted for their name and then provided with a set of choices. The player can explore different actions by choosing a number. The game will show an alert based on the selected action. The player can choose to quit the game by selecting option 4.
Note that this is a very basic example and only representative of a text-based game. GTA 5's complexity involves various game mechanics, graphics, and extensive programming, which cannot be accurately replicated in a single HTML file within the scope of a text-based example.