Get Journey Door Coordinate
#1

Hi. I want to add a TextLabel and a Pickup next to the car, and, every time you exit the vehicle, the pickup and the textlabel appears. Basically, i want to "stick" a pickup and a textlabel on the left door of the journey:



This is the door i was talking about:

Image

URL because the image is too big.

I've already tryed some things, but i could not do it D:

Help? D:
Reply
#2

No one? :S
Reply
#3

Hello there,

Use Attach3DTextLabelToVehicle
Visit https://sampwiki.blast.hk/wiki/Attach3DTextLabelToVehicle
For more information.

I hope I helped any feedback would be appreciated.

Same works with 3d dynamic text labels.
Reply
#4

bruxo you only need to use trigonometria (cant say in english)
Reply
#5

After
OnPlayerExitVehicle
Put this
Delete3DTextLabel(Your Text Here);
Reply
#6

find offset of the door, then create a label...
Reply
#7

pawn Код:
new Text3D:VehText[MAX_VEHICLES];
    Delete3DTextLabel(VehText[vehicleid]);
    VehText[vehicleid] = Create3DTextLabel("Test", COLOUR_WHITE, 0.0,0.0,0.0,15,0,0);
    Attach3DTextLabelToVehicle(VehText[vehicleid], vehicleid, 1.375, 0.25, 0.1);
Made this:



To be honest, I ain't sure what you really want. I don't believe there is a function to attach a Pickup to a vehicle. Although, it will be possible to create one upon needing it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)