SA-MP Forums Archive
Get Journey Door Coordinate - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Get Journey Door Coordinate (/showthread.php?tid=526792)



Get Journey Door Coordinate - bruxo00 - 19.07.2014

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:


Re: Get Journey Door Coordinate - bruxo00 - 19.07.2014

No one? :S


Re: Get Journey Door Coordinate - Stanford - 19.07.2014

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.


Re: Get Journey Door Coordinate - caoraivoso3 - 20.07.2014

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


Re: Get Journey Door Coordinate - MrWupiazZzLT - 20.07.2014

After
OnPlayerExitVehicle
Put this
Delete3DTextLabel(Your Text Here);


Re: Get Journey Door Coordinate - StreetGT - 21.07.2014

find offset of the door, then create a label...


Re: Get Journey Door Coordinate - d3ll - 21.07.2014

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.