Installation

Installation

It is recommended that one follows each step sequentially from the outset to ensure that no installation errors arise.

Start Order

In order for the resource to start correctly and not receive any errors, we must start the resources in the following order

server.cfg
ensure core
...
ensure ictrophies

Setting Up the Trophies Database

To set up the trophies table in your database, execute the provided SQL command.

ictrophies.sql
CREATE TABLE IF NOT EXISTS `players_trophies` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `license` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
  `trophies` longtext DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `license` (`license`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

Setup Config

⚠️

To ensure the correct functioning of the script, it is essential to make some adjustments to the configuration file.

config.lua
-- Confetties types: 
-- 0 = easy
-- 1 = medium
-- 2 = hard
-- 3 = master
 
Config = {}
Config.Mysql = "icmysql" -- oxmysql, icmysql
Config.OpenMenu = "l" -- Key to open menu
Config.AchivementVolume = 0.4 -- Volume of notification sound (0.1 - 1.0)
Config.Trophies = {
    ["job"] = {
        ["title"] = "First Job",
        ["description"] = "Get your first job in the server ",
        ["other"] = {
            ["type"] = 0,
            ["confetti"] = true,
            ["sound"] = true
        },
    },
    ["house"] = {
        ["title"] = "First House",
        ["description"] = "Get your first house in the server",
        ["other"] = {
            ["type"] = 1,
            ["confetti"] = true,
            ["sound"] = true
        },
    },
    ["car"] = {
        ["title"] = "First Car",
        ["description"] = "Get your first car in the server",
        ["other"] = {
            ["type"] = 2,
            ["confetti"] = true,
            ["sound"] = true
        },
    },
    ["animation"] = {
        ["title"] = "First Shared Animation",
        ["description"] = "Get your first shared animation in the server",
        ["other"] = {
            ["type"] = 1,
            ["confetti"] = true,
            ["sound"] = true
        },
    },
    ["weapon"] = {
        ["title"] = "First Weapon",
        ["description"] = "Get your first weapon in the server",
        ["other"] = {
            ["type"] = 2,
            ["confetti"] = true,
            ["sound"] = true
        },
    },
    ["salary"] = {
        ["title"] = "First Salary",
        ["description"] = "Get your first salary in the server",
        ["other"] = {
            ["type"] = 0,
            ["confetti"] = true,
            ["sound"] = true
        },
    },
    ["clothes"] = {
        ["title"] = "First Clothes",
        ["description"] = "Get your first clothes in the server",
        ["other"] = {
            ["type"] = 3,
            ["confetti"] = true,
            ["sound"] = true
        },
    },
    ["item"] = {
        ["title"] = "First Item",
        ["description"] = "Get your first item in the server",
        ["other"] = {
            ["type"] = 0,
            ["confetti"] = true,
            ["sound"] = true
        },
    },
    ["phone"] = {
        ["title"] = "First Phone",
        ["description"] = "Get your first phone in the server",
        ["other"] = {
            ["type"] = 2,
            ["confetti"] = true,
            ["sound"] = true
        },
    },
    ["goal"] = {
        ["title"] = "First Scored Goal",
        ["description"] = "Get your first goal in the server",
        ["other"] = {
            ["type"] = 3,
            ["confetti"] = true,
            ["sound"] = true
        },
    },
}

Setup Translations

To make changes to certain translations, you can edit the index.html file.

File Location: ictrophies\src\ui\index.html

To translate the content, you need to edit the HTML file. Look for the text that is inside the HTML tags. Once you find it, just modify that text. Make sure you don't change anything outside the tags to avoid problems.