ozinhobr Posted August 2, 2020 Posted August 2, 2020 Quote var cef = mp.browsers.new("package://assets/registerLogin.html"); mp.gui.cursor.visible = true; let sceneryCamera = mp.cameras.new('default', new mp.Vector3(-485, 1095.75, 323.85), new mp.Vector3(0,0,0), 40); sceneryCamera.pointAtCoord(402.8664, -996.4108, -98.5); //Changes the rotation of the camera to point towards a location sceneryCamera.setActive(true); mp.game.cam.renderScriptCams(true, false, 0, true, false); mp.game.ui.displayRadar(false); mp.events.add("registerLogin.client", function(login, password, type){ if(login.length >= 3 && password.length >= 5){ mp.events.callRemote("registerLogin.server", login, password, type); } else { mp.game.graphics.notify("Informação inválida!"); }; }); mp.events.add("registerLogin.destroy", function(){ cef.destroy(); mp.gui.cursor.visible = false; mp.game.ui.displayRadar(true); mp.game.cam.renderScriptCams(false, false, 0, true, false); }); if(mp.game.ui.isPauseMenuActive()){ mp.game.ui.setFrontendActive(false); } Cursor not showing in login/register
randzhamiya Posted August 2, 2020 Posted August 2, 2020 https://wiki.rage.mp/index.php?title=Cursor.show 1
ozinhobr Posted August 2, 2020 Author Posted August 2, 2020 not working :(... this code in a function works => mp.gui.cursor.visible = true;
ozinhobr Posted August 2, 2020 Author Posted August 2, 2020 this works! setTimeout(function() { mp.gui.cursor.show(true, true); }, 500);
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