Wert Christmas System

You can access the setup information you need about this product

🎄 Wert Christmas System - Documentation

Welcome to the official documentation for the Wert Christmas System. Follow the steps below to install and configure the resource for your server.


📦 Dependencies

Before installing, please ensure you have the following resource installed and running:

  • ox_lib (Required for UI and functions)


🛠 Installation Guide

Follow these simple steps to get the system running:

1. Download the Resource

Download the script files from your Cfx.re Keymaster account assets.

2. Upload to Server

Drag and drop the wert-christmas folder into your server's resources directory.

3. Server Configuration

Add the following line to your server.cfg file to ensure the script starts automatically:

Kod snippet'i

4. Database (SQL)

You do not need to run any manual SQL files. The script automatically synchronizes and creates the necessary database tables upon the first start.


⚙️ Configuration & Locales

Config Settings

You can adjust all system settings in the config.lua file.

Important: Please review the config.lua file carefully and configure the settings (prices, rewards, tree levels) to match your server's economy and preferences before opening it to players.

Language Editor (JSON)


👨‍💻 Developer Guide (Exports)

If you want to integrate the mission system with other scripts (e.g., giving mission progress from a robbery or a job), you can use the following export.

Add Mission Progress

Use this export to increment the progress of a specific mission for a player.

Syntax:

Lua

  • source: The player's server ID.

  • missionId: The unique ID of the mission (defined in your config).

  • amount: How much progress to add (usually 1).

Example Usage:

Below is an example of how to add progress to the 'snowball_fight' mission:

Lua

OPEN FILES


Last updated