C7 Framework Version 1.4.0

This guide explains how to update your current C7 Framework V3 version to v1.4.0

01. What's new?

Additions:

  • Added new automatic database manipulation

    • The script will now automatically install and update the database without requiring any manual SQL injection.

  • Added a new department grade (rank) system (with Discord Role Integration);

    • Characters can now have a rank under their current department, useful for other scripts and requiring a certain rank to allow access etc.

    • This can be turned off in the configuration if you don't want it.

Changes:

  • Updated the UI style to remove shadows from certain elements, primarily modals, making it harder to read and blurrier.

  • Updated the dropdown fields to a custom dropdown style.

Developers:

02. Downloading the Updated Resource

1

Download the latest update of the C7 Framework V3;

This folder should contain the folder: c7-scripts-framework-v3

2

Extract the .zip file's

3

Replace the following files:

  • client/client.lua

  • server/server.lua

  • server/version.lua

  • html/css/style.css

  • html/js/app.js

  • html/index.html

4

Removing the following files:

These files are no longer necessary due to the new automatic database manipulation feature:

  • c7_fw_characters.sql

  • c7_fw_characters_patch.sql

03. Updating your Configuration File

1

Adding Automatic Database Manipulation

Firstly, you want to add the new automatic database manipulation lines. These new configuration lines will:

  • Automatically create the C7 Framework database when you first install the resource.

  • Automatically update the C7 Framework database when it detects an update. This will patch your current database. This will not overwrite any existing data.

You must add the following lines of code BELOW "Config.Debug"

2

Adding the new Grades System

Secondly, you want to add the new 'Grades' feature to your configuration file, you must add the following code BELOW "Config.discordServerID"

Thirdly, you want to implement the grades feature into your departments themselves. Below is how you can add the configuration lines safely.

Demonstration:

Code line template:

Leave allowedDiscordRoles blank to give access to this grade to anyone. Else, put a Discord Role ID to limit who can use it. (i.e. allowedDiscordRoles = "12345678912345678")

04. What's next/planned?

There is currently a few things planned for the next update of C7 Framework, this includes:

  • Full ImperialCAD integration;

  • Full SonoranCAD integration.

  • Character Favouriting:

    • You can set a character as your 'favourite' so whenever you open the framework for the first time, it will always load to your favourited character making it accessible quicker.

Last updated