Everything like objects, players or vehicles use IDs. Some IDs start with 0, others start with 1.
|3D Text Label||0|
|TextDraw / PlayerTextDraw||0|
You see, vehicles and objects start using 1, not 0! So if you plan to use an array to hold all IDs you have to use the ID from CreateObject/CreateVehicle/... and subtract 1 to get the array element ID.