PDA

View Full Version : Getting Trailer model id when attached to truck


Tom1412
04/05/2012, 12:12 PM
how do i get the trailer model id, when im in the truck it is attacked to?

and i have looked round and tryed a bit but i get errors.

Jonny5
04/05/2012, 12:13 PM
easy

new vtrailer = GetVehicleModel(GetVehicleTrailer(GetPlayerVehicle ID(playerid)))


http://wiki.sa-mp.com/wiki/GetVehicleTrailer



EDIT:
sorry i forgot to get the model the code is been fixed.

Tom1412
06/05/2012, 03:58 PM
thanx mate works good for what i need it for