Begin tuning system

This commit is contained in:
hydrant
2018-10-21 21:45:11 +02:00
parent 604229210e
commit 618c8cba28
5 changed files with 72 additions and 0 deletions

15
Client/Tuning/main.js Normal file
View File

@@ -0,0 +1,15 @@
/**
* @overview Life of German Reallife - Tuning tuning.js
* @author hydrant
* @copyright (c) 2008 - 2018 Life of German
*/
mp.events.add('showTuningInfo', () => {
mp.game.ui.setTextComponentFormat('STRING');
mp.game.ui.addTextComponentSubstringPlayerName('Drücke ~INPUT_CONTEXT~, um dein Fahrzeug zu modifizieren');
mp.game.ui.displayHelpTextFromStringLabel(0, true, true, -1);
});
mp.events.add('hideTuningInfo', () => {
mp.game.ui.clearHelp(true);
});