This function will open the achievements page for the chosen platform. Please note that this is an asynchronous function, ie: your game will continue to run in the background while the achievements page is being shown. As such, you should be careful where you use this and make sure to pause the game or only permit it to be shown in areas of your game where it will not interfere with the game-play.
global.Pause = true;
instance_create_layer(0, 0, "Controllers", obj_Pause);
The above code checks to see if the chosen leaderboard and achievement service is available and if so it sets a global variable and creates a controller "pause" instance before calling the function to show the achievements on screen.