SA-MP Forums Archive
AttachObjectToVehicle [REP ++] - 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 [REP ++] (/showthread.php?tid=395475)



AttachObjectToVehicle [REP ++] - teomakedonija - 26.11.2012

how to determine the position coordinates to put the truck named DFT-30 his prikolka.Ve please help me.I want to put command to put trees out there please help give REP + +


Re: AttachObjectToVehicle [REP ++] - teomakedonija - 26.11.2012

BUMP !


Re: AttachObjectToVehicle [REP ++] - XtremeR - 26.11.2012

Use this editor to get XYZ as quick as possible!
https://sampforum.blast.hk/showthread.php?tid=282883


Re: AttachObjectToVehicle [REP ++] - teomakedonija - 28.11.2012

I dont know how to use this script


Re: AttachObjectToVehicle [REP ++] - Glad2BeHere - 28.11.2012

here is another tip keep attaching it every second okay, first u scripted it in see where the tree is and determine if u want to move it up down left or right on the attach

u will need stuff like
pawn Код:
new Float:x, Float:y, Float:z;
new v = GetPlayerVehicleID(playerid)
new tree;
tree = createobject(info);
GetVehiclePos(v,x,y,z);
AttachObjectToVehicle(tree,v,x,y,z,0,0,0);
/*
eg of how u would use it
*/