Advertisement
Guest User

Untitled

a guest
May 15th, 2023
526
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.63 KB | None | 0 0
  1. Config, Lang, Noti = {}, {}, {}
  2.  
  3. -- _____ _____ _ _ ______ _____ _____ _ _______ ___ _____ _____ _____ _ _
  4. -- / __ \ _ | \ | || ___|_ _| __ \ | | | ___ \/ _ \_ _|_ _| _ | \ | |
  5. -- | / \/ | | | \| || |_ | | | | \/ | | | |_/ / /_\ \| | | | | | | | \| |
  6. -- | | | | | | . ` || _| | | | | __| | | | /| _ || | | | | | | | . ` |
  7. -- | \__/\ \_/ / |\ || | _| |_| |_\ \ |_| | |\ \| | | || | _| |_\ \_/ / |\ |
  8. -- \____/\___/\_| \_/\_| \___/ \____/\___/\_| \_\_| |_/\_/ \___/ \___/\_| \_/
  9.  
  10. --Use "esx" or "qb"
  11. Config.Framework = "qb"
  12. --If you are using one of the most recent versions of ESX, set the script name. Default = "es_extended"
  13. Config.ESXExport = ""
  14. --Default ESX: "esx:getSharedObject" | Default QB: "qb-core"
  15. Config.Core = "qb-core"
  16. -- oxmysql, mysql-async or ghmattisql
  17. Config.Mysql = "oxmysql"
  18. --What day of the week do you want the drawings to take place?
  19. Config.weekday = "tuesday"
  20. --Price for the weekly raffle
  21. Config.weeklyTicketPrice = 2000
  22. --Price for scratch-off ticket
  23. Config.scratchTicketPrice = 500
  24. --Account where the tickets will be cashed and the money earned will be delivered to
  25. Config.account = "cash"
  26. --Discord webhook
  27. Config.Discord = "https://discord.com/api/webhooks/1107608298636709888/OUttX_PBuHM_HSIP-LupB5hkTqYb50r4yZ-zg046YVMSW_udXJjobKp8kkohj_AJG-Lp"
  28. --Prize money weekly ticket
  29. Config.weeklyPrizeMoney = math.random(10000, 50000)
  30. --Prize money scratch ticket
  31. Config.scratchPrizeMoney = math.random(1000, 5000)
  32. --Percentage chance of winning in scratch tickets
  33. Config.scratchWinPercentage = 100
  34. --Distance at which the prompt to open the purchase menu will appear
  35. Config.distanceToShowAlert = 1
  36. --Font used for the on-screen alert
  37. Config.alertTextFont = 4
  38. -- Activate if you want to use a targeting script instead of the on-screen prompt and the typical "Press E.."
  39. Config.useTarget = true
  40.  
  41. -- _ _ _____ _____ ___________ _____ _____ ___ _____ _____ _____ _ _ _____
  42. -- | \ | | _ |_ _|_ _| ___|_ _/ __ \ / _ \_ _|_ _| _ | \ | |/ ___|
  43. -- | \| | | | | | | | | | |_ | | | / \// /_\ \| | | | | | | | \| |\ `--.
  44. -- | . ` | | | | | | | | | _| | | | | | _ || | | | | | | | . ` | `--. \
  45. -- | |\ \ \_/ / | | _| |_| | _| |_| \__/\| | | || | _| |_\ \_/ / |\ |/\__/ /
  46. -- \_| \_/\___/ \_/ \___/\_| \___/ \____/\_| |_/\_/ \___/ \___/\_| \_/\____/
  47.  
  48. function notifications(notitype, message, time)
  49. --Change this trigger for your notification system keeping the variables
  50. TriggerEvent('codem-notification', message, time, notitype)
  51. end
  52.  
  53. --Notifications types:
  54. Noti.info = 'info'
  55. Noti.check = 'check'
  56. Noti.error = 'error'
  57.  
  58. --Notification time:
  59. Noti.time = 5000
  60.  
  61. -- _ ___ _ _ _____ _ _ ___ _____ _____
  62. -- | | / _ \ | \ | | __ \ | | |/ _ \| __ \| ___|
  63. -- | | / /_\ \| \| | | \/ | | / /_\ \ | \/| |__
  64. -- | | | _ || . ` | | __| | | | _ | | __ | __|
  65. -- | |____| | | || |\ | |_\ \ |_| | | | | |_\ \| |___
  66. -- \_____/\_| |_/\_| \_/\____/\___/\_| |_/\____/\____/
  67.  
  68. Lang.nomoney = "You don't have enough money"
  69. Lang.alreadyticket = "You already have a purchased ticket"
  70. Lang.fail = "You haven't won anything... Next time, maybe!"
  71. Lang.win = "You have won the prize! Congratulations!"
  72. Lang.open = "Press ~r~E~w~ to open the lottery menu"
  73. Lang.lottery = "LOTTERY"
  74. Lang.leftinfo = "Where getting rich is legal"
  75. Lang.weekly = "Weekly Award"
  76. Lang.scratch = "Scratch & Win"
  77. Lang.price = "Price"
  78. Lang.ticket = "TICKET"
  79. Lang.buy = "Buy"
  80. Lang.yes = "Yes"
  81. Lang.no = "No"
  82.  
  83. -- _ _____ _____ ___ _____ _____ _____ _ _ _____
  84. -- | | | _ / __ \ / _ \_ _|_ _| _ | \ | |/ ___|
  85. -- | | | | | | / \// /_\ \| | | | | | | | \| |\ `--.
  86. -- | | | | | | | | _ || | | | | | | | . ` | `--. \
  87. -- | |___\ \_/ / \__/\| | | || | _| |_\ \_/ / |\ |/\__/ /
  88. -- \_____/\___/ \____/\_| |_/\_/ \___/ \___/\_| \_/\____/
  89.  
  90. Locations = {
  91. vector3(-1221.43, -905.69, 12.33),
  92. vector3(-1488.41, -377.81, 40.16),
  93. }
  94.  
  95. -- _____ ___ ______ _____ _____ _____
  96. -- |_ _/ _ \ | ___ \ __ \| ___|_ _|
  97. -- | |/ /_\ \| |_/ / | \/| |__ | |
  98. -- | || _ || /| | __ | __| | |
  99. -- | || | | || |\ \| |_\ \| |___ | |
  100. -- \_/\_| |_/\_| \_|\____/\____/ \_/
  101.  
  102. TargetItems = {
  103. -38797076, --Lottery sign
  104. -1816283392, --Lottery stand
  105. }
  106.  
  107. function targetExport()
  108. exports['qb-target']:AddTargetModel(TargetItems, {
  109. options = {
  110. {
  111. event = "forge-lottery:openUI",
  112. icon = "fas fa-hands",
  113. label = "Buy Lottery",
  114. },
  115. },
  116. distance = 2.5,
  117. })
  118.  
  119. end
  120.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement