Auto Login ip adress?


#1

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


#2

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:


#3

it works thank you…

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


#4

@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.


#5

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

We recommend Enhanced Reborn.


#6

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


#7

@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…


#8

@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!


#9

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


#10

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 ?


#11

How can i open “ui”? Which program?


#12

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


#13
  • This method no longer works.
Locked