Returns Promise<-2 | 0 | 1>
A promise that resolves to:
1
if the operation was successful or if the user canceled the form.
0
if the user does not have permission to access the menu.
-2
if an error occurred during the operation.
The function performs the following steps:
- Checks if ultra security mode is enabled.
- If enabled, verifies if the player has the required permission to access the settings.
- If the player lacks permission, shows an access denied message and returns
0
or 1
based on user selection.
- If the player has permission, displays a form to manage game rules.
- The form allows the user to modify game rules, either as text fields for numeric values or toggles for boolean values.
- Submits the form and updates the game rules based on user input.
- Handles any errors that occur during the form submission and updates.
Manages the game rules UI for a given source entity.