How to detect the nearest car around and get in
This is part of my code Unable to detect surrounding cars and unable to board Then it will game crash
This is SAMP
Code:
:CT
Actor.PutAt($PLAYER_ACTOR, 1@, 2@, 3@)
0860: link_actor $PLAYER_ACTOR to_interior 0
wait 500
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 5@ closest_ped_to 7@
056E: car 5@ defined
wait 200
036A: put_actor $PLAYER_ACTOR in_car 5@
wait 500
0860: link_actor $PLAYER_ACTOR to_interior 0
Car.PutAt($PLAYER_ACTOR, 1967.55 2162.38 10.82)
jump @WaitCD
This is part of my code Unable to detect surrounding cars and unable to board Then it will game crash
This is SAMP