Auto Login ip adress?

how can i auto login server like fiveM?
in “citizen\ui\js\controller\auth.js” there is “invokeNative(‘connectTo’, ‘192.168…:’);” but it did not work

Open up your citizen\ui\ mpmenu.html

<body onload="setTimeout(function() { invokeNative('connectTo', '192.168.178.83:30120'); }, 5000);"> 

Paste this between;

	</script>
</head>

<body ng-class="[ isSignedIn() ? 'signedIn' : 'notSignedIn' ]">

So you will end up like this;

	</script>
</head>
<body onload="setTimeout(function() { invokeNative('connectTo', 'IP:PORT'); }, 5000);">
<body ng-class="[ isSignedIn() ? 'signedIn' : 'notSignedIn' ]">

Hope this helps :smile:

it works thank you…

one question. i want all weapons every spawn. how can i do that :slight_smile:

@fdsmaster said in Auto Login ip adress?:

it works thank you…

one question. i want all weapons every spawn. how can i do that :slight_smile:

You have to code this on the server, in the playerSpawn event.

Or use the trainer to select ‘keep weapons on respawn’.

We recommend Enhanced Reborn.

1 Like

@Boss This worked perfectly! Anywhere in this file (or similar) you can manually set your username, since it skips that screen?

@deziel0495 said in Auto Login ip adress?:

@Boss This worked perfectly! Anywhere in this file (or similar) you can manually set your username, since it skips that screen?

Nope, sorry. You’ll have to change your PC name. That’s what it takes…

@Boss said in Auto Login ip adress?:

@deziel0495 said in Auto Login ip adress?:

@Boss This worked perfectly! Anywhere in this file (or similar) you can manually set your username, since it skips that screen?

Nope, sorry. You’ll have to change your PC name. That’s what it takes…

Great, thanks!

sory i didn’t understand how to give all wepons in every spawn

Hello , your idea is good but not my problem still ! I havent server list on Citizen Menu and I havent menu also !? Just Citizen work not list or menu in …? I dont whant auto log just see the serveur list ?

How can i open “ui”? Which program?

At latest version of fivereborn , ui folder is not available . What can I do ??? pls help

  • This method no longer works.
Locked