Transfer Player via Script Call

What is the command to transfer the player to set coordinates and map id?

For example:

transfer(map, map_x, map_y)

This seems like a very simple command, but I cannot find it anywhere.

I understand that there is a simple command built into the maker, but I require this command in in ruby script,

because I wish to edit the Scene_Gameover to better suit my needs, to transfer the player to a specific location.

Thank you

-im not fat
$game_player.reserve_transfer(map_id, x, y, direction)
Hime... My Cyber-crush.

Thank you <3
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/transfer-player-via-script-call.17001/