Installations
How to install it: add the ticket items to your database, ox_inventory or QBCore inventory, then set up the script on your FiveM server.
On this page
1. Before starting
Welcome to the Frozen Scratch Ticket installation guide. Follow the steps below in order to add the ticket items and set up the script on your server.
2. Items and database
Items in the database
sql
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES
('money_ticket', 'Money Ticket', 0.2, 0, 1),
('item_ticket', 'Item Ticket', 0.2, 0, 1);Items in ox_inventory
lua
["money_ticket"] = {
label = "Money Ticket",
weight = 0.2,
stack = true,
close = true,
},
["item_ticket"] = {
label = "Item Ticket",
weight = 0.2,
stack = true,
close = true,
}Items in QB
lua
['money_ticket'] = {['name'] = 'money_ticket', ['label'] = 'Money Ticket', ['weight'] = 50, ['type'] = 'item', ['image'] = 'money_ticket.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},
['item_ticket'] = {['name'] = 'item_ticket', ['label'] = 'Item Ticket', ['weight'] = 50, ['type'] = 'item', ['image'] = 'item_ticket.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = ''},Still stuck?Ask on our Discord