Skip to content

Commit

Permalink
chore: push for version 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpredator committed Dec 27, 2023
1 parent 4863082 commit 36bac19
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 19 deletions.
3 changes: 2 additions & 1 deletion .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
59. [bpt_fishermanjob]: refactor: bpt_fishermanjob inventory implementation @bitpredator
60. [bpt_hud]: chore: push for version 1.0.0 @bitpredator
13 changes: 11 additions & 2 deletions server-data/resources/[bpt_addons]/bpt_hud/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
<h1 align='center'>bpt_hud</a></h1>
<p align='center'><a href='https://discord.gg/ksGfNvDEfq'>Discord</a>

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
Expand Down
28 changes: 13 additions & 15 deletions server-data/resources/[bpt_addons]/bpt_hud/html/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}%`);

Expand All @@ -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();
}
});
});
1 change: 0 additions & 1 deletion server-data/resources/[bpt_addons]/bpt_hud/html/ui.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<script src = "style.js" type = "text/javascript"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

</head>

<body>
Expand Down

0 comments on commit 36bac19

Please sign in to comment.