Advertisement
Marlingaming

Client App Settings Editor

Jan 21st, 2022
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. local tArg = {...}
  2.  
  3.  
  4.  
  5. local Name = tArg[1]
  6. local Path = tArg[2]
  7.  
  8. settings.load(".settings")
  9. local AppNames = settings.get("ClientApps_Names")
  10. local AppPaths = settings.get("ClientApps_Paths")
  11. AppNames[#AppNames + 1] = Name
  12. AppPaths[#AppPaths + 1] = Path
  13. settings.set("ClientApps_Names",AppNames)
  14. settings.set("ClientApps_Names",AppPaths)
  15. settings.save(".settings")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement