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

Rohith_Kumar_Sp

myplate wont work no matter what

	--	--	####################################################################--	SZABO'S PERSISTANCE MOD--	0.0.1.06b	NOTE: 'b' stands for BETA VERSION! Use at your own risk!!!--	####################################################################---- CONFIGURE THE KEYS BELOW. Further down you find a list of the codeslocal savekey = 96local reloadkey = 110local disablemodkey = 109local modenabled = true -- SET TO false if you don't want the persistence to be enabled by default - does not affect saved						--vehicles, this only applies to the 'persistent' ones you drove, which can cause problems in missions-- CONFIGURE THE PATH WHERE THE FILE WILL BE SAVED. NOTE: Make sure Windows allows writing there.-- 99.9% of the problems will be due bad data on the line below OR Windows permissions nonsense.-- IMPORTANT!: Double-check the slashes (/) (they're NOT backslashes (\) ) and the LAST SLASH too!-- IMPORTANT!: The path must be between quotation marks ("). Use the default value for reference.local savepath = "C:/Users/Rohith/Documents/Rockstar Games/GTA V"-- CHOOSE A COOL TEXT TO APPEAR IN THE LICENSE PLATES OF YOUR SAVED VEHICLES! (Max. 8 dig.)-- IMPORTANT!: The text must be between quotation marks ("). Use the default value for reference.local platetext = "EZIOSP"local useplates = true --change to false if you don't want the plates to change
Link to comment
Share on other sites

 

Thank you guys. I appreciate your support.

 

Haha, what do you find creepy with him?

Well... He looks some kinda dangerous revolutionary redneck :p.

 

Hello there. First of all, thanks alot for this mod - it is a must-have for single player, I'm really glad someone came out with this so quick, because it's apparent most of the flaws in single player are there on purpose in order to make players emigrate to Online. You got my huge respect for devoting yourself to making this simple, albeit, crucial gameplay mod and I hope you won't abandon this. I'm curious if you'd be interested in making other script additions - as you may have noticed there is barely anything to do after storyline except for the stranger missions (unless you really like participating in ridiculously easy races or boring as sh*t thriatlons) thus I was wondering if you were to become a HippieCommunist scripting guru of GTA 5 - his sidemissions mod made me play IV for a few years, never losing the replayability.....you mentioned perhaps more ways to make money, if you don't want to take up on complicated scripts yet, how about just selling stolen cars for now, a chop shop of some kind? It'd be kinda hard to balance though....

Thank you. I'm not planning to be a 'guru' of GTA5, I also think the game lacks random side missions what really diminishes the replayability. It gets boring quickly. I'm planning to make a 'hitman' mod in the future, but nothing complex. I don't know about selling cars, because even the pricey cars are very common in the game, so it got to be some script that balances the prices according to the cars you sold, or perhaps a script that don't let you just sell any car but the cars must be requested... I don't know.

 

 

If I understand properly how this mod works, all saved cars are stored in szabopersist file (not .lua) which mod makes when you save a car (try to find it in documents\Rockstar Games) , you can edit this file with notepad++ and delete all lines to reset all your saved cars, one line for each saved car.

Yea, I found this file. just thought it might have a key that unsave all cars, just as you can unsave one by one, thanks

 

Sorry, it's not possible to unsave all the cars at once, and I don't think a key for that is worth adding to the mod because you could just delete the szabopersist file (in the config path).

 

found a problem had random orange dots pop up from vehicles i had driven but not saved like it driving around, or vehicles ive never even driven popping up as orange dots.

That is the persistent vehicles feature, you can disable that in the config. Sometimes random vehicles are marked because of missions, they mess with the mod, that's why there's a hotkey to disable/enable that feature on-the-fly.

 

A hitman sidemission mod would be amazing, although variance is an important thing - if it was just a random ped being marked for death, that would be a start, but it would get very tedious and boring - thus my idea is multiple scenarios, spawn bodyguards around him, make him drive a 100% armored car, etc....regarding the car thefts, how about something similar to Online but in different flavor - a chop shop location you can visit, by standing in the marker you find out what vehicles it requires (let's say 5-10 cars list) which would reset each X hours. The prices should be relatively similar to the ones in Online, perhaps a little bit more cause generally things are quite expensive in single player (armor costs 2500$ etc)

 

Yeah, I don't know if I'm going to have the time to do that though. Of course there must be various scenarios with randomized bodyguards (and perhaps even escorting vehicles). Regarding the theft, it surely would be possible to make something like that. I'm not very excited though because cars are pretty much expandable in the game and they're easy to steal. If there was some kind of hot wiring minigame like in CW for DS, it would be much much better imho :). And also, some more damage like in GTAIV, so you have to loose the cops and deliver the car intact. That surely would add to the experience.

 

myplate wont work no matter what

 

 

	--	--	####################################################################--	SZABO'S PERSISTANCE MOD--	0.0.1.06b	NOTE: 'b' stands for BETA VERSION! Use at your own risk!!!--	####################################################################---- CONFIGURE THE KEYS BELOW. Further down you find a list of the codeslocal savekey = 96local reloadkey = 110local disablemodkey = 109local modenabled = true -- SET TO false if you don't want the persistence to be enabled by default - does not affect saved						--vehicles, this only applies to the 'persistent' ones you drove, which can cause problems in missions-- CONFIGURE THE PATH WHERE THE FILE WILL BE SAVED. NOTE: Make sure Windows allows writing there.-- 99.9% of the problems will be due bad data on the line below OR Windows permissions nonsense.-- IMPORTANT!: Double-check the slashes (/) (they're NOT backslashes (\) ) and the LAST SLASH too!-- IMPORTANT!: The path must be between quotation marks ("). Use the default value for reference.local savepath = "C:/Users/Rohith/Documents/Rockstar Games/GTA V"-- CHOOSE A COOL TEXT TO APPEAR IN THE LICENSE PLATES OF YOUR SAVED VEHICLES! (Max. 8 dig.)-- IMPORTANT!: The text must be between quotation marks ("). Use the default value for reference.local platetext = "EZIOSP"local useplates = true --change to false if you don't want the plates to change

 

You need a slash on the end of the savepath string. I've answered you via MP already. (Please guys, don't send me MPs, I don't have all that time for personalized support) Edited by Szabo
Link to comment
Share on other sites

I was getting crashes just now when trying to load a save. I was using a bunch of mods, including this and the Heist Vehicles in SP mod. When I removed this mod, the game loaded fine. Then when I tested by enabling it again, game loads properly.

 

Also is it possible to turn off the blinking map markers for saved vehicles? Gets kind of annoying after a while.

Edited by Jax765
Link to comment
Share on other sites

GTAGeek123

Are you using the Community Script Hook V .NET? It currently will cause the game to crash when trying to load old saved games.

Link to comment
Share on other sites

I'm using the latest Script Hook V, not the .net version. And the game's loading now, but I'm fairly sure it's this mod that sometimes causes it to crash upon loading my save (which is up to date).

Link to comment
Share on other sites

@Szabo

