SA-MP Forums Archive
Attach dynamic object or player object to vehicle - 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: Attach dynamic object or player object to vehicle (/showthread.php?tid=657904)



Attach dynamic object or player object to vehicle - Seifspeed - 17.08.2018

Is there a way I can attach a dynamic object or a player object to a vehicle?
Thanks in advance!


Re: Attach dynamic object or player object to vehicle - NaS - 17.08.2018

AttachDynamicObjectToVehicle and AttachPlayerObjectToVehicle

You need to create an object beforehand (dynamic or player object) and then call one of these functions to attach it.


Re: Attach dynamic object or player object to vehicle - Seifspeed - 17.08.2018

Quote:
Originally Posted by NaS
Посмотреть сообщение
AttachDynamicObjectToVehicle and AttachPlayerObjectToVehicle

You need to create an object beforehand (dynamic or player object) and then call one of these functions to attach it.
Thank you! I didn't know about the existance of AttachDynamicObjectToVehicle I couldn't find it on ******. +Rep

Update: It seems I have given too much rep in the past 24 hours Hopefully I remember tomorrow.


Re: Attach dynamic object or player object to vehicle - NaS - 17.08.2018

Quote:
Originally Posted by Seifspeed
Посмотреть сообщение
Thank you! I didn't know about the existance of AttachDynamicObjectToVehicle I couldn't find it on ******. +Rep

Update: It seems I have given too much rep in the past 24 hours Hopefully I remember tomorrow.
Next time take a look into a_samp.inc (or the related include, in this case a_objects.inc) and streamer.inc. All the natives are there (use the search in your editor to find what you need).