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

Car spawn


Bad.boy!
 Share

Recommended Posts

The game screen remains black when I start the game with this car spawn script:

AAVP7A1 = I added this vehicle

 

 

 

{$CLEO .cs}//-------------MAIN---------------thread 'SPAWN' :SPAWN_11wait 0 if   Player.Defined($PLAYER_CHAR)else_jump @SPAWN_11 wait 0 Model.Load(#AAVP7A1)038B: load_requested_models :SPAWN_42if   Model.Available(#AAVP7A1)else_jump @SPAWN_42 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 1.0 3.0 1.0 [email protected] = Car.Create(#AAVP7A1, [email protected], [email protected], [email protected])wait 0 Car.RemoveReferences([email protected])jump @SPAWN_11 

 

Link to comment
Share on other sites

fastman92

 

wait 0    // WTF, why do you put wait, no need, to let GTA SA do some other actions instead of scripts...Car.RemoveReferences([email protected])//  Where is  needed  Model.Destroy(#AAVP7A1) ?{THere is an array in GTA SA with IDs of objects which must be kept in memory, no need to keep a car model in memory after spawning it, right?}jump @SPAWN_11   // What is it? Spawn car, spawn car, spawn car and spawn car?

 

Instead of

Player.Defined($PLAYER_CHAR)

condition add condition to spawn a car - pressing key.

 

0AB0: key_pressed 48  // 0 to press

 

Find an opcodes on http://gtag.gtagaming.com

Find "Virtual key codes in google"....

Link to comment
Share on other sites

metacortex

 

:SPAWN_42wait 0 //------------------- you missed a wait here in the loopif  Model.Available(#AAVP7A1)else_jump @SPAWN_42

 

 

No reason for a harsh rush, Mister fastman tounge.gif

Link to comment
Share on other sites

this script doesn't work either I hit 2 and the game freezes (is it the car?)

 

{$CLEO .cs}//-------------MAIN---------------thread 'SPAWN' :SPAWN_11wait 0 if   Player.Defined($PLAYER_CHAR)else_jump @SPAWN_11 :SPAWN_31wait 0 if 0AB0:   key_pressed 50 else_jump @SPAWN_31 Model.Load(#AAVP7A1)038B: load_requested_models :SPAWN_57wait 0 if   Model.Available(#AAVP7A1)else_jump @SPAWN_57 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 1.0 3.0 1.0 [email protected] = Car.Create(#AAVP7A1, [email protected], [email protected], [email protected])wait 0 Car.RemoveReferences([email protected])Model.Destroy(#AAVP7A1)jump @SPAWN_11 

 

 

Carcols.dat

 

caraavp7a1, 43,0 

 

 

Handling.cfg

 

AAVP7A1     25000.0  250000.0   5.0    0.0 0.0  0.0  90  2.50 0.8  0.5  	4  80.0 40.0 150.0 4 D  5.0   0.50 0 35.0  0.4  0.02  0.0   0.35 -0.10 0.5  0.0  0.22 0.09 110000  40008008	308840  0  1	24

 

 

Vehicles.ide

 

18631,  aavp7a1,  aavp7a1,  car,  	AAVP7A1,  AAVP7A1,  tank,	ignore,  10,  0,	0,  -1, 1.3, 1.3,  -1

 

 

Handlingadder.ini

 

[MAIN]Count=1[CAR_IDs]18631[18631]index=11fmass=25000,0fTurnMass=250000,0fDragMult=5,0x=0,0y=0,0z=0,0nPercentSubmerged=90fTractionMultiplier=2,50fTractionLoss=0,8fTractionBias=0,5nNumberOfGears=4fMaxVelocity=0,4133299fEngineAcceleration=0,0032fEngineInertia=150,0nDriveType=4nEngineType=DfBrakeDeceleration=0,002fBrakeBias=0,50bABS=0fSteeringLock=35,0fSuspensionForceLevel=0,4fSuspensionDampingLevel=0,02fSuspensionHighSpdComDamp=0,0fSuspensionUpperLimit=0,35fSuspensionLowerLimit=-0,10fSuspensionBiasBetweenFrontAndRear=0,5fSuspensionAntiDiveMultiplier=0,0fSeatOffsetDistance=0,22fCollisionDamageMultiplier=0,12nMonetaryValue=110000modelFlags=1073774600handlingFlags=3180608frontLight=0rearLight=1animGroup=24

 

 

