SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 04/05/2012, 01:12 PM   #1
Tom1412
Huge Clucker
 
Join Date: Sep 2010
Posts: 423
Reputation: 31
Default Getting Trailer model id when attached to truck

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.
Tom1412 is offline   Reply With Quote
Old 04/05/2012, 01:13 PM   #2
Jonny5
Gangsta
 
Join Date: Mar 2012
Location: Mi, USA
Posts: 933
Reputation: 158
Default Re: Getting Trailer model id when attached to truck

easy
pawn Code:
new vtrailer = GetVehicleModel(GetVehicleTrailer(GetPlayerVehicleID(playerid)))

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



EDIT:
sorry i forgot to get the model the code is been fixed.
__________________
If your topic says "REP+", I ignore it.
Jonny5 is offline   Reply With Quote
Old 06/05/2012, 04:58 PM   #3
Tom1412
Huge Clucker
 
Join Date: Sep 2010
Posts: 423
Reputation: 31
Default Re: Getting Trailer model id when attached to truck

thanx mate works good for what i need it for
Tom1412 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
If trailer is attached milanosie Scripting Help 3 11/01/2012 04:39 PM
Trailer is not being attached. WooTFTW Help Archive 3 08/08/2011 12:55 PM
Trailer attached to vehicle LegendNissanGTR Help Archive 0 11/12/2010 03:36 PM
Checkpoint When Trailer Is Attached sidhu123 Help Archive 6 31/08/2009 02:10 AM


All times are GMT. The time now is 11:32 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.