CLEO Help Car Enter

CLEO related
Status
Not open for further replies.

haZh

Member
Joined
Apr 19, 2018
Messages
11
Reaction score
1
Is there a way I can call the same command as pressing the [F] key to enter a vehicle using CLEO? Like I want to do the same thing as pressing [F] key on SAMP using another key like [J], so the player will go to the vehicle, open door and get in the driver seat with the animations, same as the normal game.

In short, what I'm looking for is to call that same in-game function that [F] key does with [J] key.

I'm not looking for something that instantly puts the player in the driving seat because I already found this and it's working;
072A: put_actor $PLAYER_ACTOR into_car $CAR driverseat
 

Ezel

Active member
Joined
Dec 6, 2017
Messages
134
Reaction score
18
Location
Syria
http://ugbase.eu/Thread-SNIPPET-Send-KeyPress

or just use

0C72: set_virtual_key 0@ down true
 

haZh

Member
Joined
Apr 19, 2018
Messages
11
Reaction score
1
Alrighty. Will try this.

EDIT: It's working. Thanks!

Code:
0C72: set_virtual_key 70 down true
wait 10
0C72: set_virtual_key 70 down false
 
Status
Not open for further replies.
Top