Transporting Vehicle and its trailer to an Interior and keeping it attached
#1

I would like to know how to do the above title.

This is what i have so far:

Code:
if(pickupid == stadium) {
    if(IsPlayerInAnyVehicle(playerid)){
      new currentveh = GetPlayerVehicleID(playerid);
      new trailercheck = GetVehicleTrailer(currentveh);
      SetPlayerInterior(playerid, 7);
      LinkVehicleToInterior(currentveh, 7);
      LinkVehicleToInterior(trailercheck, 7);
      SetVehiclePos(currentveh, -1405.1145,-258.0632,1044.6563);
      SetVehiclePos(trailercheck, -1399.1112,-239.9723,1044.6563);
      SetVehicleZAngle(currentveh, 341.5829);
      SetVehicleZAngle(trailercheck, 341.5829);
      AttachTrailerToVehicle(trailercheck, currentveh);
    }
}
this is under OnPlayerPickupPickup

It works for vehicles and it even sets the trailers interior but it does not move it.

do i need to place things in a different order?
Reply
#2

bump
Reply
#3

bump (note the times so don't moan about the bumps)

I have now tried Setting the Trailers Position first and still no luck
Reply
#4

bump again
Reply
#5

im 17 minutes short of 12 hours but its better than just 17 minutes

bump
Reply
#6

i cant believe no one has a comment

bump again

i really want to get this sorted.
Reply
#7

Lemme reply:
AttachTrailerToVehicle(trailerid, vehicleid);
Reply
#8

Quote:
Originally Posted by mick88
Lemme reply:
AttachTrailerToVehicle(trailerid, vehicleid);
please re read the first post
Reply
#9

This have to work... What is the problem?
Reply
#10

What do you mean by "it doesn't move it"?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)