SA-MP Forums Archive
CreateDynamic3DTextLabel attach to vehicle isn't working. - 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 attach to vehicle isn't working. (/showthread.php?tid=608146)



CreateDynamic3DTextLabel attach to vehicle isn't working. - BornHuman - 28.05.2016

As the title says. Here's the code for the createvehicle and the text label.

pawn Код:
Dealership[id][DealerVehID] = CreateVehicle(Dealership[id][DealerModel], Dealership[id][DealerVehPos][0], Dealership[id][DealerVehPos][1], Dealership[id][DealerVehPos][2], Dealership[id][DealerVehPos][3], 0, 0, 0);
Dealership[id][DealerTextID] = CreateDynamic3DTextLabel(Array, WHITE, Dealership[id][DealerVehPos][0], Dealership[id][DealerVehPos][1], Dealership[id][DealerVehPos][2], 7.0, INVALID_PLAYER_ID, Dealership[id][DealerVehID], 0, Dealership[id][DealerVehVW], Dealership[id][DealerVehInt]);
.

No errors. It just doesn't attach to the car in game.

Edit: I just did a print test and it is indeed getting the right vehicle ID. So am I just using the wrong syntax or? - Because it's just not creating in game.


Re: CreateDynamic3DTextLabel attach to vehicle isn't working. - AbyssMorgan - 28.05.2016

PHP код:
Dealership[id][DealerTextID] = CreateDynamic3DTextLabel(Array, WHITE0.00.00.07.0INVALID_PLAYER_IDDealership[id][DealerVehID], 0Dealership[id][DealerVehVW], Dealership[id][DealerVehInt]); 
Position 3Dtext changeg to offset when attached