Yoda Things Documentation
  • 💚Yoda Things Documentation
  • INFORMATION
    • 📃Discord Roles
    • 📀Assets Updates
    • ✅Ensure/Start Order
  • PAID RESOURCES
    • 🗑ïļAdvanced Garbage Job
      • 🧰Installation
      • ⚙ïļConfiguration
    • 🚚PostOP Deliveries
      • 🧰Installation
      • ⚙ïļConfiguration
    • 📋Reputation System
      • 🧰Installation
      • ⚙ïļConfiguration
        • ✅Add New Job's
        • 📎Exports
  • FREE RESOURCES
    • 🌐Notify System
    • ðŸ’ĻOxy/Drug Runs
      • 🧰Installation
    • 🗑ïļGarbage Job
      • 🧰Installation
    • ðŸŠĶCemetery Robbery
      • 🧰Installation
      • ⚙ïļConfiguration
Powered by GitBook
On this page
  • Data Base
  • Download
  • Dependencies
  • Ensure/Start Order

Was this helpful?

  1. PAID RESOURCES
  2. Reputation System

Installation

Welcome to the Yoda Reputation System installation guide, here you can learn how to install our script step by step.

If you are a novate in progamming, we recommend that you read each step paying atention, all the documentation is important and you should not ignore that.

If you still encounter issues after going through this documentation, review each step once more. After ensuring everything is correct, you can find additional information on common errors in the Common Problems section of this documentation for further assistance.

Data Base

The database must be set up for the Yoda Reputation System to work.

CREATE TABLE IF NOT EXISTS `yt_reputation_jobs` (
  `job_id` int(11) NOT NULL AUTO_INCREMENT,
  `job_label` varchar(255) NOT NULL,
  `job_name` varchar(255) NOT NULL,
  `max_points` int(11) NOT NULL,
  `level_thresholds` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`level_thresholds`)),
  PRIMARY KEY (`job_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

CREATE TABLE IF NOT EXISTS `yt_user_reputation` (
  `user_id` varchar(255) NOT NULL,
  `job_id` int(11) NOT NULL,
  `points` int(11) DEFAULT 0,
  `level` int(11) DEFAULT 0,
  PRIMARY KEY (`user_id`, `job_id`),
  CONSTRAINT `yt_user_reputation_ibfk_1` FOREIGN KEY (`job_id`) REFERENCES `yt_reputation_jobs` (`job_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

CREATE TABLE IF NOT EXISTS `yt_user_rewards` (
  `user_id` varchar(255) NOT NULL,
  `job_id` int(11) NOT NULL,
  `reward_level` int(11) NOT NULL,
  PRIMARY KEY (`user_id`, `job_id`, `reward_level`),
  CONSTRAINT `yt_user_rewards_ibfk_1` FOREIGN KEY (`job_id`) REFERENCES `yt_reputation_jobs` (`job_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

Download

If you want to update the script, you should download it again.

Dependencies

This script relies on functionalities from other scripts to work properly. Therefore, you need to install the scripts that Yoda Reputation System depends on. If you don't install these dependencies, the script may start, but you will likely see errors in the console, and the script will not function correctly!

Dependencies
Link

ox_lib

ox_inventory or qb-inventory

Ensure/Start Order

PreviousReputation SystemNextConfiguration

Last updated 5 months ago

Was this helpful?

To download Yoda Reputation System, you have to buy the script and download it in your granted assests on

Visit the page

📋
🧰
cfx.re keymaster
Ensure/Start Order
https://github.com/overextended/ox_lib
https://github.com/overextended/ox_inventory
https://github.com/qbcore-framework/qb-invento