Advertisement
DarkNosS96

VNS Lucky Wheel config.lua

Jul 17th, 2021 (edited)
3,863
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.47 KB | None | 0 0
  1. Config  = {}
  2. Config.Locale = 'en'
  3. Config.ESX = 'esx:getShvnsbla2aredObjvnsbla2ect'
  4.  
  5. Config.DailySpin = false                -- If true it will let players to spin once per day
  6. Config.ResetSpin = {h = 17, m = 16} -- What time will reset the daily spins | Works only if Config.DailySpin is true
  7. Config.SpinMoney = 5000             -- How much will each spin cost | Works only if Config.DailySpin is false (player must have the money in inventory)
  8. Config.SpawnWheel = true            -- If your map does NOT have the wheel, set it to true. if your map has already a wheel set it to false
  9. Config.WheelPos = {x = 948.25, y = 63.44, z = 75.40, h = 59.0}  -- Where the wheel prop will spawn OR where wheel prop is
  10.  
  11. Config.VehiclePos = {x = 953.59, y = 69.89, z = 75.24, h = 254.5}
  12. Config.VehicleRot = true            -- If true then the vehicle will rotate slowly
  13. Config.VehicleWinPos = {x = 933.29, y = -3.33, z = 78.34, h = 149.51}   -- Where the vehicle will spawn if a player win it
  14.  
  15. Config.Cars = {
  16.     [1]  = 'deveste',
  17.     [2]  = 'italigto',
  18.     [3]  = 'osiris',
  19.     [4]  = 'nero2',
  20.     [5]  = 'tezeract',
  21.     [6]  = 'autarch',
  22.     [7]  = 'tyrant',
  23.     [8]  = 'visione',
  24.     [9]  = 'zentorno',
  25.     [10] = 'tempesta',
  26.     [11] = 'italirsx',
  27.     [12] = 'cheetah',
  28.     [13] = 'prototipo',
  29.     [14] = 'fmj',
  30. }
  31.  
  32.  
  33. -- First it will pick a random
  34. -- type: weapon, money, item, car (for money it will give only in bank)
  35. -- name: the DB name,
  36. -- count:
  37.  
  38. -- probability: the script will generate a number from 1 to 1000
  39. -- if the random number is between a and b player will win
  40. -- random number must be bigger than a and smaller or equal to b
  41. -- if rnd > a and rnd <= b
  42.  
  43. -- available sounds: 'car', 'cash', 'chips', 'clothes', 'mystery', 'win'
  44. Config.Prices = {
  45.     [1]  = {type = 'car',       name = 'car',           count = 1,      sound = 'car',      probability = {a =   0, b =   1}},  --  0.1 %   0.1 -- VEHICLE
  46.     [2]  = {type = 'item',      name = 'diamond',       count = 3,      sound = 'win',      probability = {a =   1, b =   5}},  --  0.4 %   0.5 -- 15.000 RP
  47.     [3]  = {type = 'item',      name = 'diamond',       count = 1,      sound = 'clothes',  probability = {a =   5, b =  10}},  --  0.5 %   1.0 -- CLOTHING
  48.     [4]  = {type = 'item',      name = 'zetony',        count = 25000,  sound = 'chips',    probability = {a =  10, b =  20}},  --  1.0 %   2.0 -- 25.000 chips
  49.     [5]  = {type = 'money',     name = 'money',         count = 40000,  sound = 'cash',     probability = {a =  20, b =  40}},  --  2.0 %   4.0 -- 40.000 $
  50.     [6]  = {type = 'item',      name = 'zetony',        count = 50000,  sound = 'win',      probability = {a =  40, b =  60}},  --  2.0 %   6.0 -- 10.000 RP
  51.     [7]  = {type = 'item',      name = 'zetony',        count = 30000,  sound = 'clothes',  probability = {a =  60, b =  80}},  --  4.0 %   8.0 -- CLOTHING
  52.     [8]  = {type = 'weapon',    name = 'weapon_pistol', count = 1,      sound = 'mystery',  probability = {a =  80, b = 120}},  --  4.0 %  12.0 -- MYSTERY
  53.     [9]  = {type = 'item',      name = 'zetony',        count = 20000,  sound = 'chips',    probability = {a = 120, b = 170}},  --  5.0 %  17.0 -- 20.000 chips
  54.     [10] = {type = 'money',     name = 'money',         count = 10000,  sound = 'win',      probability = {a = 170, b = 220}},  --  5.0 %  22.0 -- 7.500 RP
  55.     [11] = {type = 'item',      name = 'zetony',        count = 8000,   sound = 'clothes',  probability = {a = 220, b = 280}},  --  6.0 %  28.0 -- CLOTHING
  56.     [12] = {type = 'item',      name = 'zetony',        count = 15000,  sound = 'chips',    probability = {a = 280, b = 340}},  --  6.0 %  34.0 -- 15.000 chips
  57.     [13] = {type = 'money',     name = 'money',         count = 30000,  sound = 'cash',     probability = {a = 340, b = 410}},  --  7.0 %  41.0 -- 30.000 $
  58.     [14] = {type = 'money',     name = 'money',         count = 5000,   sound = 'win',      probability = {a = 410, b = 480}},  --  7.0 %  48.0 -- 5.000 RP
  59.     [15] = {type = 'item',      name = 'zetony',        count = 1000,   sound = 'win',      probability = {a = 480, b = 560}},  --  8.0 %  56.0 -- DISCOUNT
  60.     [16] = {type = 'item',      name = 'zetony',        count = 10000,  sound = 'chips',    probability = {a = 560, b = 640}},  --  8.0 %  64.0 -- 10.000 chips
  61.     [17] = {type = 'money',     name = 'money',         count = 20000,  sound = 'cash',     probability = {a = 640, b = 720}},  --  8.0 %  72.0 -- 20.000 $
  62.     [18] = {type = 'item',      name = 'scratchcard',   count = 3,      sound = 'win',      probability = {a = 720, b = 810}},  --  9.0 %  81.0 -- 2.500 RP
  63.     [19] = {type = 'item',      name = 'scratchcard',   count = 1,      sound = 'clothes',  probability = {a = 810, b = 900}},  --  9.0 %  90.0 -- CLOTHING
  64.     [20] = {type = 'money',     name = 'money',         count = 50000,  sound = 'cash',     probability = {a = 900, b = 1000}}, -- 10.0 % 100.0 -- 50.000 $
  65. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement