diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index 20ad7fe37..0c5c8428a 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -83,4 +83,5 @@ fix lint error: unused argument last; accessing undefined variable Invoke; unuse 56. [bpt_deliveries]: feat + chore: updated readme file + creation of Italian translation @bitpredator 57. [bpt_dustman]: refactor: bpt_dustman inventory implementation @bitpredator 58. [bpt_farmer]: refactor: support for translations through local files @bitpredator -59. [bpt_fishermanjob]: refactor: bpt_fishermanjob inventory implementation @bitpredator \ No newline at end of file +59. [bpt_fishermanjob]: refactor: bpt_fishermanjob inventory implementation @bitpredator +60. [bpt_hud]: chore: push for version 1.0.0 @bitpredator \ No newline at end of file diff --git a/server-data/resources/[bpt_addons]/bpt_hud/README.md b/server-data/resources/[bpt_addons]/bpt_hud/README.md index dede44664..5b5d64a06 100644 --- a/server-data/resources/[bpt_addons]/bpt_hud/README.md +++ b/server-data/resources/[bpt_addons]/bpt_hud/README.md @@ -1,12 +1,21 @@ +

bpt_hud

+

Discord + Copyright (C) 2022-2023 bitpredator -This program is a project for the fivem community, you have legal permission to distribute and / or modify it only if you have forked this repository, if it is not a fork repository, the version will be removed from the DMCA request. +This program Is free software: you can redistribute it And/Or modify it under the terms Of the GNU General Public License As published by the Free Software Foundation, either version 3 Of the License, Or (at your option) any later version. + +This program Is distributed In the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty Of MERCHANTABILITY Or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License For more details. -ATTENTION: You are not authorized to change the name of the resource and the resources within it. +ATTENTION: +You are not authorized to change the name of the resource and the resources within it. If you want to contribute you can open a pull request. + You are not authorized to sell this software (this is free project). + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/. Standalone map system diff --git a/server-data/resources/[bpt_addons]/bpt_hud/html/style.js b/server-data/resources/[bpt_addons]/bpt_hud/html/style.js index 9245339b6..5cbb03696 100644 --- a/server-data/resources/[bpt_addons]/bpt_hud/html/style.js +++ b/server-data/resources/[bpt_addons]/bpt_hud/html/style.js @@ -4,7 +4,6 @@ $(document).ready(function(){ if (data.show == false){ if (data.posi == "bottom"){ $("body").show(); - //$(".wave:after").css("top", (40-data.health) + "%"); soMany = 50-data.health; document.querySelectorAll('.wave')[0].style.setProperty("--top", `${soMany}%`); @@ -19,25 +18,24 @@ $(document).ready(function(){ } else { - $(".main").css("top", "15vh"); - $(".main").css("right", "5vw"); - $("body").show(); - soMany = 50-data.health; - document.querySelectorAll('.wave')[0].style.setProperty("--top", `${soMany}%`); + $(".main").css("top", "15vh"); + $(".main").css("right", "5vw"); + $("body").show(); + soMany = 50-data.health; + document.querySelectorAll('.wave')[0].style.setProperty("--top", `${soMany}%`); - armorJS = 50 - data.armor - document.querySelectorAll('.wave2')[0].style.setProperty("--top", `${armorJS}%`); + armorJS = 50 - data.armor + document.querySelectorAll('.wave2')[0].style.setProperty("--top", `${armorJS}%`); - foodJS = 50 - data.food - document.querySelectorAll('.wave3')[0].style.setProperty("--top", `${foodJS}%`); + foodJS = 50 - data.food + document.querySelectorAll('.wave3')[0].style.setProperty("--top", `${foodJS}%`); - waterJS = 50 - data.thirst - document.querySelectorAll('.wave4')[0].style.setProperty("--top", `${waterJS}%`); - } - } + waterJS = 50 - data.thirst + document.querySelectorAll('.wave4')[0].style.setProperty("--top", `${waterJS}%`); + }} else { - $("body").hide(); + $("body").hide(); } }); }); \ No newline at end of file diff --git a/server-data/resources/[bpt_addons]/bpt_hud/html/ui.html b/server-data/resources/[bpt_addons]/bpt_hud/html/ui.html index a97407a49..2b61e6bae 100644 --- a/server-data/resources/[bpt_addons]/bpt_hud/html/ui.html +++ b/server-data/resources/[bpt_addons]/bpt_hud/html/ui.html @@ -5,7 +5,6 @@ -