10.01.2013, 22:50
Hello I want to attach object to vehicle on gamemode init, but not all vehicles only taxis help me thx.
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;
}