Bully-Board

Bully Modding Section => Script Modding => LUA Scripting Help => Topic started by: AWiseMelon on April 08, 2016, 07:12:09 PM

Title: How to use the PedShowHealthBar function
Post by: AWiseMelon 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.
Title: Re: How to use the PedShowHealthBar function
Post by: Shrimp 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
Title: Re: How to use the PedShowHealthBar function
Post by: AWiseMelon on April 09, 2016, 07:30:17 AM
Does the ped have to be recruited because it didn't work for some reason.
Title: Re: How to use the PedShowHealthBar function
Post by: UltimateGamer9 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
Title: Re: How to use the PedShowHealthBar function
Post by: Shrimp 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.