Storing MapID $gameVaribles

Trying to store mapID into a variable,  I remember it used to be a direct call in the older version -- unless I'm blind -- i can't figure out how. 

I'm using a script  call

$gameVariables.setVariable(5, $mapId)   <--      This is incorrect. 

$gameVariables.setVariable(6, $gamePlayer.x)

$gameVariables.setVariable(7, $gamePlayer.y)

Any ideas?

I already know that doesn't work lol.  Anyone know the correct syntax?
Use $gameMap._mapId

Code:
$gameVariables.setValue(5, $gameMap._mapId)
why not use control variable for this?

control variable : game data : other : Map ID

control variable : game data : Character : Player : Map X (or Y)
Erg, I knew there was a simple way to do this

Thanks for both of your answers.

Original thread: https://forums.rpgmakerweb.com/threads/storing-mapid-gamevaribles.48961/