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. Forum Support

    3. Suggestions

[BETA] Szabo's Persistance Mod - Scripthook (LUA)


Szabo
 Share

Recommended Posts

silvermanblue

Just saying you have an amazing mod here, only issues I have is extras dont save, like on the coquette classic sometimes it will have the hardtop, some times the convertible. I have about 40 cars saved so far, doesnt seem to lag at all, and I have a mid level rig. hoping you get the neons and plates working soon. Also small suggestion, is there a way to disable parked cars near the array of your saved cars? I havent had any clipping issues yet, but would be nice to limit traffic and parked cars near my garages.

Leone Family Mafia

ПРОПАГАНДА.ИНЦ, СИЛВЕРМАНБЛУЕ
Link to comment
Share on other sites

GTAGeek123

A version of the lua plug in is out. It may also have the functions you are looking for.

 

Quote from page:

 

Current Version: 10.0

Description:

Write any LUA Script for GTA5

you are able to use all Natives from NativeDB

Link to comment
Share on other sites

ssnakesbandana

Just curious would the LUA script engine found in the below url have the functions you are waiting for?

 

http://gtaforums.com/topic/790179-vrel-gtalua-script-engine-in-lua/

 

Just chiming in to say that you should take a look at this, Szabo. I highly suggest you visit the iRC at #gtalua on GTANet (irc.gtanet.com:6667). I think the community could really benefit by working together!

Edited by ssnakesbandana
Link to comment
Share on other sites

This mod is great - I have an issue though with the cars I'm saving - When I reload the save, the saved cars are duplicated a few meters away for some reason :\

Link to comment
Share on other sites

could someone clarify which lua version is the best to use? after installing the newest, it seems like lua scripts just stop working after a while for no reason - like about a minute of playing

Link to comment
Share on other sites

ssnakesbandana

could someone clarify which lua version is the best to use? after installing the newest, it seems like lua scripts just stop working after a while for no reason - like about a minute of playing

 

Its a confusing situation, I don't think anybody really knows for sure. The fact that there were problems on the update seemed to be unforeseen. That's why I like GTALua, it seems to be set up in such a way to prevent problems of this nature. Unfortunately, existing mods won't work straight out of the box with GTALua and have to be slightly modified in order to be 'ported' over. The mod authors have to be on board for it to work!

Link to comment
Share on other sites

Thanks guys. Sorry my lack of attention.

 

I have added this myself, it is very easy to do. You can just add two lines in the right location, or a few more lines if you want to.

 

However it is best to wait until Szabo either implements it himself or until he designates the script as REL, because if you add it yourself, every time it is updated you will need to redo it as well as modify your savefile by hand or ditch it & start again.

 

If anyone really wants to give it a go & Szabo doesn't mind I can post what to add & where against a particular version?

 

Sure, you can also fork it on github if you want. Btw, I have credited you on line 146: https://github.com/Alan-FGR/Persistance-Mod/blob/master/szabopersist.lua#L146 :).

 

At the moment I'm not working a lot on this mod since I'm waiting for the Lua plugin to be updated because I need some functions that doesn't work, so it's safe to fork it, even if there are concurrent updates there's always a way to merge them :).

 

The code is ugly though, but the way the data is stored is very simple. Perhaps in the future it's going to be cleaned up, so collaboration will be much easier.

 

Cheers for the credit Szabo.

 

I don't think I'll be interested in forking it as such, but I might post a link in this thread to a version slightly modified by me. Forking it kind of implies a responsibility to bug fix and update it. I'm not very responsible :)

 

A version of the lua plug in is out. It may also have the functions you are looking for.

 

Quote from page:

 

Current Version: 10.0

Description:

Write any LUA Script for GTA5

you are able to use all Natives from NativeDB

 

I intend to try this & see if the script works ok in it, but see below...

 

 

could someone clarify which lua version is the best to use? after installing the newest, it seems like lua scripts just stop working after a while for no reason - like about a minute of playing

 

Its a confusing situation, I don't think anybody really knows for sure. The fact that there were problems on the update seemed to be unforeseen. That's why I like GTALua, it seems to be set up in such a way to prevent problems of this nature. Unfortunately, existing mods won't work straight out of the box with GTALua and have to be slightly modified in order to be 'ported' over. The mod authors have to be on board for it to work!

 

 

I will definitely be attempting to get this running on whatever is available for my own enjoyment when I next play GTA. However, I have completely fallen in love with PCARS at the moment and I have played a lot of GTAV in recent months on last gen as well as the PC.

 

I'll have a quick look on Monday to try it out with the v10.0 LUA plugin. And I'll probably post a link to my slightly modified version. After that I am probably going to get lost in PCARS for quite some time & come back to GTA when the natives are all known and documented.

Link to comment
Share on other sites

Szabo: super mod :-), but every time when I pressing F4 key my saved bicycle spawning again (duplicates) ON previous bicycle, do you know why? I can't use native trainer :(

Link to comment
Share on other sites

The new lua update f*cked up your GUI from all your scripts. They needs an update.

 

I am a really big fan of your scripts though, thank you very much!

Link to comment
Share on other sites

Yeah I concur, whole script is screwed for me too. Loved this script so hoping it'll be updated :)

Link to comment
Share on other sites

Hey Szabo, loving your mods so far. Seeing that you are sticking to the vehicle theme with your mods, would you consider making a mod to add a mechanic feature into Story Mode (the vehicle delivery service like in Online Mode) - or better yet, implement it into your persistance mod, so that saved vehicles can be delivered to your location via phone-call or menu. Anyway, keep on the good work!

Link to comment
Share on other sites

carcols.dat

You really should add a config option that disables blips.

Link to comment
Share on other sites

