Merge branch 'master' into master

This commit is contained in:
RikoDEV
2020-04-13 17:00:08 +02:00
committed by GitHub
8 changed files with 63 additions and 7 deletions
+3
View File
@@ -19,6 +19,9 @@ files {
'html/ui.html',
'html/css/main.css',
'html/js/app.js',
'html/locales/fr.js',
'html/locales/en.js',
'html/locales/pl.js',
}
dependency 'es_extended'
+2 -2
View File
@@ -47,7 +47,7 @@ $("#deletechar").click(function () {
$.each(data.characters, function (index, char) {
if (char.charid !== 0) {
var charid = char.identifier.charAt(4);
$('[data-charid=' + charid + ']').html('<h3 class="character-fullname">'+ char.firstname +' '+ char.lastname +'</h3><div class="character-info"><p class="character-info-work"><strong>Work: </strong><span>'+ char.job +' '+ char.job_grade +'</span></p><p class="character-info-money"><strong>Cash: </strong><span>'+ char.money +'</span></p><p class="character-info-bank"><strong>Bank: </strong><span>'+ char.bank +'</span></p> <p class="character-info-dateofbirth"><strong>Date of birth: </strong><span>'+ char.dateofbirth +'</span></p> <p class="character-info-gender"><strong>Gender: </strong><span>'+ char.sex +'</span></p></div>').attr("data-ischar", "true");
$('[data-charid=' + charid + ']').html('<h3 class="character-fullname">'+ char.firstname +' '+ char.lastname +'</h3><div class="character-info"><p class="character-info-work"><strong>' + `${translate.job}: ` + '</strong><span>'+ char.job +' '+ char.job_grade +'</span></p><p class="character-info-money"><strong>' + `${translate.money}: ` + '</strong><span>'+ char.money +'</span></p><p class="character-info-bank"><strong>' + `${translate.bank}: ` + '</strong><span>'+ char.bank +'</span></p> <p class="character-info-dateofbirth"><strong>' + `${translate.dob}: ` + '</strong><span>'+ char.dateofbirth +'</span></p> <p class="character-info-gender"><strong>' + `${translate.gender}: ` + '</strong><span>'+ char.sex +'</span></p></div>').attr("data-ischar", "true");
}
});
}
@@ -57,7 +57,7 @@ $("#deletechar").click(function () {
$('.main-container').css({"display":"none"});
$(".character-box").removeClass('active-char');
$("#delete").css({"display":"none"});
$(".character-box").html('<h3 class="character-fullname"><i class="fas fa-plus"></i></h3><div class="character-info"><p class="character-info-new">Create new character</p></div>').attr("data-ischar", "false");
$(".character-box").html('<h3 class="character-fullname"><i class="fas fa-plus"></i></h3><div class="character-info"><p class="character-info-new">' + `${translate.new}` + '</p></div>').attr("data-ischar", "false");
};
window.onload = function(e) {
window.addEventListener('message', function(event) {
+12
View File
@@ -0,0 +1,12 @@
const translate = new Object();
translate.job = "Job";
translate.bank = "Bank";
translate.money = "Cash";
translate.gender = "Gender";
translate.dob = "Date of birth";
translate.new = "Create new character";
translate.delete = "DELETE";
translate.play = "PLAY";
translate.modalTitle = "Are You Sure?";
translate.modalText = "By deleting your account we won't be able to recover it, all properties, cars etc. will be deleted";
+12
View File
@@ -0,0 +1,12 @@
const translate = new Object();
translate.job = "Métier";
translate.bank = "Banque";
translate.money = "Argent";
translate.gender = "Sexe";
translate.dob = "Date de naissance";
translate.new = "Créer un personnage";
translate.delete = "SUPPRIMER";
translate.play = "JOUER";
translate.modalTitle = "Êtes-vous sûr?";
translate.modalText = "En supprimant votre personnage, vous ne pourrez pas le récupérer. Toutes les informations seront supprimées.";
+12
View File
@@ -0,0 +1,12 @@
const translate = new Object();
translate.job = "Zajęcie";
translate.bank = "Bank";
translate.money = "Gotówka";
translate.gender = "Seks";
translate.dob = "Data urodzenia";
translate.new = "Utwórz nową postać";
translate.delete = "KASOWAĆ";
translate.play = "GRAĆ";
translate.modalTitle = "Jesteś pewny?";
translate.modalText = "Po usunięciu konta nie będziemy mogli go odzyskać, wszystkie nieruchomości, samochody itp. Zostaną usunięte";
+15 -4
View File
@@ -7,6 +7,7 @@
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<script src="locales/en.js"></script>
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
</head>
@@ -16,7 +17,7 @@
<div class="character-box" data-ischar="false" data-charid="1">
<h3 class="character-fullname"><i class="fas fa-plus"></i></h3>
<div class="character-info">
<p class="character-info-new">Create new character</p>
<p class="character-info-new"></p>
</div>
</div>
<div class="character-box" data-ischar="false" data-charid="2">
@@ -51,9 +52,9 @@
<button type="button" class="close" data-dismiss="modal">&times;</button>
</div>
<div class="modal-body">
<h5>Are You Sure?</h5>
<h5 class="modalTitle">Are You Sure?</h5>
<hr>
<p>By deleting your account we won't be able to recover it, all properties, cars etc. will be deleted</p>
<p class="modalText">By deleting your account we won't be able to recover it, all properties, cars etc. will be deleted</p>
<hr>
<div class="modal-footer">
<button id="deletechar" class="btn btn-delete" data-toggle="modal" data-dismiss="modal">DELETE</button>
@@ -67,4 +68,14 @@
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<script src="js/app.js" type="text/javascript"></script>
</body>
</html>
</html>
<script>
$(document).ready(() => {
$(".character-info-new").html(translate.new)
$(".btn-play").html(translate.play);
$(".btn-delete").html(translate.delete);
$(".modalTitle").html(translate.modalTitle);
$(".modalText").html(translate.modalText);
});
</script>
+3
View File
@@ -66,3 +66,6 @@ end)
## Jak to działa?
> Ten skrypt manipuluje ładowaniem postaci przez ESX.
Kiedy więc wybierasz swoją postać, skrypt zmienia twoją **licencje rockstar**, która jest normalnie zapisywana jako **license:** na **Char:**, co zapobiega ładowaniu przez ESX innej postaci, ponieważ szuka on dokładnej licencji.
## Obsługa wielu języków
Po prostu zmień locales/en.js w html/ui.html (linia 10)
+4 -1
View File
@@ -82,7 +82,7 @@ end)
```
# Read carefully...
> You **MUST** incerase the character limit in the `users` table for row `identifier` to **48**.
> You **MUST** increase the character limit in the `users` table for row `identifier` to **48**.
> Do **not** use essentialsmode, mapmanager and spawnmanager!
@@ -91,3 +91,6 @@ end)
## How it works
> What this script does it manipulates ESX for loading characters
So when you are choosing your character it changes your **Rockstar license** which is normally **license:** to **Char:** this prevents ESX from loading another character because it is looking for you exact license. So when you choose your character it will change it from Char: to your normal Rockstar license (license:). When creating a new character it will spawn you without an exact license which creates a new database entry for your license.
## Multiple languages support
Just change locales/en.js in html/ui.html (line 10)