# reddragonelite/rde_ox_standards architecture

> Architecture diagram of the GitHub repository reddragonelite/rde_ox_standards, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/reddragonelite/rde_ox_standards
- Repository: https://github.com/reddragonelite/rde_ox_standards

## Overview

This repository is a development-standard guide for building RDE FiveM resources on the OX stack, not an implementation of a particular game resource. Its principal workflow is guidance for developers: structure a resource, configure it, validate sensitive server actions, persist and synchronize state, and provide UI or world interactions. The graph represents documented standards and dependencies; there are no source excerpts to verify concrete runtime call paths.

Main entry points: [`README.md`](https://github.com/reddragonelite/rde_ox_standards/blob/main/README.md) (RDE resource)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_structure["Resource structure"]
  node_resource["RDE resource<br/>[README.md]"]
  node_config["Config and locales<br/>[README.md]"]
  node_modules["Server and client modules<br/>[README.md]"]
end

subgraph group_server["Server standards"]
  node_security["Action security<br/>[README.md]"]
  node_persistence[("Database setup<br/>[README.md]")]
  node_state["Statebag synchronization<br/>[README.md]"]
end

subgraph group_client["Client capabilities"]
  node_ui["UI patterns<br/>[README.md]"]
  node_interactions["World interactions<br/>[README.md]"]
end

subgraph group_stack["OX dependencies"]
  node_ox_core{{"ox_core"}}
  node_ox_lib{{"ox_lib"}}
  node_oxmysql{{"oxmysql"}}
  node_ox_target{{"ox_target"}}
  node_ox_inventory{{"ox_inventory"}}
end

node_developer(("Resource developer"))

node_developer -->|"builds to standard"| node_resource
node_resource -->|"defines settings"| node_config
node_resource -->|"organizes as"| node_modules
node_modules -->|"validates actions"| node_security
node_modules -->|"creates tables"| node_persistence
node_modules -->|"syncs state"| node_state
node_modules -->|"uses"| node_ui
node_modules -->|"integrates"| node_interactions
node_resource -->|"uses framework"| node_ox_core
node_resource -->|"uses utilities"| node_ox_lib
node_resource -->|"uses database"| node_oxmysql
node_resource -.->|"uses optionally"| node_ox_target
node_resource -.->|"uses optionally"| node_ox_inventory
node_ui -->|"uses components"| node_ox_lib
node_interactions -.->|"uses zones"| node_ox_target

click node_resource "https://github.com/reddragonelite/rde_ox_standards/blob/main/README.md"
click node_config "https://github.com/reddragonelite/rde_ox_standards/blob/main/README.md"
click node_modules "https://github.com/reddragonelite/rde_ox_standards/blob/main/README.md"
click node_security "https://github.com/reddragonelite/rde_ox_standards/blob/main/README.md"
click node_persistence "https://github.com/reddragonelite/rde_ox_standards/blob/main/README.md"
click node_state "https://github.com/reddragonelite/rde_ox_standards/blob/main/README.md"
click node_ui "https://github.com/reddragonelite/rde_ox_standards/blob/main/README.md"
click node_interactions "https://github.com/reddragonelite/rde_ox_standards/blob/main/README.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_resource,node_config,node_modules toneBlue
class node_security,node_persistence,node_state toneAmber
class node_ui,node_interactions toneMint
class node_ox_core,node_ox_lib,node_oxmysql,node_ox_target,node_ox_inventory toneRose
class node_developer toneIndigo
```

## Components

### Resource structure

- [RDE resource](https://github.com/reddragonelite/rde_ox_standards/blob/main/README.md): `README.md`
- [Config and locales](https://github.com/reddragonelite/rde_ox_standards/blob/main/README.md): `README.md`
- [Server and client modules](https://github.com/reddragonelite/rde_ox_standards/blob/main/README.md): `README.md`

### Server standards

- [Action security](https://github.com/reddragonelite/rde_ox_standards/blob/main/README.md): `README.md`
- [Database setup](https://github.com/reddragonelite/rde_ox_standards/blob/main/README.md): `README.md`
- [Statebag synchronization](https://github.com/reddragonelite/rde_ox_standards/blob/main/README.md): `README.md`

### Client capabilities

- [UI patterns](https://github.com/reddragonelite/rde_ox_standards/blob/main/README.md): `README.md`
- [World interactions](https://github.com/reddragonelite/rde_ox_standards/blob/main/README.md): `README.md`

### OX dependencies

- **ox_core**
- **ox_lib**
- **oxmysql**
- **ox_target**
- **ox_inventory**

### Other components

- **Resource developer**

## Connections

- Resource developer → RDE resource: builds to standard (evidence: `README.md`)
- RDE resource → Config and locales: defines settings (evidence: `README.md`)
- RDE resource → Server and client modules: organizes as (evidence: `README.md`)
- Server and client modules → Action security: validates actions (evidence: `README.md`)
- Server and client modules → Database setup: creates tables (evidence: `README.md`)
- Server and client modules → Statebag synchronization: syncs state (evidence: `README.md`)
- Server and client modules → UI patterns: uses (evidence: `README.md`)
- Server and client modules → World interactions: integrates (evidence: `README.md`)
- RDE resource → ox_core: uses framework (evidence: `README.md`)
- RDE resource → ox_lib: uses utilities (evidence: `README.md`)
- RDE resource → oxmysql: uses database (evidence: `README.md`)
- RDE resource → ox_target: uses optionally (evidence: `README.md`)
- RDE resource → ox_inventory: uses optionally (evidence: `README.md`)
- UI patterns → ox_lib: uses components (evidence: `README.md`)
- World interactions → ox_target: uses zones (evidence: `README.md`)
