Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

[CLEO] need help with my script


GaryRoachSanderson
 Share

Recommended Posts

GaryRoachSanderson

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

 

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 by james227uk
Link to comment
Share on other sites

2pacproducer2

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

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

Doomed_Space_Marine

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

2pacproducer2
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

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

2pacproducer2
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

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

gtasbigfoot

 

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:

 

user posted image

 

 

{$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

GaryRoachSanderson

Sorry for the late reply guys, had lotsa projects going on lately at uni but thanks for the feedback, and thanks to gtasabigfoot smile.gif 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 smile.gif

 

p.s. 2pacproducer2: they are called userbars, you can make your own or visit http://archive.userbars.com/. smile.gif sorry for telling you this late though.

Link to comment
Share on other sites

2pacproducer2
Sorry for the late reply guys, had lotsa projects going on lately at uni but thanks for the feedback, and thanks to gtasabigfoot smile.gif 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 smile.gif

 

p.s. 2pacproducer2: they are called userbars, you can make your own or visit http://archive.userbars.com/. smile.gif 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.