It seems like disabling the mod doesn't work properly, perhaps it's cause of newest lua - when I disable the mod and get away from my saved cars, when I come back they respawn just as if the mod was enabled....only thing it seems to do is disable the save-the-current-car-thing

Link to comment
Share on other sites

GTAGeek123

Lolleroz,

 

The disable option in the mod is supposed to only disable the current car option. There is no current way of disabling the entire mod (besides deleting it or manually unsaving the vehicles).

Link to comment
Share on other sites

Lazlow54875

 

if anybody wants the szabopersist save file and if that is ok with Szabo ill be more than happy to share and upload it. I spent a fair share of time getting all those cars upgrade to the max and situated in those spots but there are still plenty that need tinkering and perhaps categorizing for a more realistic look. I did make most of these before the bulletproof/smoke tire saves kicked in so there that as well, Giving Michael and Trevor some vehicles to boot wouldn't be a bad idea either. It would be nice to perhaps get to community going on a "ultimate garage" save file if you will.

 

Thanks again Szabo!

Edited by tr0janman697
Link to comment
Share on other sites

†Tyranick†™

Updates still coming or has development stopped? Can't get any of szabos mods working on latest dotnet versions.

Link to comment
Share on other sites

I can't get any lua mods to work. Mist be a problem with the recent .lua extension update.

Link to comment
Share on other sites

carcols.dat

You really need to add a check for duplicate cars. Every one I save ends up getting another entry a few fractions of a meter over...

 

Also, I still want a way to disable the blips. I added this feature myself but it would be nice to make it official.

Link to comment
Share on other sites

Fireboyd78

Prepare to have your mind blown:

 

--[[Oh my god...It's a multi-line comment!HOLY S%!--]]print [[Dear sir,I have figured out how to print multi-line strings in Lua.Regards,Newb E.]]
:p Edited by CarLuver69
Link to comment
Share on other sites

carcols.dat

Okay now I just noticed a pretty major issue. It's spawning duplicates even if there's no duplicates in the persist file. This really needs to be fixed. Seems to be only with planes and watercraft. The vehicles spawn almost right on top of each other and just...blow up.

Link to comment
Share on other sites

†Tyranick†™

I thik szabos has quit the project/modding altogether. His image has change back to the default outline and he hasn't been active for over a week now :\, man what I shame, this had such huge potential. I hope someone is willing to pick it up and update it.

Link to comment
Share on other sites

headscript

I thik szabos has quit the project/modding altogether. His image has change back to the default outline and he hasn't been active for over a week now :\, man what I shame, this had such huge potential. I hope someone is willing to pick it up and update it.

Last Active 2 days ago

 

dont worry maybe he has no time atm^^

Link to comment
Share on other sites

†Tyranick†™

I mean active as in his last POST was over a week ago, "active" in the profile just means he did something in his profile, in this case, removed his picture.

 

Well either way I hope he returns to finish this awesome work!

Link to comment
Share on other sites

Voit Turyv

Either way, someone should remake his mod if Szabo is out for good.

Link to comment
Share on other sites

†Tyranick†™

Absolutely, the source code is still on the github site, it's just who would take it upon themselves to commit to the improvement and future features?

Link to comment
Share on other sites

GTAGeek123

Good News!!!!!!

 

I have updated Szabo's 0.0.1.7B version and neons, plate types, vehicles extras (for example the Coquette Classic hood types), and plate numbers/text (read below for custom plate instructions) all now work. Note: You will need GTA LUA plugin version 10 (SDK) for this version to work correctly.

 

VERY IMPORTANT STUFF!!!!!!:

 

1. In order to use custom plate numbers (text) you need to set the useplates option to false.

 

2. In order create a custom plate name that will save you will need open up the szabopersist file (that has your saved vehicles) with a text editor and modify the last value on the vehicle in question's line to what you want your customer plate to say (max eight characters and letters need to captialized). Then reload the LUA plugin (left ctrl + r ) back in game or restart (or reopen if you closed it) the game.

 

Note: I recommend that you only you do this after you made all of the other changes you want to your vehicle since anytime you unsave and resave the vehicle (which you would do if you needed to make a change) in the game the license plate will be overwritten with new values in the save file.

 

3. Vehicle extras will change to different values when the reload key is pressed if the vehicle is unsaved and re-saved (again which you will need to do if you make a change to your vehicle). You will need to reload the LUA plugin (left ctrl + r) after the vehicle is re-saved in order to make them turn back to the way you had them (they then will stay until the vehicle is unsaved and resaved again in which case you will just need to reload the LUA plugin again).

 

4. In regards to the duplication issue. I've only seen it occur when reloading the LUA plugin and not when using the reloadkey (defined in the script) that reloads just the persistentence mod. The only vehicles I've seen duplicated (or heard of it being duplicated) are bicycles, planes, and boats (and cars if you are in them) when reloading the LUA plugin in which case you just need to reload the persistent mod using the reloadkey (exit the duplicate vehicle first) and the duplicate should go away. Note:Some duplicate vehicles (such as bicycles) will need to be manually unsaved in order to go away. Also, a good way to avoid the duplication issue if you have to reload the LUA plugin is to travel or teleport to an area on the map that is far away from any saved vehicles. Then reload the plugin and then travel or teleport back.

 

5. I have only tested the new save options using the normal save option. I have not tested it with the last three vehicles driven saved option on (as I do not use that option), so I do not know if they work, but theoretically they should.

 

6. For some strange reason any car (or at least some of my cars did) saved before this update will have purple neons. In order to make them go away you will need to take the car to LS customs and set the neon layout to none and then resave it at your desired location.

 

All credit to Szabo for making such a useful mod!

 

Link to updated LUA file:

 

https://www.dropbox.com/s/7fdnjr7de8itkep/szabopersist.lua?dl=0

Edited by GTAGeek123
  • Like 3
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.