that line should be put after "if" :arrow: :arrow::arrow:
if
Car.Defined($car)
But before that line, you need to make the cleo search for a car and put $car label on it :arrow: :arrow::arrow:
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to $car closest_ped_to $closestactor
So :arrow: :arrow::arrow:
:SEARCH_A_CAR_NEARBY
wait 0
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to $car closest_ped_to $closestactor
if
Car.Defined($car)
else_jump @SEARCH_A_CAR_NEARBY
jump @FOUND
:FOUND
wait 0
0ACD: show_text_highpriority "~B~FOUND IT!" time 1500
jump @DO_WHAT_YOU_WANT_WITH_IT
O_WHAT_YOU_WANT_WITH_IT
//scripts here
01C3: remove_references_to_car $car
jump @SEARCH_A_CAR_NEARBY