25.09.2015, 19:26
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
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 !
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);
I don't really understand how I can have the ID of the trailer I've just created :/ do someone know ?
Thanks !