How to create text over player head ?
#1

How to create text over player head like "AFK PLAYER"
Reply
#2

https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer
Reply
#3

Attach3DTextLabelToPlayer could work, or you could use the dynamic one.

AttachDynamic3DTextLabel...... you can assign it to vehicles, objects, anything you wish. (Check out the params for them)
Reply
#4

Or an alternative would be:

SetPlayerChatBubble

Which is commonly used in servers to display an overhead label for a temporary amount of time. This does indeed come with an 'expiretime' parameter, upon which you would have to set a very lengthy amount of time in milliseconds, otherwise I would go with the suggestions from the above posters, and use the following Create3DTextLabel and Attach3DTextLabelToPlayer.

If you require more help with this code, feel free to pm me over the forums.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)