truck to trailer
#1

First let me say im a big 52 yr old noob and not looking to put a big fancy server up,just for a few friends and family
and yes ive read the wiki and ******d ok all im trying to do is attach a trailer to a truck, and from what i understand this should work ,however i cant seem to get it to..it compiled with 2 warnings (loose indentions) which i fixed ..can someone tell a old Noob what the heck the problem is..i found this on pastebin looks like what i want..
thanks in advance
Reply
#2

Use Pastebin or the [ pawn ] tag, please.
Not using them messes up the indentation, which makes the code unreadable.
Reply
#3

You are using vehicle MODEL ids, instead of the ingame ids. You have to get the normal id of the players vehicle (GetPlayerVehicleID only), then create the trailer somewhere (CreateVehicle returns the id of the newly created vehicle) and then attach these both ids.
Reply
#4

Quote:
Originally Posted by Mauzen
View Post
You are using vehicle MODEL ids, instead of the ingame ids. You have to get the normal id of the players vehicle (GetPlayerVehicleID only), then create the trailer somewhere (CreateVehicle returns the id of the newly created vehicle) and then attach these both ids.
Thank you ..that seems to work
but the trailer disappears after about 5 min I changed the respawn in the CreateVehicle time to -1 and it still disappeared..like i said im as green as a gourd
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)