salimits

 

#Vehicle Models=18631

 

Link to comment
Share on other sites

this script doesn't work either I hit 2 and the game freezes (is it the car?)

 

insert an original vehicle name in the script to see if it's the script or the vehicle installation

Link to comment
Share on other sites

It's the car that makes the problems, the car spawns correct, but it's locked so I made this script:

 

{$CLEO .cs}//-------------MAIN---------------thread 'SPAWN' :SPAWN_11wait 0 if   Player.Defined($PLAYER_CHAR)else_jump @SPAWN_11 :SPAWN_31wait 0 if 0AB0:   key_pressed 50 else_jump @SPAWN_31 Model.Load(#FBITRUCK)038B: load_requested_models :SPAWN_57wait 0 if   Model.Available(#FBITRUCK)else_jump @SPAWN_57 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 1.0 3.0 1.0 [email protected] = Car.Create(#FBITRUCK, [email protected], [email protected], [email protected])Car.LockInCurrentPosition([email protected]) = False:SPAWN_130wait 0 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset 0 0 0 if 00EC:   actor $PLAYER_ACTOR 0 near_point [email protected] [email protected] radius 80.0 80.0 else_jump @SPAWN_195 jump @SPAWN_130 :SPAWN_195wait 0 Car.Destroy([email protected])Car.RemoveReferences([email protected])Model.Destroy(#FBITRUCK)jump @SPAWN_11 

 

 

Does anyone know what mistake I made in the added vehicle?

 

 

Carcols.dat

 

caraavp7a1, 43,0  

 

 

 

Handling.cfg

 

AAVP7A1     25000.0  250000.0   5.0    0.0 0.0  0.0  90  2.50 0.8  0.5   4  80.0 40.0 150.0 4 D  5.0   0.50 0 35.0  0.4  0.02  0.0   0.35 -0.10 0.5  0.0  0.22 0.09 110000  40008008 308840  0  1 24 

 

 

 

Vehicles.ide

 

18631,  aavp7a1,  aavp7a1,  car,   AAVP7A1,  AAVP7A1,  tank, ignore,  10,  0, 0,  -1, 1.3, 1.3,  -1 

 

 

 

Handlingadder.ini 

 

[MAIN]Count=1[CAR_IDs]18631[18631]index=11fmass=25000,0fTurnMass=250000,0fDragMult=5,0x=0,0y=0,0z=0,0nPercentSubmerged=90fTractionMultiplier=2,50fTractionLoss=0,8fTractionBias=0,5nNumberOfGears=4fMaxVelocity=0,4133299fEngineAcceleration=0,0032fEngineInertia=150,0nDriveType=4nEngineType=DfBrakeDeceleration=0,002fBrakeBias=0,50bABS=0fSteeringLock=35,0fSuspensionForceLevel=0,4fSuspensionDampingLevel=0,02fSuspensionHighSpdComDamp=0,0fSuspensionUpperLimit=0,35fSuspensionLowerLimit=-0,10fSuspensionBiasBetweenFrontAndRear=0,5fSuspensionAntiDiveMultiplier=0,0fSeatOffsetDistance=0,22fCollisionDamageMultiplier=0,12nMonetaryValue=110000modelFlags=1073774600handlingFlags=3180608frontLight=0rearLight=1animGroup=24 

 

 

 

salimits

 

#Vehicle Models=18631

 

 

Link to comment
Share on other sites

aStiffSausage

Try without HandlingAdder, you can do it by this:

Add handling-line after ";End" in handling.cfg

Go in-game biggrin.gif (Make backups first)

Link to comment
Share on other sites

 

salimits

 

#Vehicle Models=18631

 

 

salimits is wrong

insert the amount of vehicles and not the id number

 

without added cars it's #Vehicle Models=212

add one car then type #Vehicle Models=213

 

It seems that is your first attempt.

If so, then install a normal car as first test and not a tank

Edited by ZAZ
Link to comment
Share on other sites

It's not my first attempt, but I had to format my hdd* (this is my 9th attempt)

and that doesn't matter, because my old one was 18636 and everything worked

 

*my laptop ran out of battery whilest updating

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.