Advertisement
sargefan767

Config

Nov 20th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 0 0
  1. --[[
  2. Added another check for fetching stock values, it will now print in server console for which stock it fails to get values for
  3.  
  4. Configs added:
  5. Made Yahoos stock a fake one, since real one isn't available anymore
  6. ]]
  7.  
  8. TBFY_STOCKMConfig = TBFY_STOCKMConfig or {}
  9.  
  10. --Contact me on SF for help to translate
  11. --Languages available:
  12. --[[
  13. English
  14. French
  15. Korean
  16. Spanish
  17. ]]
  18. TBFY_STOCKMConfig.LanguageToUse = "English"
  19. //The stocks to track, NOTE: these are REAL LIFE stocks, the stock must be the same as IRL
  20. TBFY_STOCKMConfig.Stocks = {
  21. [1] = {Name = "Test1", Stock = "", RealStock = false, StartValue = 1000, RealOpenTimes = false}, --Seems like Yahoos stock isn't available anymore
  22. [2] = {Name = "Test2", Stock = "AAPL", RealStock = false},
  23. [3] = {Name = "Test3", Stock = "FB", RealStock = false},
  24. [4] = {Name = "Test4", Stock = "MSFT", RealStock = false},
  25. [5] = {Name = "Test5", Stock = "NTDOY", RealStock = false},
  26. [6] = {Name = "Test6", Stock = "SNE", RealStock = false},
  27. [7] = {Name = "Test7", Stock = "MCD", RealStock = false},
  28. [8] = {Name = "Test8", Stock = "NOK", RealStock = false},
  29. [9] = {Name = "Test9", Stock = "GOOGL", RealStock = false},
  30. [10] = {Name = "Test10", Stock = "NVDA", RealStock = false},
  31. [11] = {Name = "Test11", Stock = "EBAY", RealStock = false},
  32. //Fake ones needs to have a start value - this is only set on first startup after its added, after that it will use the saved data
  33. //If RealOpenTimes is set to true, the stock will change values when the REAL stock market is open, if set to false it will update values every 5 mins
  34. [12] = {Name = "ToBaddie LTD", Stock = "TBFY", RealStock = false, StartValue = 500, RealOpenTimes = false},
  35. [13] = {Name = "Gmodstore", Stock = "GMSTO", RealStock = false, StartValue = 150, RealOpenTimes = true},
  36. }
  37. //Maximum amount of stocks you can buy/own
  38. TBFY_STOCKMConfig.MaxStocks = 500
  39. //Who can access admin commands
  40. TBFY_STOCKMConfig.AdminAccessCustomCheck = function(Player) return Player:IsSuperAdmin() end
  41. //This seems to cause issues to some when set to true, if you have issues set this to false
  42. TBFY_STOCKMConfig.RespawnAfterCleanUp = true
  43. //If this is set to true, server will run think hook and timers even though no players are online
  44. //This is required to be set to true if you want stocks to update even though no players are online
  45. //Recommended to have this to true
  46. TBFY_STOCKMConfig.AlwaysUpdate = true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement