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



Plese help AttachObjectToVehicle - R1cardas7 - 05.07.2012

Hello guys, please help with "AttachObjctToVehicle", I have object coordinates on the car, but I don't know, how to make object on the car.

I want to do:



Light coordinates is: "AttachObjectToVehicle(objectid, vehicleid, 0.000000, 0.199999, 1.099999, 0.000000, 0.000000, 0.000000);"

Vehicle ID is: 490

Object ID is: 19420


Please help me do it.


Sorry for spelling


Re: Plese help AttachObjectToVehicle - TheLazySloth - 05.07.2012

Go to your script, see where the vehicle is spawned, and put that code under it.


Re: Plese help AttachObjectToVehicle - R1cardas7 - 05.07.2012

How write? You can write this script? Please.


Re: Plese help AttachObjectToVehicle - kaloqn54 - 05.07.2012

look here HERE


Re: Plese help AttachObjectToVehicle - R1cardas7 - 05.07.2012

How make it no command?


Re: Plese help AttachObjectToVehicle - kaloqn54 - 05.07.2012

i think go to your fs or gamemode script and go to OnPlayerEnterVehicle and edit only the object or make it command but i fell slipy so i can't do it right now to make it for the police vehicles or other


Re: Plese help AttachObjectToVehicle - kaloqn54 - 05.07.2012

if you want to make it a command make it for a rcon or head admin


Re: Plese help AttachObjectToVehicle - R1cardas7 - 05.07.2012

Can you write full script code? And I add this script to "OnGameModeInit" callback.


Re: Plese help AttachObjectToVehicle - kaloqn54 - 05.07.2012

tell me what is the id of the car you want to have sirens


Re: Plese help AttachObjectToVehicle - R1cardas7 - 05.07.2012

Vehicle ID is: 490