Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Added another check for fetching stock values, it will now print in server console for which stock it fails to get values for
- Configs added:
- Made Yahoos stock a fake one, since real one isn't available anymore
- ]]
- TBFY_STOCKMConfig = TBFY_STOCKMConfig or {}
- --Contact me on SF for help to translate
- --Languages available:
- --[[
- English
- French
- Korean
- Spanish
- ]]
- TBFY_STOCKMConfig.LanguageToUse = "English"
- //The stocks to track, NOTE: these are REAL LIFE stocks, the stock must be the same as IRL
- TBFY_STOCKMConfig.Stocks = {
- [1] = {Name = "Test1", Stock = "", RealStock = false, StartValue = 1000, RealOpenTimes = false}, --Seems like Yahoos stock isn't available anymore
- [2] = {Name = "Test2", Stock = "AAPL", RealStock = false},
- [3] = {Name = "Test3", Stock = "FB", RealStock = false},
- [4] = {Name = "Test4", Stock = "MSFT", RealStock = false},
- [5] = {Name = "Test5", Stock = "NTDOY", RealStock = false},
- [6] = {Name = "Test6", Stock = "SNE", RealStock = false},
- [7] = {Name = "Test7", Stock = "MCD", RealStock = false},
- [8] = {Name = "Test8", Stock = "NOK", RealStock = false},
- [9] = {Name = "Test9", Stock = "GOOGL", RealStock = false},
- [10] = {Name = "Test10", Stock = "NVDA", RealStock = false},
- [11] = {Name = "Test11", Stock = "EBAY", RealStock = false},
- //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
- //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
- [12] = {Name = "ToBaddie LTD", Stock = "TBFY", RealStock = false, StartValue = 500, RealOpenTimes = false},
- [13] = {Name = "Gmodstore", Stock = "GMSTO", RealStock = false, StartValue = 150, RealOpenTimes = true},
- }
- //Maximum amount of stocks you can buy/own
- TBFY_STOCKMConfig.MaxStocks = 500
- //Who can access admin commands
- TBFY_STOCKMConfig.AdminAccessCustomCheck = function(Player) return Player:IsSuperAdmin() end
- //This seems to cause issues to some when set to true, if you have issues set this to false
- TBFY_STOCKMConfig.RespawnAfterCleanUp = true
- //If this is set to true, server will run think hook and timers even though no players are online
- //This is required to be set to true if you want stocks to update even though no players are online
- //Recommended to have this to true
- TBFY_STOCKMConfig.AlwaysUpdate = true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement