Resource icon
CLEO related
Status
Not open for further replies.

blackHat

Expert
Joined
Jul 28, 2013
Messages
930
Reaction score
2
I GOT THIS ERROR Unknown directive Car.Defined($car).
 

xzytro

God
Joined
Apr 1, 2013
Messages
2,294
Reaction score
7
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

:D :D:D O_WHAT_YOU_WANT_WITH_IT
//scripts here
01C3: remove_references_to_car $car
jump @SEARCH_A_CAR_NEARBY
 
Status
Not open for further replies.
Top