Quantcast

Jump to content

» «
Photo

Teleport into nearest Vehicle

3 replies to this topic
AffeMitWaffe
  • AffeMitWaffe

    Player Hater

  • Members
  • Joined: 02 Apr 2012

#1

Posted 06 April 2012 - 11:20 AM

Hi,
I'm looking for an address which teleports me into the nearest car.
I have already found out the vehicle ped what I have to do next?

Please Help

fastman92
  • fastman92

    фастман92 | ف

  • Members
  • Joined: 28 Jul 2009
  • None

#2

Posted 06 April 2012 - 11:27 AM Edited by fastman92, 06 April 2012 - 08:18 PM.

CODE
{$CLEO}
0000: NOP

   while true
   wait 0
   if and
   not Actor.Driving($PLAYER_ACTOR)
   0AB0: key_pressed 48    // press zero
   jf continue
   0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 0@ closest_ped_to 1@
   072A: put_actor $PLAYER_ACTOR into_car 0@ driverseat
   01C3: mark_car_as_no_longer_needed 0@ // Like turning a car into any random car
   01C2: mark_char_as_no_longer_needed 1@ // Like turning an actor into a random pedestrian
   wait 500
   end

AffeMitWaffe
  • AffeMitWaffe

    Player Hater

  • Members
  • Joined: 02 Apr 2012

#3

Posted 06 April 2012 - 08:00 PM

is this cleo?
I don't have any experience in that..
whats the address to this function?

fastman92
  • fastman92

    фастман92 | ف

  • Members
  • Joined: 28 Jul 2009
  • None

#4

Posted 06 April 2012 - 08:19 PM

What address? It's CLEO script with opcodes. Remember it's not C++.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users