> For the complete documentation index, see [llms.txt](https://codexstudios.gitbook.io/codexstudios-store/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codexstudios.gitbook.io/codexstudios-store/readme.md).

# Developer Platform

{% columns %}
{% column %}

### Get started in 5 minutes

**CodexCore** is a core developer library and **RedM bridge API** used in CodexStudios scripts.

It unifies common server APIs across **VORP**, **RSG**, and **TPZ-CORE**.

Write Lua once, then run the same script across frameworks.

CodexCore is not a plug-and-play framework and does not automatically convert scripts. Instead, it gives you a consistent API for common systems such as:

* player data and identifiers
* inventory and money operations
* jobs, characters, and shared systems
* framework differences abstracted away

With CodexCore, your scripts simply call one API while CodexCore handles the underlying framework logic for you.

<a href="/pages/JsKd452Nu8XTrHz68zaF" class="button primary" data-icon="rocket-launch">Get started</a> <a href="/pages/JsKd452Nu8XTrHz68zaF#join-the-codexstudios-redm-and-fivem-scripting-community" class="button secondary" data-icon="terminal">API reference</a>
{% endcolumn %}

{% column %}
{% code title="server.lua" overflow="wrap" %}

```lua
-- Get CodexCore object
local CodexCore = exports["codex-core"]:GetCore()

-- Get player from source
local Player = CodexCore.GetPlayer(source)

-- Add money to the player
Player.AddMoney("cash", 100)

-- Get player identifier
local identifier = Player.GetIdentifier()

print("Player identifier:", identifier)

```

{% endcode %}
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}

<figure><img src="/files/Jnxsymj7GuAXlyXChWke" alt=""><figcaption></figcaption></figure>

{% endcolumn %}

{% column %}

<p align="center">Learn more about CodexStudios</p>

**CodexStudios** builds modular, framework-agnostic tooling for **RedM** and **FiveM** server development.

Get reusable APIs, consistent data systems, and documentation that works across frameworks.

Whether you’re creating jobs, inventories, shops, player systems, or shared gameplay features, CodexStudios gives you components that save time, reduce repetition, and improve reliability.

<a href="/spaces/wEWG8PisIZxXMDi1R6GC" class="button primary" data-icon="book-open">Guides</a> <a href="/spaces/7YFvz52zvJQccQZy9lNG" class="button secondary" data-icon="book">Documentation</a>
{% endcolumn %}
{% endcolumns %}

### Join the CodexStudios RedM and FiveM scripting community

<p align="center">Get help, share resources, and talk server dev on Discord.</p>

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th></th><th></th><th data-hidden data-card-cover data-type="image">Cover image</th></tr></thead><tbody><tr><td><h4><i class="fa-discord">:discord:</i></h4></td><td><strong>Discord community</strong></td><td>Join our RedM and FiveM Discord community to ask questions, get help, and share resources with over 400 like-minded developers.</td><td><a href="https://discord.gg/grKXRqzZu6" class="button secondary" data-icon="discord">Join Discord</a></td><td><a href="/files/TKS4u9muQKUc2EdI3FZi">/files/TKS4u9muQKUc2EdI3FZi</a></td></tr><tr><td><h4><i class="fa-github">:github:</i></h4></td><td><strong>GitHub</strong></td><td>Some of our products are 100% open source and built by developers just like you. Head to our GitHub repository to learn how to submit your first PR.</td><td><a href="https://github.com/xXxNozz4rrxXx" class="button secondary" data-icon="github">GitHub Page</a></td><td><a href="/files/TKS4u9muQKUc2EdI3FZi">/files/TKS4u9muQKUc2EdI3FZi</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://codexstudios.gitbook.io/codexstudios-store/readme.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
