Drive-by question
#1

Hey guys,

So I have this question. I've seen on some servers that players were able to use a command to get back in the car after pressing H to get out the window with a gun to shoot.

I was just wondering , what functions might one use to make such a command ?


Thanks in advance.
Reply
#2

http://pastebin.com/CYZBk7k4
Reply
#3

So basically I have to set an animation onto the player to make him go back inside the car ?
Reply
#4

You can just clear the animations (ClearAnimations) and then put the player back in the vehicle (PutPlayerInVehicle) + Get the old seat so he wont get into an invalid seat (GetPlayerVehicleSeat).
Reply
#5

Hmm, would that look natural IG ? Or would it look like the player got teleported in the car and he will be standing instead of sitting ? I'm just asking , I'll give it a go anyway , Thank you.
Reply
#6

As long as you cleared the animations, it will look totally smooth.
Reply
#7

Alright! Thank you. Rep+ both of you .

Have a nice day.
Reply
#8

This is included in fixes.inc btw.
Reply
#9

The newest version of the server package has this include ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)