Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Tuners
      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. GTA San Andreas

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

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

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    1. Grand Theft Auto Series

      1. 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. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    6. 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

      1. GTANet 20th Anniversary
    2. Support

    3. Suggestions

[MoonLoader] AutoSpawn


Recommended Posts


Note: Version 4.0 and above of this mod no longer requires AutoID.

MoonLoader is the only requirement now.


Note: This mod requires AutoID 2.1 or above.

Although it is highly recommended to always have the latest version.


AutoSpawn is an in-game entity spawner that uses the beautiful mimgui interface. It allows you to access any entity that exists in the game, provided that it has a model ID.



If you have Mod Loader Support for MoonLoader (optional)Put the AutoSpawn folder inside the game directory\modloader folder.

Otherwise: Go to AutoSpawn\moonloader. Put the AutoSpawn.lua file and AutoSpawn folder inside the MoonLoader directory folder.


To use, press F4.




















Google Drive:


Version 4.0 and above of this mod uses a complex function that does not require AutoID.

This mod uses an exported utility of AutoID (point 5). As such, anyone is free to use the code to learn the usage of this utility.

Edited by HzanRsxa2959
  • Like 4
Link to comment
Share on other sites

  • 2 weeks later...

Update 2.0:

  • Added a system to display selected entity. It works ok.
Link to comment
Share on other sites

  • 2 weeks later...

Update 2.1:

  • Fixed the entity-display system not displaying small vehicles.
  • The spawn menu has been moved a little towards the center to prevent graphical bugs in the game menu.
Link to comment
Share on other sites

  • 1 month later...

Update 3.0:

  • Now most of the settings are saved, with an option to reset all.
  • Now the mod actually checks if AutoID installed. If not installed, then it will simply display "AutoID not installed."; Yes, I had forgotten again.
  • Now the entity display system also works inside interiors.
  • Now vehicles have the following text format- :Model_ID: :Display_Name: :CModel_Class: Model_Name
  • Now weapons have the following text format- :Model_ID: :WWeapon_IDModel_Name
  • Some initial code optimizations to increase performance.
  • Now you can hold X to hide the cursor and regain control of the mouse.
Link to comment
Share on other sites

  • 1 month later...

Update 4.0:

1. AutoID is not required anymore. MoonLoader is the only requirement for now.

2. Various performance optimizations.

3. Sensible changes to text formats of all the entities:


Peds- :Model_ID: D:DFF_Name: T:TXD_Name:

Vehicles- :Model_ID: D:DFF_Name: T:TXD_Name: G:Vehicle Name: C:Model_Class:

Weapons- :Model_ID: D:DFF_Name: T:TXD_Name: W:Weapon_ID:

Objects- :Model_ID: D:DFF_Name: T:TXD_Name:

Timed Objects- :Model_ID: D:DFF_Name: T:TXD_Name:

Clump Objects- :Model_ID: D:DFF_Name: T:TXD_Name:


Link to comment
Share on other sites


Update 4.1:

  1. Fixed TXT files being ignored. Now they are also read in addition to IDE files as Mod Loader adds support for them.
  2. Improved the method used to detect the file extension.
  3. Replaced all code dependent on AutoID, making it completely optional.
Link to comment
Share on other sites

Posted (edited)

Update 4.2:

1. Now, if AutoID is installed, and a model is adapted to AutoID, then its AUID name will be shown with the following format: :A:AUIDName:.

2. Changes to the entity display system: Now models are only loaded when necessary, fixing a rare case where quickly scrolling the model list could cause the entity display system to mess up the game's streaming. Also, a "Loading..." text is displayed now instead of loading the model instantly for display.

3. Two scale sliders- one for Weapons, and one for Objects, Timed Objects, and Clump Objects- have been added to their respective tabs. Use them to scale objects for viewing in the entity display system.

4. The local function to get the dff model and txd names of models has been replaced with one from a generic Lua library (personal; soon to be released after a couple more useful functions have been added to it).

5. Now weapon names (from weapon.dat) are also added to the weapon list with the following format: :N:WEAPONNAME:. Also, a weapon's parent type is also displayed with the following format: :N:Parent_Type:. I.e., searching for ":P:16:" will show all weapons with parent type GRENADE (including GRENADE itself). Also works for added weapons.

6. Now, if an entity's model has not loaded before it is spawned, then an error "Cannot load model." is displayed instead of spawning said entity anyway, which could lead to bugs and crashes.

Edited by HzanRsxa2959
Link to comment
Share on other sites


Update 4.3:

  1. Weapon names (weapon.dat) are now strictly uppercase (generic library update).
  2. Weapons' parent names are now displayed with the following format: :F:PARENTNAME:.
  3. Fixed script crashing if AutoID was not installed.
  4. Remove many lines of useless code.
Link to comment
Share on other sites

  • 2 weeks later...

Update 4.3.1:

  • Fixed script crashing if MoonAdditions was not installed.
  • Fixed incorrect weapon parent type and name if fastman92 Limit Adjuster was installed but no weapons were added.
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

  • 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.