Attach Object
#4

Quote:
Originally Posted by DonBonanno
Посмотреть сообщение
So,i put this code on that script ?

AttachObjectToVehicle(objectid, vehicleid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:RotZ);


??
Only ?
correct.

you'll have to fill in all the params like coordinates first ofc.

here's an example of a cop siren on a sultan:
PHP код:
YCMD:attach(playeridparams[], help)
{
    if(
GetVehicleModel(GetPlayerVehicleID(playerid)) != 560) return SendClientMessage(playerid,-1,"That's not a Sultan.");
    new 
Float:p[3];
    
GetPlayerPos(playerid,p[0],p[1],p[2]);
    new 
object CreateObject(19419,p[0],p[1]-0.25,p[2]+0.82999,0,0,0);
    
AttachObjectToVehicle(object,GetPlayerVehicleID(playerid),0,-0.25,0.82999,0,0,0);
    return 
1;

Reply


Messages In This Thread
Attach Object - by DonBonanno - 20.01.2014, 22:27
Re: Attach Object - by minijackc - 20.01.2014, 22:37
Re: Attach Object - by DonBonanno - 21.01.2014, 19:16
Re: Attach Object - by CutX - 21.01.2014, 19:29
Re: Attach Object - by DonBonanno - 21.01.2014, 19:50
Re: Attach Object - by CutX - 21.01.2014, 19:52

Forum Jump:


Users browsing this thread: 1 Guest(s)