Callback
#1

Is there an callback to hide health bar and armor bar ?
Reply
#2

https://sampwiki.blast.hk/wiki/ShowNameTags

Not a callback, a function. The function above has to be used in OnGameModeInit, if you wish to change health bars/nametag status' during game run-time use: https://sampwiki.blast.hk/wiki/ShowPlayerNameTagForPlayer
Reply
#3

I said health bar, not name tag.
Reply
#4

Quote:
Originally Posted by Mr.Ilusion
Посмотреть сообщение
I said health bar, not name tag.
Disabling Nametags disable the health bar too.
Reply
#5

Quote:
Originally Posted by Mr.Ilusion
Посмотреть сообщение
I said health bar, not name tag.
If you read the wiki page properly (then again, that's probably too much to expect from someone who failed to spell 'illusion' correctly), you would have seen:

Quote:

This functions allows you to toggle the drawing of player nametags, healthbars and armor bars which display above their head.

Reply
#6

I'm talking about health bar near money, top right.
Reply
#7

Quote:
Originally Posted by Mr.Ilusion
Посмотреть сообщение
I'm talking about health bar near money, top right.
Be more specific. You could cover it with a textdraw, or find a way to hide the HUD (drunk levels / spectating tends to hide the HUD, but those aren't exactly convenient solutions).
Reply
#8

If you want hide HUD in specific momnent use
pawn Код:
SetPlayerCameraPos(..
SetPlayerCameraLookAt(...
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE4);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)