Jump to content

[REL|GTAIV] Car Spawner


Recommended Posts

Yeah, I know we already have a car spawner. But I found it annoying to Alt+Tab all the time and setting hotkeys for all the cars isn't very practical. So I made this, mainly as a way to learn C++. Also this is my first C++ thing biggrin.gif

 

user posted image

 

Download v0.4: Here

 

Installation:

Place CarSpawner.asi into your GTAIV directory. Make sure you have some sort of Asi Loader.

Asi Loader or XLiveLess will do.

 

Default hotkeys:

Numpad 0 - Toggle on/off

Numpad 7 - Previous car

Numpad 4 - Next car

Numpad 1 - Spawn car

 

Changing hotkeys:

The hotkeys are defined in CarSpawner.ini, so if something isn't working,

delete CarSpawner.ini and try with the default hotkeys.

The lines are pretty self explanatory. The keys are set as virtual key code values.

For example, if you want the spawn key to be F5, you would have spawn=116 in the file.

Complete list of virtual key codes

 

Regarding multiplayer:

Since I don't have access to MP, I can't test it. Because of that, using this in MP is totally unsupported by me.

If it works, good for you. If it doesn't, I can't help you.

 

ATTENTION:

Spawning the following vehicles without having DLC content enabled, WILL CRASH YOUR GAME:

Wolfsbane

Diabolus

Lycan

Nightblade

Revenant

Hexer

Deamon

Angel

 

Get the DLC from: Here

 

Credits:

asd23 aka Roltzy, for typing the car names into a list and compiling the thing. tounge.gif Please use the name Roltzy, if you're putting it on your page.

Aru, for the Script Hook and help on displaying text.

Edited by asd23
Link to comment
https://gtaforums.com/topic/390818-relgtaiv-car-spawner/
Share on other sites

If I get the model hashes from somewhere, yeah. I'll look into it.

Can you give me a list of all the DLC bikes?

 

Edit:

No, that seems to be all the models from vehicles.ide, except for the trains. If the DLC mod adds them, then I need to get it, since I don't have it.

Edited by asd23
Link to comment
https://gtaforums.com/topic/390818-relgtaiv-car-spawner/#findComment-1058856764
Share on other sites

Oops, why not working online? I can't seem to use it online. Fix fix?

 

Edit:Problems persist after coming back from online match. Weird. Looks like changing world disables. I will try loading the game directly in MP. I'll give news.

 

Edit 2 : Worked on connecting online instead of going thru SP. This means the hack only loads the first time you load a game. (MP or SP)

 

 

 

 

Edited by vachon644
Link to comment
https://gtaforums.com/topic/390818-relgtaiv-car-spawner/#findComment-1058857304
Share on other sites

Oops, why not working online? I can't seem to use it online. Fix fix?

 

Edit:Problems persist after coming back from online match. Weird. Looks like changing world disables. I will try loading the game directly in MP. I'll give news.

 

Edit 2 : Worked on connecting online instead of going thru SP. This means the hack only loads the first time you load a game. (MP or SP)

 

 

That's how all ASI's load, Alex has to fix it.

Link to comment
https://gtaforums.com/topic/390818-relgtaiv-car-spawner/#findComment-1058857526
Share on other sites

 

Oops, why not working online? I can't seem to use it online. Fix fix?

 

Edit:Problems persist after coming back from online match. Weird. Looks like changing world disables. I will try loading the game directly in MP. I'll give news.

 

Edit 2 : Worked on connecting online instead of going thru SP. This means the hack only loads the first time you load a game. (MP or SP)

 

 

That's how all ASI's load, Alex has to fix it.

I think you are wrong. For example, the Simple Native Trainer has never failed me when going SP or MP and changing game and reloading game. SNT was always loaded. Maybe I am wrong but the tool to verify "player_pool_creation" might be wrong.

Link to comment
https://gtaforums.com/topic/390818-relgtaiv-car-spawner/#findComment-1058857543
Share on other sites

Err... okay.

 

About the DLC stuff: I don't have a clue what the hashes for those models are so I can't load them. Currently you can't spawn any DLC bikes.

im pretty sure there are 2 bikes that were not in the game originally.

 

the hellfury and another heavy one.

 

am i wrong?

 

u can look in the mod that helps u get the DLC bikes to see how it was done there and make it possible in your mod.

Link to comment
https://gtaforums.com/topic/390818-relgtaiv-car-spawner/#findComment-1058858035
Share on other sites

 

Can you possibly allow the car to be seen before confirming it to be spawned?

I don't think I could come up with a practical solution for that. The loading of each model would take annoyingly long.

 

 

Worked on connecting online instead of going thru SP. This means the hack only loads the first time you load a game. (MP or SP)

I'm pretty sure it's something Aru needs to fix in his C++ hook. But I don't really care. Since I can only play SP I can only support that.

 

 

the hellfury and another heavy one.

 

am i wrong?

 

u can look in the mod that helps u get the DLC bikes to see how it was done there and make it possible in your mod.

The Hellfury, Freeway and Zombie aren't DLC bikes. And I did look into that mod. Didn't help me much more than now I know the names of the bikes. I'll keep trying some stuff though.

Edited by asd23
Link to comment
https://gtaforums.com/topic/390818-relgtaiv-car-spawner/#findComment-1058858542
Share on other sites

Yes, gonna upload the new version shortly. Just gotta test what will happen if you don't have the DLC mod.

Edit:

Released v0.3:

Used the new version of Aru's C++ Hook.

Made DLC bikes spawnable, but beware, if you don't have the DLC stuff enabled, trying to spawn them will crash the game.

Edited by asd23
Link to comment
https://gtaforums.com/topic/390818-relgtaiv-car-spawner/#findComment-1058859728
Share on other sites

Good work. Now I don't have to alt+tab and risk getting a disconnect from the server. Plus it actually works in multiplayer smile.gif

 

 

Now I can have my FIB Buffalo, the most badass car in the game.

How do u get it work in mp? It doesnt work in mp for me, and after i load game.

Link to comment
https://gtaforums.com/topic/390818-relgtaiv-car-spawner/#findComment-1058866988
Share on other sites

Oops, why not working online? I can't seem to use it online. Fix fix?

 

Edit:Problems persist after coming back from online match. Weird. Looks like changing world disables. I will try loading the game directly in MP. I'll give news.

 

Edit 2 : Worked on connecting online instead of going thru SP. This means the hack only loads the first time you load a game. (MP or SP)

 

 

How do you load multiplayer without loading singleplayer first?

Link to comment
https://gtaforums.com/topic/390818-relgtaiv-car-spawner/#findComment-1058867662
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
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

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