attaching label to a moving/standing object
#1

Hello, I was wondering how can I attach a label to moving/standing object.
The reason I'm looking for this is when i have a label attached to a object and that object gets hit with a car I want the label to move with object. I know you can do it with

Streamer_SetArrayData but since Incogito removed documentation from the original thread it's been kind of a problem looking for the specifics. Thanks!
Reply
#2

Get the object position - https://sampwiki.blast.hk/wiki/GetObjectPos
Then create a text label at the position of it - https://sampwiki.blast.hk/wiki/Create3DTextLabel
Then update the label when the object moves - https://sampwiki.blast.hk/wiki/Update3DTextLabelText
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)