GaryRoachSanderson Posted July 19, 2008 Share Posted July 19, 2008 I have created a script here where when "0" is pressed when the player is driving a bravura, model 3136 will be added to the vehicle. I tested it in-game and it crashed the game when i pressed "0". Anybody knows why? I have the script below: p.s. some facts - i replaced bravura with a car that has changable bodykits in transfender so that cant be the problem. - i defined 3136 in a new ide file. // This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007{$VERSION 3.1.0027}{$CLEO .cs}//-------------MAIN---------------// variables [email protected] is the players vehicle , [email protected] is the bodykit.0000: NOP :KIT_001wait 0if Player.Defined($PLAYER_CHAR)else_jump @KIT_001if Player.Controllable($PLAYER_CHAR)else_jump @KIT_001 if Actor.Driving($PLAYER_ACTOR)else_jump @KIT_001if and Actor.DrivingVehicleType($PLAYER_ACTOR, #BRAVURA)0AB0: key_pressed 48else_jump @KIT_00103C0: [email protected] = actor $PLAYER_ACTOR carjump @KIT_002:[email protected] = 3136jump @KIT_003:KIT_00306E9: load_car_component [email protected] @KIT_004:KIT_004wait 0 if 06EA: car_component [email protected] availableelse_jump @KIT_00406E7: [email protected] = add_car_component [email protected] to_car [email protected] 5006EB: release_car_component [email protected] Link to comment Share on other sites More sharing options...
james227uk Posted July 19, 2008 Share Posted July 19, 2008 (edited) I have created a script here where when "0" is pressed when the player is driving a bravura, model 3136 will be added to the vehicle. I tested it in-game and it crashed the game when i pressed "0". Anybody knows why? I have the script below: p.s. some facts - i replaced bravura with a car that has changable bodykits in transfender so that cant be the problem. - i defined 3136 in a new ide file. // This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007{$VERSION 3.1.0027}{$CLEO .cs}//-------------MAIN---------------// variables [email protected] is the players vehicle , [email protected] is the bodykit.0000: NOP :KIT_001wait 0if Player.Defined($PLAYER_CHAR)else_jump @KIT_001if Player.Controllable($PLAYER_CHAR)else_jump @KIT_001 if Actor.Driving($PLAYER_ACTOR)else_jump @KIT_001if and Actor.DrivingVehicleType($PLAYER_ACTOR, #BRAVURA)0AB0: key_pressed 48else_jump @KIT_00103C0: [email protected] = actor $PLAYER_ACTOR carjump @KIT_002:[email protected] = 3136jump @KIT_003:KIT_00306E9: load_car_component [email protected] @KIT_004:KIT_004wait 0 if 06EA: car_component [email protected] availableelse_jump @KIT_00406E7: [email protected] = add_car_component [email protected] to_car [email protected] 5006EB: release_car_component [email protected] Just try loading the component directly. {$VERSION 3.1.0027}{$CLEO .cs}//-------------MAIN---------------// variables [email protected] is the players vehicle , [email protected] is the bodykit.0000: NOP :KIT_001wait 0if and Player.Defined($PLAYER_CHAR) Player.Controllable($PLAYER_CHAR) Actor.DrivingVehicleType($PLAYER_ACTOR, #BRAVURA)jf @KIT_001if00E1: player 0 pressed_key 48jf @KIT_00103C0: [email protected] = actor $PLAYER_ACTOR car06E9: load_car_component 3136:KIT_004wait 0 if 06EA: car_component 3136 availablejf @KIT_00406E7: [email protected] = add_car_component 3136 to_car [email protected]: release_car_component 3136jump @KIT_001 Edited July 19, 2008 by james227uk Link to comment Share on other sites More sharing options...
2pacproducer2 Posted July 19, 2008 Share Posted July 19, 2008 I dont know whats wrong with your script , but where did u get those nice pictures in your signature ? And jamesuk how can I make something like those like in your and his signaature ? Link to comment Share on other sites More sharing options...
james227uk Posted July 19, 2008 Share Posted July 19, 2008 I dont know whats wrong with your script , but where did u get those nice pictures in your signature ? And jamesuk how can I make something like those like in your and his signaature ? [img= Put the IMG url here] Link to comment Share on other sites More sharing options...
Doomed_Space_Marine Posted July 19, 2008 Share Posted July 19, 2008 Maybe that's because car component is released? Doesn't it have to be loaded all the time when it's being used? Link to comment Share on other sites More sharing options...
2pacproducer2 Posted July 19, 2008 Share Posted July 19, 2008 I dont know whats wrong with your script , but where did u get those nice pictures in your signature ? And jamesuk how can I make something like those like in your and his signaature ? [img= Put the IMG url here] But where to get those pictures urls ? Link to comment Share on other sites More sharing options...
james227uk Posted July 19, 2008 Share Posted July 19, 2008 I dont know whats wrong with your script , but where did u get those nice pictures in your signature ? And jamesuk how can I make something like those like in your and his signaature ? [img= Put the IMG url here] But where to get those pictures urls ? Upload you pictures to either: ImageBam Photobucket Imageshack They will give you the URl afetr image upload is complete. Link to comment Share on other sites More sharing options...
2pacproducer2 Posted July 19, 2008 Share Posted July 19, 2008 I dont know whats wrong with your script , but where did u get those nice pictures in your signature ? And jamesuk how can I make something like those like in your and his signaature ? [img= Put the IMG url here] But where to get those pictures urls ? Upload you pictures to either: ImageBam Photobucket Imageshack They will give you the URl afetr image upload is complete. Yeah , I know that , but where to get the pictures ? PS ? Link to comment Share on other sites More sharing options...
james227uk Posted July 19, 2008 Share Posted July 19, 2008 I dont know whats wrong with your script , but where did u get those nice pictures in your signature ? And jamesuk how can I make something like those like in your and his signaature ? [img= Put the IMG url here] But where to get those pictures urls ? Upload you pictures to either: ImageBam Photobucket Imageshack They will give you the URl afetr image upload is complete. Yeah , I know that , but where to get the pictures ? PS ? How dumb is that question? Answer: Very They are on your computer or justs search for them. Link to comment Share on other sites More sharing options...
gtasbigfoot Posted July 19, 2008 Share Posted July 19, 2008 Maybe that's because car component is released? Doesn't it have to be loaded all the time when it's being used? No,Once it is attached to the car then you can release it but give the game engine a longer wait also. Yeah , I know that , but where to get the pictures ? PS ? Left Click on a img with mouse and ''save as'' I did not test this with your car component only this one: {$CLEO}:Grove_Boy_car03A4: name_thread 'Grove_Boy_car':Grove_Boy_car_start0001: wait 0 ms 00D6: if and0256: player $PLAYER_CHAR defined 004D: jump_if_false @Grove_Boy_car_start00D6: if0038: $ONMISSION == 0 // integer values004D: jump_if_false @Grove_Boy_car_start00D6: if and00E1: player 0 pressed_key 48Actor.DrivingVehicleType($PLAYER_ACTOR, #BRAVURA)004D: jump_if_false @Grove_Boy_car_start:load03C0: [email protected] = actor $PLAYER_ACTOR car06E9: request_car_component 1085 0001: wait 0 ms 00D6: if 06EA: car_component 1085 available 004D: jump_if_false @load:add06E7: [email protected] = add_car_component 1085 to_car [email protected]: wait 500 ms 06EB: release_car_component 1085 0002: jump @Grove_Boy_car_start Link to comment Share on other sites More sharing options...
GaryRoachSanderson Posted July 25, 2008 Author Share Posted July 25, 2008 Sorry for the late reply guys, had lotsa projects going on lately at uni but thanks for the feedback, and thanks to gtasabigfoot the script you gave me works, you just need to add the name of the mod part you added to the game into the carmods.dat (the line of the car you wish to use in the script, in my case the bravura, NOT shopping.dat however as it will cause bugs. Now it works! thx p.s. 2pacproducer2: they are called userbars, you can make your own or visit http://archive.userbars.com/. sorry for telling you this late though. Link to comment Share on other sites More sharing options...
2pacproducer2 Posted July 25, 2008 Share Posted July 25, 2008 Sorry for the late reply guys, had lotsa projects going on lately at uni but thanks for the feedback, and thanks to gtasabigfoot the script you gave me works, you just need to add the name of the mod part you added to the game into the carmods.dat (the line of the car you wish to use in the script, in my case the bravura, NOT shopping.dat however as it will cause bugs. Now it works! thx p.s. 2pacproducer2: they are called userbars, you can make your own or visit http://archive.userbars.com/. sorry for telling you this late though. Yeah, way too late for saying me that, because I already created some userbars , animated userbars for me ;D But anyway thanks for replying Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now