ziggi / FCNPC

FCNPC - Fully Controllable NPC
Apache License 2.0
131 stars 30 forks source link

Suggestion: Function to show or hide NPC health bar per player #248

Closed Awide closed 3 years ago

Awide commented 3 years ago

It would be nice to have a function that shows or hides the NPC's health/armour bars per player.

ziggi commented 3 years ago

Try this: https://team.sa-mp.com/wiki/ShowPlayerNameTagForPlayer.html

// hide health bar of npcid to playerid
ShowPlayerNameTagForPlayer(playerid, npcid, false);
Awide commented 3 years ago

Thanks for the tip, I tried! It did not do anything. _FCNPCShowInTabListForPlayer works though, but then they are shown in the tablist.

ziggi commented 3 years ago

Oh, it's a sa-mp feature. You cannot show the name of the NPC. Tablist function is everything what you can get. Also you can use 3D text to display the name of the NPC.