Advertisement
MjnMixael

Untitled

Mar 18th, 2014
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. --This is what you use in FRED to make a non-visible item visible. Single quotes!
  2. function jsi(tab, title)
  3.  
  4. local journalConfig = axemParse:ToTable("journal_config.cfg")
  5.  
  6. for i = 1, #journalConfig do
  7. if string.lower(tab) == string.lower(journalConfig[i].Name) then
  8. local fileName = ba.getCurrentPlayer():getName() .. "." .. string.lower(journalConfig[i].Name) .. ".status.cfg"
  9. local tabEntry = axemParse:ToTable(journalConfig[i].File)
  10.  
  11. for j = 1, #tabEntry do
  12. if string.lower(title) == string.lower(tabEntry[j].Title) then
  13. tabEntry[j].Visible = false
  14. Journal:SaveData(tabEntry, fileName)
  15. end
  16. end
  17.  
  18. end
  19. end
  20.  
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement