AttachObjectToVehicle
#1

Hello I want to attach object to vehicle on gamemode init, but not all vehicles only taxis help me thx.
Reply
#2

pawn Код:
public OnGameModeInit()
{
    //after you have loaded your cars...
    for(new v = 0; v < MAX_VEHICLES; v++)
    {
        if(GetVehicleModel(v) == 420 || GetVehicleModel(v) == 438)
        {
            AttachObjectToVehicle(objectid, v, offX, offY, offZ, rotX, rotY, rotZ);
        }
    }
    return 1;
}
replace the AttachObjectToVehicle parameters.

Good luck!
Reply
#3

Thank you very much
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)