SA-MP Forums Archive
[!] Adding objects to the server automatic vehicles.. - 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: [!] Adding objects to the server automatic vehicles.. (/showthread.php?tid=601745)



[!] Help AttachObjectToVehicle - ProRakNet - 25.02.2016

I add AttachObjectToVehicle objects for server all infernus(411) vehicles automatic how do i add ?
Please help..


Re: [!] Adding objects to the server automatic vehicles.. - Virtual1ty - 25.02.2016

Either under OnVehicleSpawn() when the vehicles respawn, or instantly under a command or w/e:
PHP код:
// Put your values in place of objid, off_x/y/z, rot_x/y/z
for (new 1MAX_VEHICLESv++)
{
    if (
GetVehicleModel(v) != 411) continue;
    
AttachObjectToVehicle(objidvoff_xoff_yoff_zrot_xrot_yrot_z);




Re: [!] Adding objects to the server automatic vehicles.. - ProRakNet - 25.02.2016

Very thanks man.