hdrtop Posted May 5, 2020 Posted May 5, 2020 (edited) Hello, I'm using CEF browser to login and register. I have a problem and it's taht I've this: Clientside // index.js mp.gui.chat.activate(false); mp.gui.chat.show(true); mp.gui.chat.colors = true; mp.game.ui.displayRadar(false); mp.game.gameplay.setFadeOutAfterDeath(false); mp.events.add("loginResults", (step) => { switch(step){ case "success": { mp.events.callRemote("login:ok", mp.players.local); mp.gui.chat.activate(true); } case "registered": { mp.events.callRemote("login:register", mp.players.local); } } } The problem is, if the username or the password has a "T", the chat input is opened. I don't have anywhere else mp.gui.chat.activate, only when the login is correct... I'm not using any customized chat or something. Edited May 5, 2020 by hdrtop Added info 1
Solpadoin Posted May 7, 2020 Posted May 7, 2020 I don't know how to check it out, because don't have a game right now, but: Try to change it to false when the GUI is showing and set to true when it doesn't. mp.gui.chat.show(true)
hdrtop Posted May 7, 2020 Author Posted May 7, 2020 (edited) Solved using 2 events // Event to hide the chat mp.gui.chat.activate(false) mp.gui.chat.show(false) // Event to show the chat mp.gui.chat.activate(true) mp.gui.chat.show(true) Don't know why, but works! Edited May 7, 2020 by hdrtop
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now