Teleport with trailer?
#1

Is it possible to make Truck teleport with trailer?
Reply
#2

I think that no, cause trailer is like "another car", has ID.
Reply
#3

Aww.
Reply
#4

Did u try to AttachTrailer after teleporting? Dont remember function name. U can also try to teleport trailer by the same coords and attach it. Should work
Reply
#5

Use function GetVehicleTrailer...
Reply
#6

I made this:
pawn Код:
if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
{
    if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
    {
        new Trailer = GetVehicleTrailer(GetPlayerVehicleID(playerid));
        SetVehiclePos(GetPlayerVehicleID(playerid), X, Y, Z);
        AttachTrailerToVehicle(Trailer, GetPlayerVehicleID(playerid));
    }
}
But haven't tested it yet. what do you think, will this work?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)