Aller au contenu principal

Get3DTextLabelText

attention

La fonctionnalité de type fonction a été ajoutée dans la version omp v1.1.0.2612 et ne fonctionne pas avec les versions antérieures !

Description​

Gets the 3D text label text.

NameDescription
Text3D:textidThe ID of the 3D text label to get the text of.
const text[]An array into which to store the text, passed by reference.
lenThe length of the text that should be stored.

Examples​

new Text3D:gMyLabel;

public OnGameModeInit()
{
gMyLabel = Create3DTextLabel("Hello World!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0, false);

new text[16];
Get3DTextLabelText(gMyLabel, text, sizeof(text));
// The `text` will be 'Hello World!'
return 1;
}