27.07.2018, 15:12
Hi, I am using mode at (https://sampforum.blast.hk/showthread.php?pid=3945921#pid3945921) , how can I add status messages to the actor's head ?
new Float:pos[3];
GetActorPos(actorid, pos[0], pos[1], pos[2]); // Replace "actorid" with the ID of the actor
CreateDynamic3DTextLabel("Add Text Here", -1, pos[0], pos[1], pos[2], 50.0, 0, 0);
Whenever you create the actors, loop through them and add the 3D Text Labels to them. When the player starts a robbery, you could check what actor is closer to the player (for loop + IsActorStreamedIn/get the actor's position and compare) and update his 3D Text Label to say whatever you want.
|