Jump to content
AmaZiinG

[Tutorial] Statusbar 4.X

Recommended Posts

works perfectly on altis v5

thank you soo much !!!

btw which file is it that i can go into and edit the teamspeak address ? like how can i edit the bar?

Share this post


Link to post
Share on other sites

I got a big problem with this bar,when i m Civilian i didn't have the bar i just have it when i respawn but when i go on EMS or Cop i got it ... So what is the problem ?

Edited by Jey

Share this post


Link to post
Share on other sites

Yesterday I changed the save_civilian_position and save_civilian_position_restart to true inside the Config_Master.hpp and what happened is that the statusbar wont load when the player connects as a civilian on the server for the second time. Only when he connects for the first time or when he respawn. If the player connects as a Cop or EMS, everything works. I'm almost sure it has something to do with the save civilian position  but I don't know how to fix it. So if anyone could help me I would apreciate very much.

Share this post


Link to post
Share on other sites
On 19/07/2017 at 1:48 PM, hell said:

Ontem eu mudei o  save_civilian_position  save_civilian_position_restart para  true  dentro do  Config_Master.hpp e o que aconteceu é que a barra de status não será carregada quando o jogador se conectar como um civil no servidor pela segunda vez. Somente quando ele se conecta pela primeira vez ou quando ele respawn. Se o jogador se conectar como um Cop ou EMS, tudo funciona. Tenho quase certeza de que tem algo a ver com a posição de salvar civil, mas não sei como corrigi-lo. Então, se alguém pudesse me ajudar, eu apreciaria muito.   

I'm having this same problem

Share this post


Link to post
Share on other sites

I have this working nicely, no problems but im trying to add food, health and thirst to it but not sure how to do it. 

Ive added the sections for it in playerbar.sqf but not sure what add in at the end of these lines for it to work

<t shadow='1' shadowColor='#000000' color='%10'><img size='1.6'  shadowColor='#000000' image='scripts\status_bar\images\hunger.paa' color='%10'/> Food: </t>

Ive added 

        _food = (life_food / 100);
        _thirst = (life_thirst / 100);
        _damage = (life_damage / 100)

under the variables as the way their called in the normal hud.
Any ideas?

Share this post


Link to post
Share on other sites
On 2/10/2018 at 12:10 PM, Marcus Suridius said:

I have this working nicely, no problems but im trying to add food, health and thirst to it but not sure how to do it. 

Ive added the sections for it in playerbar.sqf but not sure what add in at the end of these lines for it to work

<t shadow='1' shadowColor='#000000' color='%10'><img size='1.6'  shadowColor='#000000' image='scripts\status_bar\images\hunger.paa' color='%10'/> Food: </t>

Ive added 

        _food = (life_food / 100);
        _thirst = (life_thirst / 100);
        _damage = (life_damage / 100)

under the variables as the way their called in the normal hud.
Any ideas?

if i had to guess,

https://pastebin.com/nNj0h52w

        _food = (life_food / 100);

        _thirst = (life_thirst / 100);

        _damage = (1 - (damage player));

or you could use something similar and see how they did it

https://www.altisliferpg.com/topic/4-tutorial-status-bar-44r3/?page=2

 

Edited by Deadlesszombie
  • Like 1

Share this post


Link to post
Share on other sites

Yeah managed to get it working with some fine tuning,

here is my config in case its useful to anyone.

When first trying it the bar never finished loading, I changed _food to _hunger because it gave off a SCANAR NAN error, works when changed.

Also moved the _hunger _thirst _damage up to the other lines and below set them like the others.

Only things left to tweak is that it displays hunger & thirst at 1 for 100 and like 0.6 for 60% but ill mess around and try get it 100%.

I do have an issue that when robbing gas stations the bar disappears when the Robbing progress bar appears then the "robbing" one disappears and the status bar then reappears. Its odd because it doesn't happen when repairing or robbing the FED.

Share this post


Link to post
Share on other sites

Is there a fix for the progress bar disappearing yet? I could really use a proper explanation on how to fix it as i am not that good at scripting yet, so i would need more then just call a certain function or whatever.

Share this post


Link to post
Share on other sites
22 hours ago, Jacobob said:

This works great love the layout. Although can someone please help me remove the other stats bar so this one suits better? Thank you

 

http://steamcommunity.com/profiles/76561198232416704/screenshot/910167954990063723

Look at other posts as well as there are posts to remove the default status bar..

Share this post


Link to post
Share on other sites
5 hours ago, dexatrin82 said:

Status Bar Is not displaying, no errors on server rpt... any ideas?

It does work, refollow the tutorial and first couple of posts to make sure you've done everything.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×