snapmatic
v1.1.0
Published
Read GTA V Snapmatic pictures
Downloads
3
Readme
Snapmatic
With this package you can get information of GTA V Snapmatic pictures like Title, Description and the location.
Example
Code
const Snapmatic = require("snapmatic");
new Snapmatic("file Path here", (err, data) => {
console.log("Title:",data.IPictureTitle);
console.log("Desc:",data.IPictureDesc);
console.log("Header:", data.IPictureHeader);
console.log("Data:", data.ISnapmatic);
// Save the Image
data.saveToFile("image.jpg", function(err){
if(err == null)
console.log("Saved.");
});
});
Return
Title: Strawberry
Desc:
Header: 10/18/17 06:32:02
Data: {
loc: { x: 272.25247, y: -1267.22839, z: 29.14291 },
area: 'STRAW',
street: 0,
nm: '',
rds: '',
scr: 1,
sid: '0x0',
crewid: 0,
mid: '',
mode: 'SP',
meme: false,
mug: false,
uid: 0,
time: { hour: 0, minute: 0, second: 0, day: 8, month: 4, year: 12 },
creat: 0,
slf: false,
drctr: false,
rsedtr: false
}
Variables & Functions
// Returns the Title
Snapmatic.IPictureTitle: String
// Returns the Description
Snapmatic.IPictureDesc: String
// Returns the Snapmatic Header
Snapmatic.IPictureHeader: String
// Returns the Snapmatic Data
Snapmatic.ISnapmatic: JSON
// Returns the raw JPEG Buffer
Snapmatic.IJPEGImage: Buffer
// Returns a Base64 Image
Snapmatic.getBase64Image(): String
// Save JPEG to file
Snapmtic.saveToFile(path: String, callback: (err: Error) => any)