let isDialogActive = false; // Messages received by client window.addEventListener('message', (event) => { let data = event.data; let action = data.action; if (action != 'showNotAllowedDialog') return; if (isDialogActive) return; const div = $(`

${getLocalizedText("menu:not_allowed:you_are_not_allowed")}

${getLocalizedText("menu:not_allowed:if_you_are_admin")}

Server restart required

# Only use one of these. If one doesn't work, try another one




`); div.find('.btn-close').click(() => { div.remove(); toggleCursor(false); isDialogActive = false; }); div.find(".not-allowed-license").text(` add_ace identifier.license:${data.playerIdentifiers["license"]} ${data.acePermission} allow # Add permission to '${data.playerName}' Rockstar license `); div.find(".not-allowed-license2").text(` add_ace identifier.license2:${data.playerIdentifiers["license2"]} ${data.acePermission} allow # Add permission to '${data.playerName}' Rockstar license2 `); div.find(".not-allowed-steamid").text(` add_ace identifier.steam:${data.playerIdentifiers["steam"]} ${data.acePermission} allow # Add permission to '${data.playerName}' Steam account `); $("html").append(div); toggleCursor(true); isDialogActive = true; })