pro hacker file functions (pHackerFiles)
Code:
local function SaveTableToFile(tblTable, strFileName)
if (1 > table["Count"](tblTable)) then
return false
else
local strjFile = util["TableToJSON"](tblTable)
if (!strjFile || !isstring(strjFile) || 10 > strjFile:len()) then
return false
end
file["Write"](strFileName, strjFile)
return true
end
return false
end
local function GetTableFromFile(strFileName)
local strFile = file["Read"](strFileName, "DATA")
if (!strFile || !isstring(strFile) || 10 > strFile:len()) then
return false
else
local tblFile = util["JSONToTable"](strFile)
if (!tblFile || !istable(tblFiles) || 1 >= table["Count"](tblFile)) then
return false
end
return tblFile
end
return false
end
copyright (C) autism enforcer at MPGH!!!!!!!! I WIL DMCA U IF YOUJ THINK ABOUT POST THIS ON OTHER SITE IT IS LICENSE WITH DMCA COPYRIGHT !