AttachTrailerToVehicle - how to ?
#1

Hi !
I'm creating a new filterscript and I need to use the "AttachTrailerToVehicle" after the player get inside a car

So there is my code

Код:
	        new Float:x, Float:y, Float:z; GetPlayerPos(playerid,x,y,z);
		newTrailer[playerid] = CreateVehicle(611,x+4,y,z+1,270.0,-1,-1,15);
		new trailerid = GetPlayerVehicleID(newTrailer[playerid]);
  		AttachTrailerToVehicle(trailerid, vehicleid);
But it doesn't work

I don't really understand how I can have the ID of the trailer I've just created :/ do someone know ?

Thanks !
Reply


Messages In This Thread
AttachTrailerToVehicle - how to ? - by arretdefil - 25.09.2015, 19:26
Re: AttachTrailerToVehicle - how to ? - by Aly - 25.09.2015, 19:30
Re: AttachTrailerToVehicle - how to ? - by arretdefil - 25.09.2015, 19:39
Re: AttachTrailerToVehicle - how to ? - by Aly - 25.09.2015, 19:46
Re: AttachTrailerToVehicle - how to ? - by arretdefil - 25.09.2015, 19:55
Re: AttachTrailerToVehicle - how to ? - by Aly - 25.09.2015, 20:01
Re: AttachTrailerToVehicle - how to ? - by arretdefil - 25.09.2015, 21:24

Forum Jump:


Users browsing this thread: 2 Guest(s)