2020-05-22, 03:47 PM
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:id, shadowcolor);
native Text3D_UseBox(Text3D:id, use);
native Text3D_BoxColor(Text3D:id, boxcolor);
native Text3D_SetAlignment(Text3D:id, alignment);
native Text3D_AttachToObject(Text3D:id, objectid, Float:OffsetX, Float:OffsetY, Float:OffsetZ);
native Text3D_SetDrawDistance(Text3D:id, Float:drawdistance); // Increase the draw distance limit to 3000.0 (or more? :D)
// Similar to object material
native Text3D_ChangeFont(Text3D:id, fontface[] = "Arial", fontsize = 24, bold = 1);