Posts: 285
Threads: 154
Joined: Mar 2016
Reputation:
0
Hi,
It's possible to check when player press G sit so vehicle as passenger and run away?
Posts: 285
Threads: 154
Joined: Mar 2016
Reputation:
0
Yes i know how to check but i want to know if he press g and he run not enter to vehicle
Posts: 1,547
Threads: 122
Joined: Jun 2014
Reputation:
0
I dont get it, how the fuck can someone run away if he's sitting as passenger?
Posts: 349
Threads: 38
Joined: Jul 2015
Reputation:
0
He probably wants to detect if a player presses G to get inside a vehicle while still on foot (from what I could notice :P).
This kind of thing applies for anti passenger seat abuse system. What are you making btw?
Posts: 928
Threads: 13
Joined: Feb 2016
Reputation:
0
Do you mean you want to detect if the player using car door bug abuse?
Posts: 285
Threads: 154
Joined: Mar 2016
Reputation:
0
Like OnPlayerEnterVehicle calls when you attempt sit to vehicle but not fulled sit, but it's not mean you go and sit to vehicle you can run or press enter just cancel, i think settimer and check is in vehicle after certain time but maybe there is somethink better
Posts: 2,203
Threads: 154
Joined: Oct 2009
Reputation:
0
Just use OnPlayerEnterVehicle, set timer of about 2-3 seconds and check if player state is passenger/driver. And play with timing a little bit.