You can’t even buy ammo from a vending machine in GTA. You still need to go to a gun store for that in the game. You can tell Rockstar have been slacking when real life gets ahead of their satirical game.
In Cyberpunk 2077, you can buy a gun from some vending machines. It is made out of plastic and cannot be reloaded, but it’s a real gun. In this case, I’d say reality outdid the sarcasm.