News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: How to use the PedShowHealthBar function  (Read 4886 times)

0 Members and 1 Guest are viewing this topic.

Offline AWiseMelon

  • Jr. Member
  • **
  • Posts: 42
  • Gender: Male
    • View Profile
How to use the PedShowHealthBar function
« on: April 08, 2016, 07:12:09 PM »
I know there is a PedShowHealthBar function but I don't know how to use it, I want to have it like a boss style health bar where it is at the top of the screen with the enemy's name over the top of the bar.

Offline Shrimp

  • Sr. Member
  • ***
  • Posts: 514
  • Gender: Male
  • your official b-b's chav. wag wan.
    • View Profile
Re: How to use the PedShowHealthBar function
« Reply #1 on: April 08, 2016, 08:20:44 PM »
PedShowHealthBar(PedID, true, "N_PedName", true)
Put the ID of the ped, along with a the name of the ped.
Like N_Peanut

Offline AWiseMelon

  • Jr. Member
  • **
  • Posts: 42
  • Gender: Male
    • View Profile
Re: How to use the PedShowHealthBar function
« Reply #2 on: April 09, 2016, 07:30:17 AM »
Does the ped have to be recruited because it didn't work for some reason.

Offline UltimateGamer9

  • Full Member
  • ***
  • Posts: 190
  • Gender: Male
    • View Profile
Re: How to use the PedShowHealthBar function
« Reply #3 on: April 09, 2016, 10:27:35 AM »
Does the ped have to be recruited because it didn't work for some reason.
PedShowHealthBar(Ped,true,PedGetName(Ped),true) it's better if u use PedGetName

Offline Shrimp

  • Sr. Member
  • ***
  • Posts: 514
  • Gender: Male
  • your official b-b's chav. wag wan.
    • View Profile
Re: How to use the PedShowHealthBar function
« Reply #4 on: April 09, 2016, 10:58:32 AM »
Does the ped have to be recruited because it didn't work for some reason.
PedShowHealthBar(Ped,true,PedGetName(Ped),true) it's better if u use PedGetName
There has to be a N_ in the middle, that's different to the name of a Ped in th PedGetName.

Offline DaBOSS54320

  • Hero Member
  • ****
  • Posts: 3,398
  • Gender: Female
    • View Profile
Re: How to use the PedShowHealthBar function
« Reply #5 on: April 09, 2016, 02:58:50 PM »
The name it expects is the one from default.ide that is associated with the model. For this reason, it is usually best to do as UltimateGamer9 said unless you for some reason want a different name to show up.