[Pomoc] CreateDynamic3DTextLabel
#1

Hello !!
What's wrong?
Thx for help ...
vehicle3Dtext0 = CreateDynamic3DTextLabel("Vozilo Buffalo na prodaji\n Cijena: $120000",COLOR_LIMEGREEN,0.0,0.0,0.0,25.0,INVALID_ PLAYER_ID,INVALID_VEHICLE_ID,0,-1,-1,-1,100.0);
Attach3DTextLabelToVehicle( vehicle3Dtext0, Autosalun[0], 0.0, 0.7, 3.0);
Reply
#2

Instead of using Attach3DTextLabelToVehicle you need to change INVALID_VEHICLE_ID in CreateDynamic3DTextLabel to the vehicle ID you want to attach it to.
Reply
#3

I do not understand, can you explain a little better ?
Thx
Reply
#4

Sure.

When you use streamer and CreateDynamic3DTextLabel you cannot use Attach3DTextLabelToVehicle. You need to use the AttachedVehicle parameter in CreateDynamic3DTextLabel.

Код:
native Text3D:CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
So instead of having:

Код:
vehicle3Dtext0 = CreateDynamic3DTextLabel("Vozilo Buffalo na prodaji\n Cijena: $120000",COLOR_LIMEGREEN,0.0,0.0,0.0,25.0,INVALID_ PLAYER_ID,INVALID_VEHICLE_ID,0,-1,-1,-1,100.0);
Attach3DTextLabelToVehicle( vehicle3Dtext0, Autosalun[0], 0.0, 0.7, 3.0);
You need to have:

Код:
vehicle3Dtext0 = CreateDynamic3DTextLabel("Vozilo Buffalo na prodaji\n Cijena: $120000",COLOR_LIMEGREEN,0.0,0.0,0.0,25.0,INVALID_ PLAYER_ID,Autosalun[0],0,-1,-1,-1,100.0);
Reply
#5

Thx broo ... It works. How to adjust the height of label ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)