AttachObjectToVehicle Not Work?.
#1

I Use command /xyzz to create vehicle.
and AttachObjectToVehicle not work?.


I use the command /xyz , then attachobject it work?



PHP код:
CMD:xyzz(playerid,params[])
{
    
CreateVehicle(4111869.9429, -1760.531313.243170.7358119, -1); //Infernus
    
new OBJ[1];
    new 
vehicleid GetPlayerVehicleID(playerid);
    if(
GetVehicleModel(vehicleid) == 411)
    {
        
OBJ[0] = CreateObject(12711519.2829, -1704.879013.49260.00000.00000.0000); //gunbox
        
AddVehicleComponent(vehicleid1010);
        
AddVehicleComponent(vehicleid1074);
        
AddVehicleComponent(vehicleid1087);
        
AttachObjectToVehicle(OBJ[0], vehicleid, -0.0099, -1.89090.52700.60000.00002.7000);
    }
    return 
1;

PHP код:
CMD:xyz(playerid,params[])
{
    for(new 
GetVehiclePoolSize(); 0i--)
    {
        
SetVehicleToRespawn(i);
    }
    return 
1;

. Sorry my bad english .
. Please help for me
Reply


Messages In This Thread
AttachObjectToVehicle Not Work?. - by quochuy - 05.08.2016, 06:16
Re: AttachObjectToVehicle Not Work?. - by AndySedeyn - 05.08.2016, 06:36
Re: AttachObjectToVehicle Not Work?. - by quochuy - 05.08.2016, 08:00
Re: AttachObjectToVehicle Not Work?. - by quochuy - 05.08.2016, 13:34
Re: AttachObjectToVehicle Not Work?. - by quochuy - 05.08.2016, 14:54
Re: AttachObjectToVehicle Not Work?. - by JuzDoiT - 05.08.2016, 16:36
Re: AttachObjectToVehicle Not Work?. - by quochuy - 06.08.2016, 03:48
Re: AttachObjectToVehicle Not Work?. - by Crayder - 06.08.2016, 04:19

Forum Jump:


Users browsing this thread: 2 Guest(s)