Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --This is what you use in FRED to make a non-visible item visible. Single quotes!
- function jsi(tab, title)
- local journalConfig = axemParse:ToTable("journal_config.cfg")
- for i = 1, #journalConfig do
- if string.lower(tab) == string.lower(journalConfig[i].Name) then
- local fileName = ba.getCurrentPlayer():getName() .. "." .. string.lower(journalConfig[i].Name) .. ".status.cfg"
- local tabEntry = axemParse:ToTable(journalConfig[i].File)
- for j = 1, #tabEntry do
- if string.lower(title) == string.lower(tabEntry[j].Title) then
- tabEntry[j].Visible = false
- Journal:SaveData(tabEntry, fileName)
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement