Bully-Board
Bully Modding Section => Script Modding => LUA Scripting Help => Topic started 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.
-
PedShowHealthBar(PedID, true, "N_PedName", true)
Put the ID of the ped, along with a the name of the ped.
Like N_Peanut
-
Does the ped have to be recruited because it didn't work for some reason.
-
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
-
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.
-
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.