CreateDynamic3DTextLabel not working at all.
#1

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.
Reply
#2

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)