Posts: 944
Threads: 128
Joined: Sep 2014
Reputation:
0
Hello, I've made a command which lets you break a window of a car, but you can only break the driver's window. Is it possible to check if the player is at the driver's door? I need that because it doesn't look too good if you are behind a car, then you do /breakwindow and it breaks the driver's window while you are not even near the driver's door. I've ******d and found that GetVehicleModelInfo function, but I've got no clue what to do with that. Anyways would that be possible to do?
Posts: 599
Threads: 48
Joined: May 2016
Posts: 944
Threads: 128
Joined: Sep 2014
Reputation:
0
OK, but if I'd use GetVehicleModelInfo and get the position of the front seat, what would I need to do so I could use IsPlayerInRangeOfPoint with it? Like get the coordinates of the vehicle's front seat seat in the world. You got the idea, like you could set player's position to the coordinates and all that stuff.
Posts: 570
Threads: 55
Joined: Oct 2016
Posts: 944
Threads: 128
Joined: Sep 2014
Reputation:
0
Try what? It's getting the position of the model's front seat, not the vehicle's.