diff --git a/client/main.lua b/client/main.lua index ca443cc4..70c61ce2 100644 --- a/client/main.lua +++ b/client/main.lua @@ -35,9 +35,9 @@ end) function DrawMissionText(msg, time) ClearPrints() - SetTextEntry_2('STRING') - AddTextComponentString(msg) - DrawSubtitleTimed(time, 1) + BeginTextCommandPrint('STRING') + AddTextComponentSubstringPlayerName(msg) + EndTextCommandPrint(time, true) end function StartTheoryTest() diff --git a/config.lua b/config.lua index d08b91db..ffd216a6 100644 --- a/config.lua +++ b/config.lua @@ -2,7 +2,7 @@ Config = {} Config.DrawDistance = 100.0 Config.MaxErrors = 5 Config.SpeedMultiplier = 3.6 -Config.Locale = 'fr' +Config.Locale = 'sv' Config.Prices = { dmv = 500, diff --git a/html/scripts.js b/html/scripts.js index 5f78d4e2..07f2e817 100644 --- a/html/scripts.js +++ b/html/scripts.js @@ -64,7 +64,6 @@ function closeContainer() { // Listen for NUI Events window.addEventListener('message', function (event) { - var item = event.data; // Open & Close main window @@ -100,17 +99,16 @@ $(".btnKick").click(function () { // Handle Form Submits $("#question-form").submit(function (e) { - e.preventDefault(); if (questionNumber != nbQuestionToAnswer) { - //question 1 to 9 : pushing answer in array + //question 1 to 9: pushing answer in array closeAll(); userAnswer.push($('input[name="question"]:checked').val()); questionNumber++; openQuestionnaire(); } else { - // question 10 : comparing arrays and sending number of good answers + // question 10: comparing arrays and sending number of good answers userAnswer.push($('input[name="question"]:checked').val()); var nbGoodAnswer = 0; for (i = 0; i < nbQuestionToAnswer; i++) { @@ -128,5 +126,4 @@ $("#question-form").submit(function (e) { } return false; - }); diff --git a/html/ui.html b/html/ui.html index 59ffe301..cfa3094c 100644 --- a/html/ui.html +++ b/html/ui.html @@ -17,7 +17,8 @@
Bienvenu à votre Auto-école
Bienvenu à votre Auto-école
+