SA-MP Forums Archive
AttachObjectToVehicle - 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: AttachObjectToVehicle (/showthread.php?tid=565964)



AttachObjectToVehicle - k2rl - 02.03.2015

Can someone teach me to Attach a text object to a vehicle. or is there a FS for it
(the text has to stay)

Or show me on this
PHP код:
    TruckerVehicles[1] = AddStaticVehicleEx(456,1787.0366,-2025.9011,13.6588,0.00000000,-1,-1,300); // 
And how do i get the positions?
ex
PHP код:
    AttachObjectToVehicle(theobjectbullet1.153, -1.20.460.00.00.0); 



Re: AttachObjectToVehicle - CalvinC - 02.03.2015

AttachObjectToVehicle and SetObjectMaterialText.
When i get the offset coordinates for attaching objects to vehicles, i usually go in the map editor, create a vehicle at coordinates 0, 0, 0, and then place the object where i want it on the vehicle, thereby you'll get the correct offsets.