Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Config, Lang, Noti = {}, {}, {}
- -- _____ _____ _ _ ______ _____ _____ _ _______ ___ _____ _____ _____ _ _
- -- / __ \ _ | \ | || ___|_ _| __ \ | | | ___ \/ _ \_ _|_ _| _ | \ | |
- -- | / \/ | | | \| || |_ | | | | \/ | | | |_/ / /_\ \| | | | | | | | \| |
- -- | | | | | | . ` || _| | | | | __| | | | /| _ || | | | | | | | . ` |
- -- | \__/\ \_/ / |\ || | _| |_| |_\ \ |_| | |\ \| | | || | _| |_\ \_/ / |\ |
- -- \____/\___/\_| \_/\_| \___/ \____/\___/\_| \_\_| |_/\_/ \___/ \___/\_| \_/
- --Use "esx" or "qb"
- Config.Framework = "qb"
- --If you are using one of the most recent versions of ESX, set the script name. Default = "es_extended"
- Config.ESXExport = ""
- --Default ESX: "esx:getSharedObject" | Default QB: "qb-core"
- Config.Core = "qb-core"
- -- oxmysql, mysql-async or ghmattisql
- Config.Mysql = "oxmysql"
- --What day of the week do you want the drawings to take place?
- Config.weekday = "tuesday"
- --Price for the weekly raffle
- Config.weeklyTicketPrice = 2000
- --Price for scratch-off ticket
- Config.scratchTicketPrice = 500
- --Account where the tickets will be cashed and the money earned will be delivered to
- Config.account = "cash"
- --Discord webhook
- Config.Discord = "https://discord.com/api/webhooks/1107608298636709888/OUttX_PBuHM_HSIP-LupB5hkTqYb50r4yZ-zg046YVMSW_udXJjobKp8kkohj_AJG-Lp"
- --Prize money weekly ticket
- Config.weeklyPrizeMoney = math.random(10000, 50000)
- --Prize money scratch ticket
- Config.scratchPrizeMoney = math.random(1000, 5000)
- --Percentage chance of winning in scratch tickets
- Config.scratchWinPercentage = 100
- --Distance at which the prompt to open the purchase menu will appear
- Config.distanceToShowAlert = 1
- --Font used for the on-screen alert
- Config.alertTextFont = 4
- -- Activate if you want to use a targeting script instead of the on-screen prompt and the typical "Press E.."
- Config.useTarget = true
- -- _ _ _____ _____ ___________ _____ _____ ___ _____ _____ _____ _ _ _____
- -- | \ | | _ |_ _|_ _| ___|_ _/ __ \ / _ \_ _|_ _| _ | \ | |/ ___|
- -- | \| | | | | | | | | | |_ | | | / \// /_\ \| | | | | | | | \| |\ `--.
- -- | . ` | | | | | | | | | _| | | | | | _ || | | | | | | | . ` | `--. \
- -- | |\ \ \_/ / | | _| |_| | _| |_| \__/\| | | || | _| |_\ \_/ / |\ |/\__/ /
- -- \_| \_/\___/ \_/ \___/\_| \___/ \____/\_| |_/\_/ \___/ \___/\_| \_/\____/
- function notifications(notitype, message, time)
- --Change this trigger for your notification system keeping the variables
- TriggerEvent('codem-notification', message, time, notitype)
- end
- --Notifications types:
- Noti.info = 'info'
- Noti.check = 'check'
- Noti.error = 'error'
- --Notification time:
- Noti.time = 5000
- -- _ ___ _ _ _____ _ _ ___ _____ _____
- -- | | / _ \ | \ | | __ \ | | |/ _ \| __ \| ___|
- -- | | / /_\ \| \| | | \/ | | / /_\ \ | \/| |__
- -- | | | _ || . ` | | __| | | | _ | | __ | __|
- -- | |____| | | || |\ | |_\ \ |_| | | | | |_\ \| |___
- -- \_____/\_| |_/\_| \_/\____/\___/\_| |_/\____/\____/
- Lang.nomoney = "You don't have enough money"
- Lang.alreadyticket = "You already have a purchased ticket"
- Lang.fail = "You haven't won anything... Next time, maybe!"
- Lang.win = "You have won the prize! Congratulations!"
- Lang.open = "Press ~r~E~w~ to open the lottery menu"
- Lang.lottery = "LOTTERY"
- Lang.leftinfo = "Where getting rich is legal"
- Lang.weekly = "Weekly Award"
- Lang.scratch = "Scratch & Win"
- Lang.price = "Price"
- Lang.ticket = "TICKET"
- Lang.buy = "Buy"
- Lang.yes = "Yes"
- Lang.no = "No"
- -- _ _____ _____ ___ _____ _____ _____ _ _ _____
- -- | | | _ / __ \ / _ \_ _|_ _| _ | \ | |/ ___|
- -- | | | | | | / \// /_\ \| | | | | | | | \| |\ `--.
- -- | | | | | | | | _ || | | | | | | | . ` | `--. \
- -- | |___\ \_/ / \__/\| | | || | _| |_\ \_/ / |\ |/\__/ /
- -- \_____/\___/ \____/\_| |_/\_/ \___/ \___/\_| \_/\____/
- Locations = {
- vector3(-1221.43, -905.69, 12.33),
- vector3(-1488.41, -377.81, 40.16),
- }
- -- _____ ___ ______ _____ _____ _____
- -- |_ _/ _ \ | ___ \ __ \| ___|_ _|
- -- | |/ /_\ \| |_/ / | \/| |__ | |
- -- | || _ || /| | __ | __| | |
- -- | || | | || |\ \| |_\ \| |___ | |
- -- \_/\_| |_/\_| \_|\____/\____/ \_/
- TargetItems = {
- -38797076, --Lottery sign
- -1816283392, --Lottery stand
- }
- function targetExport()
- exports['qb-target']:AddTargetModel(TargetItems, {
- options = {
- {
- event = "forge-lottery:openUI",
- icon = "fas fa-hands",
- label = "Buy Lottery",
- },
- },
- distance = 2.5,
- })
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement