Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- using PackageIO;
- namespace Game_Save_Editor
- {
- public partial class Form1 : MetroFramework.Forms.MetroForm
- {
- public static long Money;
- public static string filepath;
- public Form1()
- {
- InitializeComponent();
- }
- private void openSAVToolStripMenuItem_Click(object sender, EventArgs e)
- {
- OpenFileDialog open = new OpenFileDialog();
- open.Title = "Open GTA V .SAV File";
- open.ShowDialog();
- filepath = open.FileName;
- ReadFile();
- }
- private static void ReadFile()
- {
- try { PackageIO.Reader reader = new PackageIO.Reader(filepath, PackageIO.Endian.Big); reader.Position = 336568; Money = reader.Position; }
- catch { MessageBox.Show("Fail"); }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement