Page 1 of 1

Block map opening

Posted: Sun Jun 30, 2019 1:43 pm
by Cooldude2606
Currently we are able to disable the mini map however there is no clear way to stop the main map from opening. Could we have open_map added to input actions so that we can disallow the action for a permission group?

Since we have access to LuaPlayer::open_map and LuaPlayer::close_map would it be possible to have an event for on_player_opened_map since the map is not considered a gui according to defines.gui_type and so cant be used with on_gui_opened.

Re: Block map opening

Posted: Sun Jun 30, 2019 2:18 pm
by Rseding91
But why?

Re: Block map opening

Posted: Sun Jun 30, 2019 2:28 pm
by Cooldude2606
I was making a scenario where it would be easier to have all players on the same force but hide the map so that they dont know where other players are. It would have been easier as I had no reason to have every player on a different force in order to hide location and explored chunks.

Re: Block map opening

Posted: Sat Aug 10, 2019 12:45 am
by Staplergun
Isn't there a permission group to disable this?

Re: Block map opening

Posted: Sat Aug 10, 2019 6:28 am
by Cooldude2606
Staplergun wrote:
Sat Aug 10, 2019 12:45 am
Isn't there a permission group to disable this?
Based on the documentation there is one for every gui but not for the map.