AttachPlayer3DTextToPlayer

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Hallo BF,


    meine Frage wäre ob es möglich ist Spieler-3DTexte an Spieler zu attachen.


    Wer jz mit Attach3DTextLabelToPlayer kommt liegt schonmal falsch, da ich dann die Variablentypen nicht gebacken bekomme,
    Grund: CreatePlayer3DTextLabel möchte eine "Player3DText" Variable, die oben genannte Funktion jedoch möchte eine "3DText" Variable.


    Ist es sonst irgendwie möglich?


    Gruß
    LaT3St


    ^ :thumbup: Klasse Internet, oder? :thumbup: ^

  • Klar ist das möglich.
    Bei CreatePlayer3DTextLabel kannst du den Text direkt attachen.
    Siehe hier wiki.sa-mp.com:


    playeridThe player which should see the newly created 3DText Label.


    text[]The text to display.


    colorThe text color


    xX Coordinate (or offset if attached)


    yY Coordinate (or offset if attached)


    zZ Coordinate (or offset if attached)


    DrawDistanceThe distance where you are able to see the 3D Text Label


    attachedplayerThe player you want to attach the 3D Text Label to. (None: INVALID_PLAYER_ID)


    attachedvehicleThe vehicle you want to attach the 3D Text Label to. (None: INVALID_VEHICLE_ID)
    testLOS0/1 Test the line-of-sight so this text can't be seen through walls


    (attachedplayerThe player you want to attach the 3D Text Label to. (None: INVALID_PLAYER_ID))


    mfG, Ashampoo.