open.mp forum
[Suggestion] More functions for 3D Texts Labels - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: open.mp (https://forum.open.mp/forumdisplay.php?fid=40)
--- Forum: Questions and Suggestions (https://forum.open.mp/forumdisplay.php?fid=42)
--- Thread: [Suggestion] More functions for 3D Texts Labels (/showthread.php?tid=1093)



More functions for 3D Texts Labels - ForT - 2020-05-22

I thought of some functions for the 3d texts that could be very useful and that would also make the servers more attractive if used in the right way.



PHP Code:
#define TEXT3D_ALIGNMENT_CENTER? ? ?0 // Default

#define TEXT3D_ALIGNMENT_LEFT? ? ? ?1

#define TEXT3D_ALIGNMENT_RIGHT? ? ? 2



native Text3D_SetShadowColor(Text3D:idshadowcolor);

native Text3D_UseBox(Text3D:id, use);

native Text3D_BoxColor(Text3D:idboxcolor);

native Text3D_SetAlignment(Text3D:idalignment);

native Text3D_AttachToObject(Text3D:idobjectidFloat:OffsetXFloat:OffsetYFloat:OffsetZ);

native Text3D_SetDrawDistance(Text3D:idFloat:drawdistance); // Increase the draw distance limit to 3000.0 (or more? :D)



// Similar to object material

native Text3D_ChangeFont(Text3D:idfontface[] = "Arial"fontsize 24bold 1);