!
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
Page 1 of 1
Getting inside any car or bike as passenger!
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.
Please Help
Thank You..!!!!
- 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- Moderators
- Posts : 649
Join date : 2012-12-03
Age : 30
Location : Somewhere on Earth
Re: Getting inside any car or bike as passenger!
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..
mod for Vice city as GTA SA & VC are similar in coding..
ayushman- Modders
- Posts : 373
Join date : 2012-11-22
Age : 26
Re: Getting inside any car or bike as passenger!
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- Moderators
- Posts : 649
Join date : 2012-12-03
Age : 30
Location : Somewhere on Earth
Re: Getting inside any car or bike as passenger!
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.
Re: Getting inside any car or bike as passenger!
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
ZAZ- Modders
- Posts : 2
Join date : 2013-01-10
Location : Germany
Re: Getting inside any car or bike as passenger!
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.
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.
Ashwin- Modders
- Posts : 30
Join date : 2012-12-03
Re: Getting inside any car or bike as passenger!
@ ZAZ and @ Ashwin Thaks to you both..
TheSpookyMan- Moderators
- Posts : 649
Join date : 2012-12-03
Age : 30
Location : Somewhere on Earth
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Tue Nov 04, 2014 12:37 am by Mora Hannover
» Goodbye guys
Sun Jun 15, 2014 3:45 pm by Inspiron
» REQUEST MOD THREAD
Wed Jan 29, 2014 12:16 pm by TheSpookyMan
» Grand Theft Auto V 1.09 Patch Notes
Sat Jan 18, 2014 9:49 pm by TheGodfather
» MODDING GARAGE
Tue Jan 14, 2014 2:08 pm by TheGodfather