Transfer Player via Script Call

Does anyone have script to transfer players from current map to once conditions met? (I mean conditions I wrote via a plugin)

Or which function that I can manipulate for that purpose?

ThanKs

Code:
$gamePlayer.reserveTransfer(mapId, x, y, direction, fade type);
got it thanks much

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.119265/