Skip to content

Commit

Permalink
Add FX-HUD support (#42)
Browse files Browse the repository at this point in the history
* Update README.md

* update languages

* Update fxmanifest.lua

- version bump

* Update config.lua

- add support for FX-HUD

* Update client.lua

- add support for FX-HUD
  • Loading branch information
JusCampin authored Feb 19, 2024
1 parent 3e169e1 commit 8c16e9a
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 25 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Add the canteen and bucket items to a store or crafting station for players to b
- RSD Metabolism
- NXT Metabolism
- Andrade Metabolism
- FX-HUD

#### Installation
- Add `bcc-water` folder to your resources folder
Expand Down
7 changes: 7 additions & 0 deletions client/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,13 @@ function PlayerStats(isWild)
else
TriggerEvent('hud:client:changeValue', 'Thirst', Config.thirst)
end
end,
[9] = function()
if isWild then
exports['fx-hud']:setStatus('thirst', Config.wildThirst)
else
exports['fx-hud']:setStatus('thirst', Config.thirst)
end
end
}
if appUpdate[app] then
Expand Down
17 changes: 9 additions & 8 deletions config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ Config = {}
Config.defaultlang = 'en_lang'
---------------------------------------------------------------

-- Vorp Metabolism = 1
-- Fred Metabolism Free = 2
-- Outsider Needs = 3
-- Fred Metabolism Paid v1.4 = 4
-- Fred Metabolism Paid v2 = 5
-- RSD Metabolism Paid = 6
-- NXT Metabolism Paid = 7
-- Andrade Metabolism Paid = 8
-- Vorp Metabolism = 1
-- Fred Metabolism Free = 2
-- Outsider Needs = 3
-- Fred Metabolism Paid v1.4 = 4
-- Fred Metabolism Paid v2 = 5
-- RSD Metabolism Paid = 6
-- NXT Metabolism Paid = 7
-- Andrade Metabolism Paid = 8
-- FX-HUD = 9
Config.app = 1
---------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ shared_scripts {
'languages/*.lua'
}

version '1.0.4'
version '1.0.5'
2 changes: 1 addition & 1 deletion languages/nl_lang.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---------------------------------- ENGLISH -------------------------------------------
---------------------------------- Dutch -------------------------------------------
Locales["nl_lang"] = {

fillCanteen = "Vul Waterfles",
Expand Down
29 changes: 15 additions & 14 deletions languages/ptbr_lang.lua
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
---------------- PORTUGUÊS BRASILEIRO ----------------
Locales["ptbr_lang"] = {
fillCanteen = "Encher Cantil",
fillBucket = "Encher Balde",
wash = "Lavar",
drink = "Beber",
fullCanteen = "Seu cantil está ~o~cheio",
fullBucket = "Seu balde está ~o~cheio",
message_4 = "Cantil está ~o~75 ~q~por cento cheio",
message_3 = "Cantil está ~o~50 ~q~por cento cheio",
message_2 = "Cantil está ~o~25 ~q~por cento cheio",
message_1 = "Seu cantil está ~o~vazio~q~!",
notEmpty = "Seu cantil ~o~não está ~q~vazio",
needCanteen = "Você precisa de um cantil!",
needBucket = "Você precisa de um balde vazio!",
waterPump = "Bomba de Água"

fillCanteen = "Encher Cantil",
fillBucket = "Encher Balde",
wash = "Lavar",
drink = "Beber",
fullCanteen = "Seu cantil está ~o~cheio",
fullBucket = "Seu balde está ~o~cheio",
message_4 = "Cantil está ~o~75 ~q~por cento cheio",
message_3 = "Cantil está ~o~50 ~q~por cento cheio",
message_2 = "Cantil está ~o~25 ~q~por cento cheio",
message_1 = "Seu cantil está ~o~vazio~q~!",
notEmpty = "Seu cantil ~o~não está ~q~vazio",
needCanteen = "Você precisa de um cantil!",
needBucket = "Você precisa de um balde vazio!",
waterPump = "Bomba de Água"
}
1 change: 0 additions & 1 deletion languages/ro_lang.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ Locales["ro_lang"] = {
needCanteen = "Ai nevoie de o pleosca!",
needBucket = "Ai nevoie de o galeata goala!",
waterPump = "Pompă de Apă"

}

0 comments on commit 8c16e9a

Please sign in to comment.