[Pomoc] CreateDynamic3DTextLabel -
Nedda - 13.04.2014
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);
Re: [Pomoc] CreateDynamic3DTextLabel -
Chenko - 13.04.2014
Instead of using Attach3DTextLabelToVehicle you need to change INVALID_VEHICLE_ID in CreateDynamic3DTextLabel to the vehicle ID you want to attach it to.
Re: [Pomoc] CreateDynamic3DTextLabel -
Nedda - 14.04.2014
I do not understand, can you explain a little better ?
Thx
Re: [Pomoc] CreateDynamic3DTextLabel -
Chenko - 14.04.2014
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);
Re: [Pomoc] CreateDynamic3DTextLabel -
Nedda - 14.04.2014
Thx broo ... It works. How to adjust the height of label ?