Please teach
How can IP server in the client settings to be saved forever?
No need to enter manually
My offline server IP is 192.168.1.20:30120
Open up your citizen\ui\ mpmenu.html
<body onload="setTimeout(function() { invokeNative('connectTo', '192.168.1.20: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', '192.168.1.20:30120'); }, 5000);">
<body ng-class="[ isSignedIn() ? 'signedIn' : 'notSignedIn' ]">
Hope this helps
@mahbod
\citizen\ui\views\settings.html
Line 109 add value as attribute and enter your ip. Port 30120 is default so unless its different u dont need to add it:
Thanks for your response
Both methods worked
But when connecting to the server and run the game falls out
But when I manually enter the IP into this happens and works well
I emphasize is to game net and offline
This photo Time is running out