24.01.2014, 16:49
This one is tricky. First, you have to fetch all vehicles which are close to player. Looping through all vehicles is not a good idea, best if you'd create some sort of areas, or just use the already streamed cars for specific player. Next, you have to determine the car door position - I'd suggest using this https://sampforum.blast.hk/showthread.php?tid=164251 . Check the distance between each door you want, and voila.