CLEO Help Enter Car ID

CLEO related
Status
Not open for further replies.

haZh

Member
Joined
Apr 19, 2018
Messages
11
Reaction score
1
Is there a way in CLEO to get the address/ID of the car that the player is going to enter when you normally press the [F] key?

I mean there should be something about that car getting stored in the memory right? Like it's all got processed within the game and finally direct the player towards it. That's the direction the player runs to get in the vehicle, and finally giving up on that car ID if it's going too far away.

Just asking this in basic as the way I understand it.
 

_=Gigant=_

Well-known member
Joined
Mar 21, 2017
Messages
353
Reaction score
16
haZh said:
Is there a way in CLEO to get the address/ID of the car that the player is going to enter when you normally press the [F] key?

31@ = Actor.CurrentCar($PLAYER_ACTOR)
0B2C: samp 30@ = get_vehicle_id_by_car_handle 31@   

printf "Current Car ID %d" 2000 30@

or 

for 31@ = 0 to 2000 /// samp max vehicles 
if 0AFF: samp 30@ = car_handle_by_samp_vehicle_id 31@
then  
if and
056E:   car 30@ defined
02CA:   car 30@ bounding_sphere_visible
then
if
0137:   car 30@ model == 411 // if car model is infernus (defined by id)
then 
// do stuff for that car



http://wiki.sa-mp.com/wiki/Vehicle_Model_ID_List
 
Status
Not open for further replies.
Top