diff --git a/client/client.js b/client/client.js new file mode 100644 index 0000000..6f7c02c --- /dev/null +++ b/client/client.js @@ -0,0 +1,36 @@ +let visible = false + +RegisterCommand('kasiraamat', (source, args) => { + print('Käsiraamat avatud.') + setDisplay(!visible) +}, false); + +RegisterNuiCallback("lahku",() => { + setDisplay(false) +}); + +RegisterNuiCallback("error",(data) => { + print(data.error) + setDisplay(false) +}); + +function setDisplay(b) { + visible = b + SetNuiFocus(b, b) + SendNUIMessage({ + type: "ui", + status: b + }); +} + +setImmediate(() => { + while (visible) { + Delay(0); + DisableControlAction(0, 1, visible) // LookLeftRight + DisableControlAction(0, 2, visible) // LookUpDown + DisableControlAction(0, 142, visible) // MeleeAttackAlternate + DisableControlAction(0, 18, visible) // Enter + DisableControlAction(0, 322, visible) // ESC + DisableControlAction(0, 106, visible) // VehicleMouseControlOverride + } +}) \ No newline at end of file diff --git a/fxmanifest.lua b/fxmanifest.lua new file mode 100644 index 0000000..7edc2b6 --- /dev/null +++ b/fxmanifest.lua @@ -0,0 +1,18 @@ +fx_version 'cerulean' +game 'gta5' + +name 'PDL Help' +author 'wallsxd & atluzka' +description 'Displays commands and keybind information' +version '1.0.1' + +client_scripts {"client/*.js"} + +ui_page { + 'html/index.html' +} + +files { + 'html/*.*', + 'html/images/*.*' +} diff --git a/html/images/logo.png b/html/images/logo.png new file mode 100644 index 0000000..828e473 Binary files /dev/null and b/html/images/logo.png differ diff --git a/html/index.html b/html/index.html new file mode 100644 index 0000000..878a39a --- /dev/null +++ b/html/index.html @@ -0,0 +1,53 @@ + + +
+ + + + + + + +Siin on kõik tavalised keybindid erinevatele tegevustele, mis teil vaja läheb
+Avab Telefoni
+Avab seljakoti
+Siin on kõik tavalised keybindid erinevatele tegevustele, mis teil vaja läheb
+Avab selle sama menüü
+Loob kaebuse A-Tiimile
+