CodexCore
Framework‑neutral API layer for RedM modules. This document enumerates every public function, export, and event, with client + server examples. Internal helpers (e.g., native wrappers, CheckVar) are o
🔰 Setup & Exports
Resource Order
ensure codex_core
# ensure your modules after this (e.g. codex_trustlevel)fxmanifest.lua
Config
🤝 Client Library — CodexCore
Get Library
Core Functions
🔁 RPC Callback (Client → Server)
CodexCore.TriggerServerCallback(name, cb, ...)
CodexCore.TriggerServerCallback(name, cb, ...)Parameter
Type
Description
🧰 Utility — AddBlipForCoords
🗯️ Client Sub‑APIs — CodexAPIsInit
⭐ Prompts API
Overview
Setup Prompt Group
Register Prompt
Prompt Loop Example
🗯️ Blips API
Create Blip
Radius
⭐ Buttons API
📍 Render API
Example — 3D Text
🧶 Objects API
🧍♂️ Peds API
📊 Progressbar
👮 Admin Command — /coords
/coords💻 Server Library — CodexCore
🗄️ SQL Helper
👤 Player & Character
👮 Jobs & Groups
💰 Money & Accounts
🎒 Inventory
🔁 Callbacks
Server
Client
🛣️ Events Reference
Client Events
codex-core:playerLoaded
codex-core:playerLoadedcodex-core:notification
codex-core:notificationServer Events
codex-core:sendToDiscord
codex-core:sendToDiscord🔼 Versioning & Config
💪 Best Practices
🔚 End‑to‑End Example — Shop Purchase
Client
Server
Last updated
Was this helpful?


