Requirements:
SAMPFuncs 3.0 ++
Cleo 4.1, not the newest one, 4.3
UPDATE::
You must use Cleo 4.1 for this.
(Newest version is 4.3)
intocar.cs:
Enter 'KK' as cheat code while near a car
SAMPFuncs 3.0 ++
Cleo 4.1, not the newest one, 4.3
UPDATE::
You must use Cleo 4.1 for this.
(Newest version is 4.3)
intocar.cs:
Enter 'KK' as cheat code while near a car
Code:
{$CLEO}
0662: "re]b0ot_ || ugbase.eu"
// SetPlayerPos
0B2E: 31@ = read_samp_memory offset 0x13FA0 size 2
// RemovePlayerFromVehicle
0B2E: 32@ = read_samp_memory offset 0x12D60 size 2
26@ = -1
27@ = -1
:CHECK
wait 0
if
not Actor.Driving($PLAYER_ACTOR)
jf @CHECK
if
0ADC: test_cheat "KK"
jf @CHECK
jump @OJACK
:OJACK
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 26@ closest_ped_to 1@
if
056E: car 26@ defined
jf @OJACK_FAILED
print "~w~Jacking closest vehicle..." 2000
0B2D: write_samp_memory offset 0x13FA0 value 0xC390 size 2
0B2D: write_samp_memory offset 0x12D60 value 0xC390 size 2
wait 100
0B2C: samp 27@ = get_vehicle_id_by_car_handle 26@
072A: put_actor $PLAYER_ACTOR into_car 26@ driverseat
0B30: samp send_enter_vehicle 27@ as_passenger 0
wait 1337
jump @RESET_SAMP_MEMORY
:OJACK_FAILED
print "~r~There are no cars near you!" 2000
jump @CHECK
:RESET_SAMP_MEMORY
0B2D: write_samp_memory offset 0x13FA0 value 31@ size 2
0B2D: write_samp_memory offset 0x12D60 value 32@ size 2
print "~w~Car jacked!" 1337
jump @CHECK