you're right - it would be somewhat dull, what could be made however is that once you're in the desired car you'd press some key, and you'd get limited time (so no time for stopping by to repair it) in order to deliver it to some location instead of a chop shop - alleways, secluded areas (let's imagine some other guy 'collects it' there) and such. That way you'd have to both hurry and be careful not to damage car, and you'd feel like you earned the money somehow. Problem is, it would require alot of work - different coordinates for various drop-offs, plus the time remaining would need to depend on type of car - imagine stealing an Infernus yet you got lots of time to deliver it, or stealing an Emperor and it needs to be delivered almost instantly...

Link to comment
Share on other sites

Rohith_Kumar_Sp

 

myplate wont work no matter what

 

 

-- CONFIGURE THE PATH WHERE THE FILE WILL BE SAVED. NOTE: Make sure Windows allows writing there.-- 99.9% of the problems will be due bad data on the line below OR Windows permissions nonsense.-- IMPORTANT!: Double-check the slashes (/) (they're NOT backslashes (\) ) and the LAST SLASH too!-- IMPORTANT!: The path must be between quotation marks ("). Use the default value for reference.local savepath = "C:/Users/Rohith/Documents/Rockstar Games/"-- CHOOSE A COOL TEXT TO APPEAR IN THE LICENSE PLATES OF YOUR SAVED VEHICLES! (Max. 8 dig.)-- IMPORTANT!: The text must be between quotation marks ("). Use the default value for reference.local platetext = "EZIOSP"local useplates = true --change to false if you don't want the plates to change
You need a slash on the end of the savepath string. I've answered you via MP already. (Please guys, don't send me MPs, I don't have all that time for personalized support)

 

dude i solved that by adding "/" , my issue is with Myplate , its not working

 

5PT7YAn.png

Link to comment
Share on other sites

DrunkPiranha

 

 

 

 

I tried and tried, could not get it to work, i followed instructions to the letter. The scripts folder is there and the mod itself is in the Addins folder. Would love it if i could get it to work.

http://i.imgur.com/itan1v3.jpg

http://i.imgur.com/7pu7fyO.jpg

Try:

 

C:/Users/Owner/Documents/Rockstar Games/GTA V/SzaboPersistance/

 

In the .lua file located in root GTA V/scripts/assets/

 

And create the folder SzaboPersistance in your documents folder at the respective path.

Then open the folder properties and change the read only value to nothing and apply changes to this folder, subfolders and files.

Currently there is no file yet inside but it will be from your first saved car.

 

Good luck and let me know if it works.

 

I figured out my problem, windows wont let me change the attribute from read only.

 

 

Alright then let's go and start making windows work if you want.

There are multiple things that need to be done.

 

First of all what OS are you using I am giving instructions from Win 8.1.

 

What I did was open the SzaboPersistance Folder properties (from now on SP Folder) and made sure the checkbox was empty and apply changes to this folder, subfolders and files. This worked but next time I opened the folder it shows again read only. Don't worry it should still work.

 

I would like to send you my savefile from Szabo it has 4 cars saved currently. Two for Trevor (Trailer & Floyd App.) One for Michael and One for Franklin. Then you could check if it loads those cars on your GTA but I can't figure out how this "My Media manager works". Can someone help me please with that.

 

Getting back to the read only part. When you have no checkbox at all then you do not have sufficient privileges to change this. Therefore you need to change permissions. Let me know if you have a checkbox yes or no. If no I will give instructions then.

 

Please let me know how it goes.

 

PS: Anyone any idea how to fix the custom tires!!! Even more important then the color I would say.

 

I CMD fixed the read only issue, found out on reddit i was missing a C++ file once that was installed it work beautifully. All is well now lol i got sick of fixing up Voltics everytime.

 

Could you send me a link for that file? My cars disappear everytime I restart the game because it doesn't create the szabopersist file.

Link to comment
Share on other sites

Thanks guys.

 

I just updated the github with a new WIP version that supports controllers:

Dpad Right + R Stick: Save/Unsave

Dpad Right + L Stick: Reset Cars Positions

Dpad Right + L Bump + L Stick: Enable/Disable

 

 

@Jax765: This mod has nothing to do with the game save files. It saves its own data independently.

 

----

 

If you're having problems with the path configuration, a simple way to solve it is to copy the path to your 'documents' directory (not in the libraries) and replace the backslashes. I'm going to try to make the new version

 

 

 

myplate wont work no matter what

-- CONFIGURE THE PATH WHERE THE FILE WILL BE SAVED. NOTE: Make sure Windows allows writing there.-- 99.9% of the problems will be due bad data on the line below OR Windows permissions nonsense.-- IMPORTANT!: Double-check the slashes (/) (they're NOT backslashes (\) ) and the LAST SLASH too!-- IMPORTANT!: The path must be between quotation marks ("). Use the default value for reference.local savepath = "C:/Users/Rohith/Documents/Rockstar Games/"-- CHOOSE A COOL TEXT TO APPEAR IN THE LICENSE PLATES OF YOUR SAVED VEHICLES! (Max. 8 dig.)-- IMPORTANT!: The text must be between quotation marks ("). Use the default value for reference.local platetext = "EZIOSP"local useplates = true --change to false if you don't want the plates to change
You need a slash on the end of the savepath string. I've answered you via MP already. (Please guys, don't send me MPs, I don't have all that time for personalized support)

 

dude i solved that by adding "/" , my issue is with Myplate , its not working

Just save the file on notepad and reload the mod.

 

How did you find the mod IDs and their meanings?

They are in the nativedb, most are self-explanatory, some have documentation, but you'll always have to figure out some stuff...

Link to comment
Share on other sites

DrunkPiranha

I managed to fix it. For some reason, this mod (or LUA) refuses to acknowledge the existence of Swedish letters, so after going through the unnecessarily complicated process of changing my Windows account username, it now works.

Edited by DrunkPiranha
Link to comment
Share on other sites

Can i use other folder, not like "users\%username%"? There is an issue with non-english symbols i can't solve.

Link to comment
Share on other sites

I managed to fix it. For some reason, this mod (or LUA) refuses to acknowledge the existence of Swedish letters, so after going through the unnecessarily complicated process of changing my Windows account username, it now works.

Can i use other folder, not like "users\%username%"? There is an issue with non-english symbols i can't solve.

Sure. Create a folder like "C:/MyFolder", configure Windows to let stuff write in it (give full permission to be sure), and then on the lua file add something like this:

local savepath = "C:/MyFolder/"

 

You can even plug a usb drive and set the path to its letter (e.g.: "F:/"). It seems Windows allows writing in USB devices by default.

Link to comment
Share on other sites

Hey man, nice mod!
I just downloaded it today and got a bug while playing, whenever i want to get one one of the cars i saved i "jump" out of it.
9E8.png
Hope you can fix it with that, let me know if you need more data or something like that.

 

In case you cant see the image, i get the error on the console

 

"tick: scripts/addins/szabopersist.lua 290 error in function 'get_blip_from_entity'

 

And also 'get_dictance_between_coords' instead of 'get_blip_from_entity'

 

The number (290) is also 630 sometimes

Edited by Toom52
Link to comment
Share on other sites

levandoski

Hi Szabo, first of all credit for executing such a good idea. I'd only dreamt of more car storage for sp, but to be able to have this much and wherever you want is just.. awesome.
I've seen it working in a video posted in this thread and I'm envious of using it, but despite much messing around, I can't get it to work..

The LUA script plugin initially linked here https://www.gta5-mods.com/scripts/szabo-s-persistance-modturned out to be the SDK version, which while the trainer worked, the mod didn't, I thought this may have been the issue
So I had to find and download the non sdk version I found through here: http://gtauniverse.com/index.php?mods/lua-plugin-for-script-hook-v.20/

I wasn't using any other mods, but I did move the other default plugins that comes with the script hook, just in case, still nothing.

I got your mod from gta5mods, as linked above - 0.0.1.06b
I tried both the script hook that you linked in the gta5mods page, as well as the newest version I could find here - https://www.gta5-mods.com/tools/script-hook-v

Still nothing.
I'm wondering if it's possible that it's my write permissions on the folder (if that has anything to do with it?) I keep trying to take it off read only but despite having a take ownership script, and despite being an admin, the folder seems to keep defaulting back to read only, and I don't see any files written to the folder I've designated.

I've also tried putting in different buttons for the save key, but it still just acts as if the mod isn't even there. I'm not sure if it's your mod I'm struggling to get working, or it could be the actual lua hook, as I don't have other lua mods to know if that's working either. Initially I'd just changed the name in your default savepath from Alan to my name, but that didn't work either.

I deleted your guideline comments in this code box for brevity sake.

local savekey = 45local reloadkey = 110local disablemodkey = 109local modenabled = true -- SET TO false if you don't want the persistence to be enabled by default - does not affect savedlocal savepath = "C:/Users/Andrew/Documents/Rockstar Games/GTA V/szabo persistance/"local platetext = "MYPLATE"local useplates = true --change to false if you don't want the plates to change

Hope someone/you can help me, I'd love to get this working.

 

Link to comment
Share on other sites

headscript

It seems that, unfortunately, this mod is not compatible with GTALua =(

Both mods should be able to run fine together as their using 2 different folders
Link to comment
Share on other sites

So, I recently noticed that vehicle style variants (body styles) don't get saved, not a huge deal but a little annoying. (I.E. Mesa with rollbars, or hardtop, etc). Not sure if it's possible to fix, but I thought I should mention it just in case you weren't aware.

Edited by agent17
Link to comment
Share on other sites

Thank you guys.

Hey man, nice mod!

I just downloaded it today and got a bug while playing, whenever i want to get one one of the cars i saved i "jump" out of it.

9E8.png

Hope you can fix it with that, let me know if you need more data or something like that.

 

In case you cant see the image, i get the error on the console

 

"tick: scripts/addins/szabopersist.lua 290 error in function 'get_blip_from_entity'

 

And also 'get_dictance_between_coords' instead of 'get_blip_from_entity'

 

The number (290) is also 630 sometimes

The image doesn't appear; no big deal though. Are your cars being saved correctly? Are you using the non-sdk version of the lua plugin? I don't know how those lines (i'm assuming it's 299 and 630 since 290 has nothing related to blip) can go wrong, unless other mod or something is messing with the data...

 

Hi Szabo, first of all credit for executing such a good idea. I'd only dreamt of more car storage for sp, but to be able to have this much and wherever you want is just.. awesome.

I've seen it working in a video posted in this thread and I'm envious of using it, but despite much messing around, I can't get it to work..

 

The LUA script plugin initially linked here https://www.gta5-mods.com/scripts/szabo-s-persistance-modturned out to be the SDK version, which while the trainer worked, the mod didn't, I thought this may have been the issue

So I had to find and download the non sdk version I found through here: http://gtauniverse.com/index.php?mods/lua-plugin-for-script-hook-v.20/

 

I wasn't using any other mods, but I did move the other default plugins that comes with the script hook, just in case, still nothing.

 

I got your mod from gta5mods, as linked above - 0.0.1.06b

I tried both the script hook that you linked in the gta5mods page, as well as the newest version I could find here - https://www.gta5-mods.com/tools/script-hook-v

 

Still nothing.

I'm wondering if it's possible that it's my write permissions on the folder (if that has anything to do with it?) I keep trying to take it off read only but despite having a take ownership script, and despite being an admin, the folder seems to keep defaulting back to read only, and I don't see any files written to the folder I've designated.

 

I've also tried putting in different buttons for the save key, but it still just acts as if the mod isn't even there. I'm not sure if it's your mod I'm struggling to get working, or it could be the actual lua hook, as I don't have other lua mods to know if that's working either. Initially I'd just changed the name in your default savepath from Alan to my name, but that didn't work either.

 

I deleted your guideline comments in this code box for brevity sake.

local savekey = 45local reloadkey = 110local disablemodkey = 109local modenabled = true -- SET TO false if you don't want the persistence to be enabled by default - does not affect savedlocal savepath = "C:/Users/Andrew/Documents/Rockstar Games/GTA V/szabo persistance/"local platetext = "MYPLATE"local useplates = true --change to false if you don't want the plates to change
Hope someone/you can help me, I'd love to get this working.

 

If nothing happens when you press the save key and/or when you launch the game you don't see 'szabos persistance mod' on the top of the screen, then something is wrong with your install... make sure the lua plugin binary is in the GTA root folder and the script is in /scripts/addins, also, make sure there's a scripts/main.lua there.

 

So, I recently noticed that vehicle style variants (body styles) don't get saved, not a huge deal but a little annoying. (I.E. Mesa with rollbars, or hardtop, etc). Not sure if it's possible to fix, but I thought I should mention it just in case you weren't aware.

Yeah, I noticed that too... the corvette classic gets random roof :(. That's another datum it's not saving, along with plates styles (it's gonna work after lua plugin is updated though) and neons. Edited by Szabo
Link to comment
Share on other sites

Thank you guys.

Hey man, nice mod!

I just downloaded it today and got a bug while playing, whenever i want to get one one of the cars i saved i "jump" out of it.

9E8.png

Hope you can fix it with that, let me know if you need more data or something like that.

 

In case you cant see the image, i get the error on the console

 

"tick: scripts/addins/szabopersist.lua 290 error in function 'get_blip_from_entity'

 

And also 'get_dictance_between_coords' instead of 'get_blip_from_entity'

 

The number (290) is also 630 sometimes

The image doesn't appear; no big deal though. Are your cars being saved correctly? Are you using the non-sdk version of the lua plugin? I don't know how those lines (i'm assuming it's 299 and 630 since 290 has nothing related to blip) can go wrong, unless other mod or something is messing with the data...

 

Yeah, the mod was working fine untill i saved another car, then whenever i tried to enter any of the saved cars, the player "jumps" out of the car.

Also, the cmd spams those errors whenever i get close to any of these saved cars.

I only installed the Hook script and lua script. I deleted native trainer from the addins folder

I just checked and i cant save cars

Edited by Toom52
Link to comment
Share on other sites

 

Hi Szabo, first of all credit for executing such a good idea. I'd only dreamt of more car storage for sp, but to be able to have this much and wherever you want is just.. awesome.

I've seen it working in a video posted in this thread and I'm envious of using it, but despite much messing around, I can't get it to work..

 

The LUA script plugin initially linked here https://www.gta5-mods.com/scripts/szabo-s-persistance-modturned out to be the SDK version, which while the trainer worked, the mod didn't, I thought this may have been the issue

So I had to find and download the non sdk version I found through here: http://gtauniverse.com/index.php?mods/lua-plugin-for-script-hook-v.20/

 

I wasn't using any other mods, but I did move the other default plugins that comes with the script hook, just in case, still nothing.

 

I got your mod from gta5mods, as linked above - 0.0.1.06b

I tried both the script hook that you linked in the gta5mods page, as well as the newest version I could find here - https://www.gta5-mods.com/tools/script-hook-v

 

Still nothing.

I'm wondering if it's possible that it's my write permissions on the folder (if that has anything to do with it?) I keep trying to take it off read only but despite having a take ownership script, and despite being an admin, the folder seems to keep defaulting back to read only, and I don't see any files written to the folder I've designated.

 

I've also tried putting in different buttons for the save key, but it still just acts as if the mod isn't even there. I'm not sure if it's your mod I'm struggling to get working, or it could be the actual lua hook, as I don't have other lua mods to know if that's working either. Initially I'd just changed the name in your default savepath from Alan to my name, but that didn't work either.

 

I deleted your guideline comments in this code box for brevity sake.

local savekey = 45local reloadkey = 110local disablemodkey = 109local modenabled = true -- SET TO false if you don't want the persistence to be enabled by default - does not affect savedlocal savepath = "C:/Users/Andrew/Documents/Rockstar Games/GTA V/szabo persistance/"local platetext = "MYPLATE"local useplates = true --change to false if you don't want the plates to change
Hope someone/you can help me, I'd love to get this working.

 

If nothing happens when you press the save key and/or when you launch the game you don't see 'szabos persistance mod' on the top of the screen, then something is wrong with your install... make sure the lua plugin binary is in the GTA root folder and the script is in /scripts/addins, also, make sure there's a scripts/main.lua there.

 

 

The same happens to me, and I'm sure everything is installed correctly. I tried to use other lua mods and they work fine, but it's like this one isn't even there. Am I missing something here?

Link to comment
Share on other sites

 

 

Hi Szabo, first of all credit for executing such a good idea. I'd only dreamt of more car storage for sp, but to be able to have this much and wherever you want is just.. awesome.

I've seen it working in a video posted in this thread and I'm envious of using it, but despite much messing around, I can't get it to work..

 

The LUA script plugin initially linked here https://www.gta5-mods.com/scripts/szabo-s-persistance-modturned out to be the SDK version, which while the trainer worked, the mod didn't, I thought this may have been the issue

So I had to find and download the non sdk version I found through here: http://gtauniverse.com/index.php?mods/lua-plugin-for-script-hook-v.20/

 

I wasn't using any other mods, but I did move the other default plugins that comes with the script hook, just in case, still nothing.

 

I got your mod from gta5mods, as linked above - 0.0.1.06b

I tried both the script hook that you linked in the gta5mods page, as well as the newest version I could find here - https://www.gta5-mods.com/tools/script-hook-v

 

Still nothing.

I'm wondering if it's possible that it's my write permissions on the folder (if that has anything to do with it?) I keep trying to take it off read only but despite having a take ownership script, and despite being an admin, the folder seems to keep defaulting back to read only, and I don't see any files written to the folder I've designated.

 

I've also tried putting in different buttons for the save key, but it still just acts as if the mod isn't even there. I'm not sure if it's your mod I'm struggling to get working, or it could be the actual lua hook, as I don't have other lua mods to know if that's working either. Initially I'd just changed the name in your default savepath from Alan to my name, but that didn't work either.

 

I deleted your guideline comments in this code box for brevity sake.

local savekey = 45local reloadkey = 110local disablemodkey = 109local modenabled = true -- SET TO false if you don't want the persistence to be enabled by default - does not affect savedlocal savepath = "C:/Users/Andrew/Documents/Rockstar Games/GTA V/szabo persistance/"local platetext = "MYPLATE"local useplates = true --change to false if you don't want the plates to change
Hope someone/you can help me, I'd love to get this working.

 

If nothing happens when you press the save key and/or when you launch the game you don't see 'szabos persistance mod' on the top of the screen, then something is wrong with your install... make sure the lua plugin binary is in the GTA root folder and the script is in /scripts/addins, also, make sure there's a scripts/main.lua there.

 

 

The same happens to me, and I'm sure everything is installed correctly. I tried to use other lua mods and they work fine, but it's like this one isn't even there. Am I missing something here?

 

I had the same problem then I realized that under the local savepath I had one free space too much due to how I edited the address (copy&paste) after making sure there is only one space left, the mod loaded properly.

eg:

local savepath = "D:/SteamLibrary/SteamApps/common/Grand Theft Auto V/scripts/addins"
-- CHOOSE A COOL TEXT TO APPEAR IN THE LICENSE PLATES OF YOUR SAVED VEHICLES! (Max. 8 dig.)
^ this is how it should be
local savepath = "D:/SteamLibrary/SteamApps/common/Grand Theft Auto V/scripts/addins"
-- CHOOSE A COOL TEXT TO APPEAR IN THE LICENSE PLATES OF YOUR SAVED VEHICLES! (Max. 8 dig.)

^ this is how it shouldn't be

Edited by lolleroz
Link to comment
Share on other sites

 

 

 

Hi Szabo, first of all credit for executing such a good idea. I'd only dreamt of more car storage for sp, but to be able to have this much and wherever you want is just.. awesome.

I've seen it working in a video posted in this thread and I'm envious of using it, but despite much messing around, I can't get it to work..

 

The LUA script plugin initially linked here https://www.gta5-mods.com/scripts/szabo-s-persistance-modturned out to be the SDK version, which while the trainer worked, the mod didn't, I thought this may have been the issue

So I had to find and download the non sdk version I found through here: http://gtauniverse.com/index.php?mods/lua-plugin-for-script-hook-v.20/

 

I wasn't using any other mods, but I did move the other default plugins that comes with the script hook, just in case, still nothing.

 

I got your mod from gta5mods, as linked above - 0.0.1.06b

I tried both the script hook that you linked in the gta5mods page, as well as the newest version I could find here - https://www.gta5-mods.com/tools/script-hook-v

 

Still nothing.

I'm wondering if it's possible that it's my write permissions on the folder (if that has anything to do with it?) I keep trying to take it off read only but despite having a take ownership script, and despite being an admin, the folder seems to keep defaulting back to read only, and I don't see any files written to the folder I've designated.

 

I've also tried putting in different buttons for the save key, but it still just acts as if the mod isn't even there. I'm not sure if it's your mod I'm struggling to get working, or it could be the actual lua hook, as I don't have other lua mods to know if that's working either. Initially I'd just changed the name in your default savepath from Alan to my name, but that didn't work either.

 

I deleted your guideline comments in this code box for brevity sake.

local savekey = 45local reloadkey = 110local disablemodkey = 109local modenabled = true -- SET TO false if you don't want the persistence to be enabled by default - does not affect savedlocal savepath = "C:/Users/Andrew/Documents/Rockstar Games/GTA V/szabo persistance/"local platetext = "MYPLATE"local useplates = true --change to false if you don't want the plates to change
Hope someone/you can help me, I'd love to get this working.

 

If nothing happens when you press the save key and/or when you launch the game you don't see 'szabos persistance mod' on the top of the screen, then something is wrong with your install... make sure the lua plugin binary is in the GTA root folder and the script is in /scripts/addins, also, make sure there's a scripts/main.lua there.

 

 

The same happens to me, and I'm sure everything is installed correctly. I tried to use other lua mods and they work fine, but it's like this one isn't even there. Am I missing something here?

 

I had the same problem then I realized that under the local savepath I had one free space too much due to how I edited the address (copy&paste) after making sure there is only one space left, the mod loaded properly.

eg:

local savepath = "D:/SteamLibrary/SteamApps/common/Grand Theft Auto V/scripts/addins"
-- CHOOSE A COOL TEXT TO APPEAR IN THE LICENSE PLATES OF YOUR SAVED VEHICLES! (Max. 8 dig.)
^ this is how it should be
local savepath = "D:/SteamLibrary/SteamApps/common/Grand Theft Auto V/scripts/addins"
-- CHOOSE A COOL TEXT TO APPEAR IN THE LICENSE PLATES OF YOUR SAVED VEHICLES! (Max. 8 dig.)

^ this is how it shouldn't be

 

 

I don't have this extra space.

-- CONFIGURE THE KEYS BELOW. Further down you find a list of the codeslocal savekey = 107local reloadkey = 109local disablemodkey = 110local modenabled = true -- SET TO false if you don't want the persistence to be enabled by default - does not affect saved						--vehicles, this only applies to the 'persistent' ones you drove, which can cause problems in missions-- CONFIGURE THE PATH WHERE THE FILE WILL BE SAVED. NOTE: Make sure Windows allows writing there.-- 99.9% of the problems will be due bad data on the line below OR Windows permissions nonsense.-- IMPORTANT!: Double-check the slashes (/) (they're NOT backslashes (\) ) and the LAST SLASH too!-- IMPORTANT!: The path must be between quotation marks ("). Use the default value for reference.local savepath = "C:/Users/JoaoFreitas/Documents/Rockstar Games/SzabosPersistance/"-- CHOOSE A COOL TEXT TO APPEAR IN THE LICENSE PLATES OF YOUR SAVED VEHICLES! (Max. 8 dig.)-- IMPORTANT!: The text must be between quotation marks ("). Use the default value for reference.local platetext = "BLINDAO"local useplates = true --change to false if you don't want the plates to change

Is there something wrong with my file? Or am I missing any files? I didn't changed anything more than that.

 

With GTAV.exe I have:

LUA.asi

ScriptHookV.dll

dinput8.dll

Scripts/main.lua

Scripts/addins/szabopersist.lua

Scripts/libs/GUI.lua

Link to comment
Share on other sites

Amazing mod, Szabo! I'm guessing Rockstar *accidentally* let some of the console optimizations in, because every car you turn the camera away from despawns in two seconds.

 

I have a suggestion / request: Is it possible to store the license plate of each saved vehicle? Thanks to this mod, we can easily change it without using the mobile app, and I believe it would add to the greatness of this mod.

Link to comment
Share on other sites

ShidaPenns

I have a suggestion / request: Is it possible to store the license plate of each saved vehicle? Thanks to this mod, we can easily change it without using the mobile app, and I believe it would add to the greatness of this mod.

 

Yeah, that would be awesome. I've saved unique vehicles from missions, but they lose their unique license plate...

Link to comment
Share on other sites

levandoski

Thank you guys.

Hey man, nice mod!

I just downloaded it today and got a bug while playing, whenever i want to get one one of the cars i saved i "jump" out of it.

9E8.png

Hope you can fix it with that, let me know if you need more data or something like that.

 

In case you cant see the image, i get the error on the console

 

"tick: scripts/addins/szabopersist.lua 290 error in function 'get_blip_from_entity'

 

And also 'get_dictance_between_coords' instead of 'get_blip_from_entity'

 

The number (290) is also 630 sometimes

The image doesn't appear; no big deal though. Are your cars being saved correctly? Are you using the non-sdk version of the lua plugin? I don't know how those lines (i'm assuming it's 299 and 630 since 290 has nothing related to blip) can go wrong, unless other mod or something is messing with the data...

 

Hi Szabo, first of all credit for executing such a good idea. I'd only dreamt of more car storage for sp, but to be able to have this much and wherever you want is just.. awesome.

I've seen it working in a video posted in this thread and I'm envious of using it, but despite much messing around, I can't get it to work..

 

The LUA script plugin initially linked here https://www.gta5-mods.com/scripts/szabo-s-persistance-modturned out to be the SDK version, which while the trainer worked, the mod didn't, I thought this may have been the issue

So I had to find and download the non sdk version I found through here: http://gtauniverse.com/index.php?mods/lua-plugin-for-script-hook-v.20/

 

I wasn't using any other mods, but I did move the other default plugins that comes with the script hook, just in case, still nothing.

 

I got your mod from gta5mods, as linked above - 0.0.1.06b

I tried both the script hook that you linked in the gta5mods page, as well as the newest version I could find here - https://www.gta5-mods.com/tools/script-hook-v

 

Still nothing.

I'm wondering if it's possible that it's my write permissions on the folder (if that has anything to do with it?) I keep trying to take it off read only but despite having a take ownership script, and despite being an admin, the folder seems to keep defaulting back to read only, and I don't see any files written to the folder I've designated.

 

I've also tried putting in different buttons for the save key, but it still just acts as if the mod isn't even there. I'm not sure if it's your mod I'm struggling to get working, or it could be the actual lua hook, as I don't have other lua mods to know if that's working either. Initially I'd just changed the name in your default savepath from Alan to my name, but that didn't work either.

 

I deleted your guideline comments in this code box for brevity sake.

local savekey = 45local reloadkey = 110local disablemodkey = 109local modenabled = true -- SET TO false if you don't want the persistence to be enabled by default - does not affect savedlocal savepath = "C:/Users/Andrew/Documents/Rockstar Games/GTA V/szabo persistance/"local platetext = "MYPLATE"local useplates = true --change to false if you don't want the plates to change
Hope someone/you can help me, I'd love to get this working.

 

If nothing happens when you press the save key and/or when you launch the game you don't see 'szabos persistance mod' on the top of the screen, then something is wrong with your install... make sure the lua plugin binary is in the GTA root folder and the script is in /scripts/addins, also, make sure there's a scripts/main.lua there.

 

Well, I've checked my install a number of times and it all seems to be right to the instructions. However, I tried another lua mod https://www.gta5-mods.com/scripts/immersivehudand that didn't seem to load/function either, which tells me it's not a problem with your mod, but something to do with my lua script hook. I can clearly load .asi fine as I've got the trainer working, but it seems for whatever reason, despite trying a few different downloads, it's not liking the lua hook I'm using.

 

Link to comment
Share on other sites

Well, I've checked my install a number of times and it all seems to be right to the instructions. However, I tried another lua mod https://www.gta5-mods.com/scripts/immersivehudand that didn't seem to load/function either, which tells me it's not a problem with your mod, but something to do with my lua script hook. I can clearly load .asi fine as I've got the trainer working, but it seems for whatever reason, despite trying a few different downloads, it's not liking the lua hook I'm using.

 

 

Hi Szabo, first of all credit for executing such a good idea. I'd only dreamt of more car storage for sp, but to be able to have this much and wherever you want is just.. awesome.

I've seen it working in a video posted in this thread and I'm envious of using it, but despite much messing around, I can't get it to work..

 

The LUA script plugin initially linked here https://www.gta5-mods.com/scripts/szabo-s-persistance-modturned out to be the SDK version, which while the trainer worked, the mod didn't, I thought this may have been the issue

So I had to find and download the non sdk version I found through here: http://gtauniverse.com/index.php?mods/lua-plugin-for-script-hook-v.20/

 

I wasn't using any other mods, but I did move the other default plugins that comes with the script hook, just in case, still nothing.

 

I got your mod from gta5mods, as linked above - 0.0.1.06b

I tried both the script hook that you linked in the gta5mods page, as well as the newest version I could find here - https://www.gta5-mods.com/tools/script-hook-v

 

Still nothing.

I'm wondering if it's possible that it's my write permissions on the folder (if that has anything to do with it?) I keep trying to take it off read only but despite having a take ownership script, and despite being an admin, the folder seems to keep defaulting back to read only, and I don't see any files written to the folder I've designated.

 

I've also tried putting in different buttons for the save key, but it still just acts as if the mod isn't even there. I'm not sure if it's your mod I'm struggling to get working, or it could be the actual lua hook, as I don't have other lua mods to know if that's working either. Initially I'd just changed the name in your default savepath from Alan to my name, but that didn't work either.

 

I deleted your guideline comments in this code box for brevity sake.

local savekey = 45local reloadkey = 110local disablemodkey = 109local modenabled = true -- SET TO false if you don't want the persistence to be enabled by default - does not affect savedlocal savepath = "C:/Users/Andrew/Documents/Rockstar Games/GTA V/szabo persistance/"local platetext = "MYPLATE"local useplates = true --change to false if you don't want the plates to change
Hope someone/you can help me, I'd love to get this working.

 

If nothing happens when you press the save key and/or when you launch the game you don't see 'szabos persistance mod' on the top of the screen, then something is wrong with your install... make sure the lua plugin binary is in the GTA root folder and the script is in /scripts/addins, also, make sure there's a scripts/main.lua there.

 

 

 

As a matter of fact, now that you've stated that, the .asi works fine, but I tried another lua scripts and they don't work as well. So it's really not this mod, it's the hook I believe. I don't know what to do now. Somebody can give a hand?

 

 

EDIT: Got it to work. Just download and install vcredist_x64 here and everything will run smoothly.

Edited by flekgenos
Link to comment
Share on other sites

levandoski

 

Well, I've checked my install a number of times and it all seems to be right to the instructions. However, I tried another lua mod https://www.gta5-mods.com/scripts/immersivehudand that didn't seem to load/function either, which tells me it's not a problem with your mod, but something to do with my lua script hook. I can clearly load .asi fine as I've got the trainer working, but it seems for whatever reason, despite trying a few different downloads, it's not liking the lua hook I'm using.

 

 

Hi Szabo, first of all credit for executing such a good idea. I'd only dreamt of more car storage for sp, but to be able to have this much and wherever you want is just.. awesome.

I've seen it working in a video posted in this thread and I'm envious of using it, but despite much messing around, I can't get it to work..

 

The LUA script plugin initially linked here https://www.gta5-mods.com/scripts/szabo-s-persistance-modturned out to be the SDK version, which while the trainer worked, the mod didn't, I thought this may have been the issue

So I had to find and download the non sdk version I found through here: http://gtauniverse.com/index.php?mods/lua-plugin-for-script-hook-v.20/

 

I wasn't using any other mods, but I did move the other default plugins that comes with the script hook, just in case, still nothing.

 

I got your mod from gta5mods, as linked above - 0.0.1.06b

I tried both the script hook that you linked in the gta5mods page, as well as the newest version I could find here - https://www.gta5-mods.com/tools/script-hook-v

 

Still nothing.

I'm wondering if it's possible that it's my write permissions on the folder (if that has anything to do with it?) I keep trying to take it off read only but despite having a take ownership script, and despite being an admin, the folder seems to keep defaulting back to read only, and I don't see any files written to the folder I've designated.

 

I've also tried putting in different buttons for the save key, but it still just acts as if the mod isn't even there. I'm not sure if it's your mod I'm struggling to get working, or it could be the actual lua hook, as I don't have other lua mods to know if that's working either. Initially I'd just changed the name in your default savepath from Alan to my name, but that didn't work either.

 

I deleted your guideline comments in this code box for brevity sake.

local savekey = 45local reloadkey = 110local disablemodkey = 109local modenabled = true -- SET TO false if you don't want the persistence to be enabled by default - does not affect savedlocal savepath = "C:/Users/Andrew/Documents/Rockstar Games/GTA V/szabo persistance/"local platetext = "MYPLATE"local useplates = true --change to false if you don't want the plates to change
Hope someone/you can help me, I'd love to get this working.

 

If nothing happens when you press the save key and/or when you launch the game you don't see 'szabos persistance mod' on the top of the screen, then something is wrong with your install... make sure the lua plugin binary is in the GTA root folder and the script is in /scripts/addins, also, make sure there's a scripts/main.lua there.

 

 

 

As a matter of fact, now that you've stated that, the .asi works fine, but I tried another lua scripts and they don't work as well. So it's really not this mod, it's the hook I believe. I don't know what to do now. Somebody can give a hand?

 

 

EDIT: Got it to work. Just download and install vcredist_x64 here and everything will run smoothly.

 

Oh my god THANK YOU. It works!

Link to comment
Share on other sites

Amazing mod, Szabo! I'm guessing Rockstar *accidentally* let some of the console optimizations in, because every car you turn the camera away from despawns in two seconds.

 

I have a suggestion / request: Is it possible to store the license plate of each saved vehicle? Thanks to this mod, we can easily change it without using the mobile app, and I believe it would add to the greatness of this mod.

 

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?

Link to comment
Share on other sites

Thanks guys. Sorry my lack of attention.

 

Amazing mod, Szabo! I'm guessing Rockstar *accidentally* let some of the console optimizations in, because every car you turn the camera away from despawns in two seconds.

 

I have a suggestion / request: Is it possible to store the license plate of each saved vehicle? Thanks to this mod, we can easily change it without using the mobile app, and I believe it would add to the greatness of this mod.

 

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.

Edited by Szabo
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.