Jump to content

Recommended Posts

Posted
Quote
var cef = mp.browsers.new("package://assets/registerLogin.html");
mp.gui.cursor.visible = true;
 
let sceneryCamera = mp.cameras.new('default'new mp.Vector3(-4851095.75323.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(truefalse0truefalse);
 
mp.game.ui.displayRadar(false);
 
mp.events.add("registerLogin.client"function(loginpasswordtype){
  
    if(login.length >= 3 && password.length >= 5){
        mp.events.callRemote("registerLogin.server"loginpasswordtype);
    }
    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(falsefalse0truefalse);
});
 
if(mp.game.ui.isPauseMenuActive()){
    mp.game.ui.setFrontendActive(false);
}

Cursor not showing in login/register

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...