SA-MP Forums Archive
CreateDynamic3DTextLabel not working at all. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: CreateDynamic3DTextLabel not working at all. (/showthread.php?tid=654307)



CreateDynamic3DTextLabel not working at all. - insus100 - 25.05.2018

Hey guys so I'm trying to create a 3D textlabel with Incognito's streamer, and attach it to a player like this:
PHP код:
//top
new Text3D:PlayerNametag[MAX_PLAYERS];
//---------
//This is a cmd for example:
new Float:xFloat:yFloat:z;
    
GetPlayerPos(playeridxyz);
    
PlayerNametag[playerid] = CreateDynamic3DTextLabel("Suspect"0xAA3333AAxyz20.0playerid); 
But the 3DLabel is not even being created. Creating the labels without trying to attach them works, but when I put 'playerid' or something in the native to attach it, it won't even create.
Thanks for your help.


Re: CreateDynamic3DTextLabel not working at all. - DeathCore - 26.05.2018

It's created, you just don't see it, but other players can see it, if you want to see your text you can use "CreatePlayer3DTextLabel", but if you prefer to use Streamer so replace 'INVALID_PLAYER_ID' with 'playerid' and add a new parameter called 'GetPlayerVehicleID(playerid)' to the function.