🎃 General Installation Steps (For Both Frameworks)
Place Script Files: Put the script folder into your server's resources directory.
Execute the SQL File: Run the SQL code provided earlier (not included here, but mentioned in the original text) in your database. This will create the players_halloween and halloween_tebex_codes tables.
Add Required Items: Add the custom items listed below to your framework's item list.
⚙️ QBCore Specific Setup
Configure config.lua
Set the framework:
Lua
Ensure the core name matches your script:
Lua
Add Items to qb-core/shared/items.lua
Add the following item definitions. (Remember to add corresponding .png image files to your inventory image directory):
Lua
⚙️ ESX Specific Setup
Configure config.lua
Set the framework:
Lua
Ensure the core name matches your script:
Lua
Example SQL for Adding Items
Use this SQL to add the necessary items to your database:
SQL
🚀 Starting the Script
Edit server.cfg
Add the ensure line to your server.cfg after your core and inventory scripts:
Kod snippet'i
Tebex Setup 🛒
Game Server Command
In your Tebex package setup, paste the following into the command field (adjust the candy amount as needed):
(Ensure the setting "Require player to be online" is set to "Execute command even if player is offline.")