GTA Mods Mania
Welcome to https://gtamodsmania.forumotion.com
To get the most benefits of the forums .Please register otherwise you
won't be able to view some important boards & topics.
We are sure you will enjoy after joining the site.


Join the forum, it's quick and easy

GTA Mods Mania
Welcome to https://gtamodsmania.forumotion.com
To get the most benefits of the forums .Please register otherwise you
won't be able to view some important boards & topics.
We are sure you will enjoy after joining the site.
GTA Mods Mania
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Affiliates
pic

pic

pic

!
Welcome to GTA Mods Mania Join us now to access all of our features. Once you join us, you can make any topic to talk in this forum, give the reputation of a fellow member, design your profile, and much more. If you already have an account, Login here. If don't create one, here.

Getting inside any car or bike as passenger!

5 posters

Go down

Getting inside any car or bike as passenger! Empty Getting inside any car or bike as passenger!

Post by TheSpookyMan Mon Feb 04, 2013 2:44 pm

This is for GTA VICE CITY. I am trying to create a Mod by which the player would be able to enter any random car as passenger..or i should say entering in any cruising car as passenger... But something is wrong in my script and i can't just figure it out myself Please help me build my mod. Here goes my Script.
Code:

{$CLEO}
//---------------MAIN----------------

0000:

:PASS
wait 0 ms
if
80E0:  not player $PLAYER_CHAR driving
jf @PASS_1
jump @PASS

:PASS_1
if
05F0: 4@ = random_vehicle_near_point 0.0 0.0 0.0 in_radius 5000.0 find_next 0 pass_wrecked 1 //IF and SET
jf @PASS_6

:PASS_2
if
85F0: 4@ = not random_vehicle_near_point 0.0 0.0 0.0 in_radius 5000.0 find_next 1 pass_wrecked 1 //IF and SET
jf @PASS_3

:PASS_3
if or
0137:  car 4@ id == #SANCHEZ
0137:  car 4@ id == #GREENWOO
0137:  car 4@ id == #VIRGO
0137:  car 4@ id == #PCJ600
0137:  car 4@ id == #FREEWAY
0137:  car 4@ id == #VOODOO
0137:  car 4@ id == #CUBAN
jf @PASS_2
0186: 5@ = create_marker_above_car 4@

:PASS_4
wait 0 ms
if and
01FC:  player $PLAYER_CHAR near_car 4@ radius 5.0 5.0 0
80E0:  not player $PLAYER_CHAR driving
05EE:  key_pressed 77 //VK_...
jf @PASS_4
01D4: actor $PLAYER_ACTOR go_to_car 4@ and_enter_it_as_a_passenger

:PASS_5
wait 0 ms
if and
0442:  player $PLAYER_CHAR in_car 4@
00E1:  key_pressed 0 15
jf @PASS_5
03E2: actor $PLAYER_ACTOR exit_car
01C3: remove_references_to_car 4@ // Like turning a car into any random car

:PASS_6
jump @PASS_1

Please Help
Thank You..!!!!
TheSpookyMan
TheSpookyMan
Moderators
 Moderators

Posts : 649
Join date : 2012-12-03
Age : 30
Location : Somewhere on Earth

Back to top Go down

Getting inside any car or bike as passenger! Empty Re: Getting inside any car or bike as passenger!

Post by ayushman Mon Feb 04, 2013 4:14 pm

Well you might download [You must be registered and logged in to see this link.] & use it as a reference for making your
mod for Vice city as GTA SA & VC are similar in coding..

ayushman
ayushman
Modders
Modders

Posts : 373
Join date : 2012-11-22
Age : 26

Back to top Go down

Getting inside any car or bike as passenger! Empty Re: Getting inside any car or bike as passenger!

Post by TheSpookyMan Tue Feb 05, 2013 3:22 pm

This will help but...!!!! Sa opcodes are not similar for vice city. GTA VC and SA Opcodes have different numbers which perform a similar action.!!! _^^
TheSpookyMan
TheSpookyMan
Moderators
 Moderators

Posts : 649
Join date : 2012-12-03
Age : 30
Location : Somewhere on Earth

Back to top Go down

Getting inside any car or bike as passenger! Empty Re: Getting inside any car or bike as passenger!

Post by MohitRobinson Wed Feb 20, 2013 6:45 pm

Cell Tennyson wrote:This will help but...!!!! Sa opcodes are not similar for vice city. GTA VC and SA Opcodes have different numbers which perform a similar action.!!! _^^

Still you can get a good idea out of it. I dont know much about vc so i cant help u enough. Sorry.

_^^
MohitRobinson
MohitRobinson
Modders
Modders

Posts : 128
Join date : 2013-02-18
Age : 27
Location : India

http://mohitrobinson.blogspot.com

Back to top Go down

Getting inside any car or bike as passenger! Empty Re: Getting inside any car or bike as passenger!

Post by ZAZ Thu Feb 21, 2013 3:13 am

try this:
Code:
{$CLEO}
thread 'PASS'
wait 1000

:PASS_1
wait 0
if
0256:  player $PLAYER_CHAR defined
jf @PASS_1
if
80E0:  not player $PLAYER_CHAR driving
jf @PASS_1
04C4: create_coordinate 11@ 12@ 13@ from_actor $PLAYER_ACTOR offset 0.0  0.0  0.0
if
05F0: 4@ = random_vehicle_near_point 11@ 12@ 13@ in_radius 10.0 find_next 0 pass_wrecked 1 //IF and SET
jf @PASS_1
if or
0137:  car 4@ id == #SANCHEZ
0137:  car 4@ id == #GREENWOO
0137:  car 4@ id == #VIRGO
0137:  car 4@ id == #PCJ600
0137:  car 4@ id == #FREEWAY
0137:  car 4@ id == #VOODOO
0137:  car 4@ id == #CUBAN
jf @PASS_13
0186: 5@ = create_marker_above_car 4@

:PASS_4
wait 0 ms
if
0256:  player $PLAYER_CHAR defined
jf @PASS_9
if and
8119:  not car 4@ wrecked
01FC:  player $PLAYER_CHAR near_car 4@ radius 50.0 50.0 0
jf @PASS_9
if and
01FC:  player $PLAYER_CHAR near_car 4@ radius 5.0 5.0 0
80E0:  not player $PLAYER_CHAR driving
05EE:  key_pressed 77 //VK_...press  m key
jf @PASS_4
01D4: actor $PLAYER_ACTOR go_to_car 4@ and_enter_it_as_a_passenger


:PASS_5
wait 0 ms
if
0256:  player $PLAYER_CHAR defined
jf @PASS_9
if and
8119:  not car 4@ wrecked
01FC:  player $PLAYER_CHAR near_car 4@ radius 50.0 50.0 0
jf @PASS_9
if
0442:  player $PLAYER_CHAR in_car 4@
jf @PASS_5
if or
0137:  car 4@ id == #GREENWOO
0137:  car 4@ id == #VIRGO
0137:  car 4@ id == #VOODOO
0137:  car 4@ id == #CUBAN
jf @PASS_6
00AD: set_car 4@ max_speed_to 50.0
00A8: set_car 4@ to_psycho_driver

:PASS_6
wait 0 ms
if
0256:  player $PLAYER_CHAR defined
jf @PASS_9
if and
8119:  not car 4@ wrecked
0442:  player $PLAYER_CHAR in_car 4@
jf @PASS_9
if
00E1:  key_pressed 0 15
jf @PASS_6
03E2: actor $PLAYER_ACTOR exit_car


:PASS_9
0164: disable_marker 5@

:PASS_13
01C3: remove_references_to_car 4@
wait 1000
jump @PASS_1
bikes must you drive as like you would be the driver
ZAZ
ZAZ
Modders
Modders

Posts : 2
Join date : 2013-01-10
Location : Germany

Back to top Go down

Getting inside any car or bike as passenger! Empty Re: Getting inside any car or bike as passenger!

Post by Ashwin Fri Jun 21, 2013 4:03 pm

I remember that many months ago,
i wa trying to a "Ask for Lift" mod for Vc,
my progress was,
press key,
the car of ped will stop,(if it is having a free seat)
our. Player get inside of it as passenger,
i also managed to set the driver stay there,
But there was nothing i could do to make that car
drive again by ped as it was before.
avatar
Ashwin
Modders
Modders

Posts : 30
Join date : 2012-12-03

Back to top Go down

Getting inside any car or bike as passenger! Empty Re: Getting inside any car or bike as passenger!

Post by TheSpookyMan Wed Jul 10, 2013 1:39 pm

@ ZAZ and @ Ashwin Thaks to you both.. Getting inside any car or bike as passenger! 522858411
TheSpookyMan
TheSpookyMan
Moderators
 Moderators

Posts : 649
Join date : 2012-12-03
Age : 30
Location : Somewhere on Earth

Back to top Go down

Getting inside any car or bike as passenger! Empty Re: Getting inside any car or bike as passenger!

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum