Resource icon

Untagged Release [RELEASE] intocar.cs/jack.cs | Enter any restricted cars that you like!

Status
Not open for further replies.

re]b0ot_

Active member
Joined
Jul 10, 2014
Messages
25
Reaction score
0
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
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
 

Attachments

  • jack.cs
    18.5 KB · Views: 1,569

systendata

Active member
Joined
Dec 22, 2013
Messages
73
Reaction score
0
So if there is a hydra that is administrator only (checks for player level I think) I'll be able to enter it and drive it?
 

Simon98

Well-known member
Joined
Feb 18, 2014
Messages
287
Reaction score
0
I already released a cleo which do the same thing weeks ago it's Called "Master Car"  :me_gusta:
 

re]b0ot_

Active member
Joined
Jul 10, 2014
Messages
25
Reaction score
0
Spoodermen link said:
I already released a cleo which do the same thing weeks ago it's Called "Master Car"  :me_gusta:
Yours doesn't teleport player into locked cars, where you can't even press 'F' or 'Enter' to enter them.
 

re]b0ot_

Active member
Joined
Jul 10, 2014
Messages
25
Reaction score
0
Chances are the vars are conflicting with other scripts. Try this one:

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
 

Attachments

  • jack.cs
    18.5 KB · Views: 198

re]b0ot_

Active member
Joined
Jul 10, 2014
Messages
25
Reaction score
0
What CLEO version do you have?
Mine is 4.1 (latest is 4.3)

What SAMPFuncs version do you have?
Mine is 3.2

I don't really know what can cause it.
 

Xer

Well-known member
Joined
May 11, 2013
Messages
256
Reaction score
0
just use Master Car from Simon,

challenge solved  :fuck_yea:
 

DzkAy

Well-known member
Joined
Feb 20, 2014
Messages
472
Reaction score
1
b0ot_ link=topic=8658.msg50383#msg50383 date=1406471521]
What CLEO version do you have?
Mine is 4.1 (latest is 4.3)

What SAMPFuncs version do you have?
Mine is 3.2

I don't really know what can cause it.

Code:
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 26@ closest_ped_to 1@
When there's no one (or car) around you , if u use this u'll definitely gonna crash . THIS Causes.
 

re]b0ot_

Active member
Joined
Jul 10, 2014
Messages
25
Reaction score
0
D.Kay link said:
[quote author=re]b0ot_ link=topic=8658.msg50383#msg50383 date=1406471521]
What CLEO version do you have?
Mine is 4.1 (latest is 4.3)

What SAMPFuncs version do you have?
Mine is 3.2

I don't really know what can cause it.

Code:
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 26@ closest_ped_to 1@
When there's no one (or car) around you , if u use this u'll definitely gonna crash . THIS Causes.
[/quote]

Tested on localhost, no players, no cars.
Pressing 'KK' results 'There are no vehicles near you'!

When there is a car close enough, it teleports me in.

Look at above post, you must have CLEO 4.1
 

Marcus

Active member
Joined
May 13, 2014
Messages
57
Reaction score
0
have one problem, when get in faction cars on RP severs, its auto disconect ( not crash, just dis out) :yesyes:
 

ClausBear

Expert
Joined
Aug 19, 2013
Messages
647
Reaction score
0
BarCode link said:
Can you use this to enter lcoked cars on RP servers?

depends

you cannot steal a industrial lock on roleplay servers with this mod and by that i mean when you click F you get the lock animation and sound. But if theres a car with eletrical lock you can enter it and drive it around using this method.
 

xxx47

Active member
Joined
Mar 9, 2014
Messages
73
Reaction score
0
ClausBear link said:
depends

you cannot steal a industrial lock on roleplay servers with this mod and by that i mean when you click F you get the lock animation and sound. But if theres a car with eletrical lock you can enter it and drive it around using this method.

I don't know, but.. I think that on rp server detects when some player is or not owner of the vehicle, so if you are not.. you can't use it.
 
Status
Not open for further replies.
Top