I need a script to make my player able to see the dungeon map when necessary.
Okay, you are looking for a minimap script. I believe worale has made one. It may be in worale's Gift Box in the RMVX Scripts Database, but if not then I think it is on RPG Revolution under woratana's WIP scripts