01.04.2015, 09:25
AttachObjectToVehicle
?
![Huh?](images/smilies/confused.gif)
![](http://s2.anh.im/2015/04/01/11096640_1570308639913286_1915980184_n9b436.png)
https://sampwiki.blast.hk/wiki/AttachObjectToVehicle
It's a function in which attaches a previous created object to a vehicle. Example: ExampleObject = CreateObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float ![]() AttachObjectToVehicle(ExampleObject, vehicleid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:RotX, Float:RotY, Float:RotZ); |
You can just use the map editor to get the coordinates and model id, place the vehicle at coordinates 0, 0, 0 and then you'll get the correct offsets.
Use pawno to open your script and use AttachObjectToVehicle. Here's a tutorial if needed: https://sampforum.blast.hk/showthread.php?tid=267742 |
If you want to keep it simple use this https://sampforum.blast.hk/showthread.php?tid=282883
|