Codex Studios
Visit our Tebex StoreOur Discord
  • πŸ‘‹Welcome to Codex Studios
  • Overview
    • πŸ’‘About Us
    • ✨Our Features
  • πŸ’…RedM-Scripts
    • 🌐[Codex Studios] : Core
      • Client Side
      • Server Side - CodexCore API
      • Config
      • πŸ“ Client Side (clientside.lua)
      • 🧾 Server Side (serverside.lua)
      • πŸ›‘οΈCodexCore Security Module
      • πŸ—’οΈSecurity Detailed Explanation
      • πŸ”Client-Side: Securing Event Triggers
      • πŸ”’Server-Side: Securing Event Triggers
    • πŸ’ͺ[Codex Studios] : Trust Level
      • Client Side
      • Config
      • SQL
  • πŸ“¦[Codex Studios]: Supplies System
    • Client Side
    • Server-Side Town Supplies
    • Config
    • πŸͺ›Examples and Commands
    • Sql Updated
Powered by GitBook
On this page
  • πŸ“š What is Codex Core?
  • πŸ”„ Integrating Your Open-Source Script with Codex Core
  • βš™οΈ Technical Details
  • πŸ”‘ Conclusion

Was this helpful?

  1. RedM-Scripts

[Codex Studios] : Core

πŸ“š Codex Core Explanation

PreviousOur FeaturesNextClient Side

Last updated 1 month ago

Was this helpful?


πŸ“š What is Codex Core?

Codex Core is a powerful resource used to manage and control the integration of our scripts with the Vorp and RSG frameworks. It serves as a bridge between these frameworks and helps streamline updates and maintenance.

πŸ”§ Key Features:

  • Framework Support: Codex Core supports Vorp Core and RSG Framework, making it easy for us to update and maintain our scripts.

  • Centralized Control: With Codex Core, if there’s a major update in the Vorp core (for example), we only need to make the necessary changes to Codex Core, rather than updating each individual script. This saves a lot of time and ensures consistency across all your scripts.

  • Efficiency: Instead of updating scripts manually for each framework (Vorp or RSG), Codex Core handles the heavy lifting, allowing you to focus on writing and improving your scripts.

⚑ Core Characteristics:

  • Codex Core is not a "framework" by itself, but rather a tool that enhances the functionality of existing frameworks (Vorp Core and RSG Framework).

❗ Important Notes:

  1. Codex Core does not convert scripts from one framework to another.

    • It does not convert a script from RSG to Vorp or vice versa.

  2. Codex Core is a helper, not a standalone framework. It requires either Vorp Core or RSG Framework to function properly.


πŸ”„ Integrating Your Open-Source Script with Codex Core

If you have an open-source script and want to integrate it with Codex Core, follow these steps:

1. Prerequisites

Before you begin, make sure your script is compatible with Vorp Core or RSG Framework. Codex Core will only work with these two frameworks.

2. Update Script to Use Codex Core

Follow these steps to integrate your script with Codex Core:

  • Step 1: Identify Framework Dependencies

    • Your script must support either Vorp Core or RSG Framework.

    • Codex Core will automatically manage and update the integration when needed.

  • Step 2: Add Codex Core Module

    • Include Codex Core as a dependency in your resource manifest (fxmanifest.lua).

    • Ensure your script references Codex Core for database handling, settings, and module loading.

  • Step 3: Modify Database Calls (if applicable)

    • Codex Core provides an easy interface for interacting with different SQL resources (e.g., oxmysql, ghmattimysql, mysql-async). Modify your script to use Codex Core for database queries.

3. Testing & Debugging

  • Test the Integration: Once you’ve made the necessary changes, ensure your script works smoothly with Codex Core and that it integrates seamlessly with the chosen framework (either Vorp or RSG).

  • Debugging: If you encounter issues during integration, review the Codex Core Logs and Framework Logs to help identify potential conflicts.

4. Deployment

After testing your script, deploy it as usual! Codex Core will handle the framework-related functionality.


βš™οΈ Technical Details

Codex Core simplifies the integration process with the following features:

1. SQL Resource Handling:

Codex Core supports multiple SQL resources such as:

  • oxmysql

  • ghmattimysql

  • mysql-async

By default, Codex Core will automatically detect(You must define it in Core Config) and use the configured SQL resource, so you don't need to worry about managing SQL connections for each script.

2. Modular Design:

Codex Core allows for modular loading of scripts. This makes it easier to organize and manage different parts of your resource, especially when dealing with large scripts.

3. Customizable Settings:

With Codex Core, you can manage settings for your script from a centralized settings menu, allowing for quick configuration changes without touching the script code directly.


πŸ”‘ Conclusion

Codex Core is designed to save you time and effort when working with Vorp and RSG frameworks. It allows for centralized control, efficient updates, and better maintenance practices across all your scripts.

Whether you’re working with an open-source script or creating a new one, Codex Core is the perfect solution to ensure your script integrates smoothly with both frameworks .

πŸ’…
🌐