Documentation Index
Fetch the complete documentation index at: https://docs.cc-scripts.com/llms.txt
Use this file to discover all available pages before exploring further.
Requirements
- A FiveM server running ox_lib and oxmysql.
- A working
cc_libresource (provides Core, Groups, Inventory, and Target wrappers). - Optional: cc_minigames if you want the default training sandbox entries to work.
Steps
Place the resource
Copy the
cc_heistcontracts folder into a resources directory the server already loads. The repo ships under resources/[cc]/cc_heistcontracts/.Run the SQL migrations
The schema is split across three files. Run them in order against your MySQL database:Or paste them into your MySQL client. Each migration is idempotent on a fresh install (
CREATE TABLE IF NOT EXISTS); the ALTER TABLE statements will fail if you re-run them on a database that already has those columns — that’s expected.Verify in-game
Join the server and press F6 (or run
/heist). The dashboard should open, prompt you to pick an alias, and then show two seed contracts — Fleeca Branch Heist and Paleto Bank Score — in the rotation. Those seeds live in server/main.lua and exist purely so you have something to look at on a fresh install.Database schema
After all three migrations run, you should have one table:citizenid. Profiles are cached in memory while the player is online and flushed every 30 seconds, on player drop, on resource stop, and on alias change.
Building the dashboard UI from source
Theweb/ folder ships pre-built. If you want to modify the React app:
../web/ so the resource picks it up next ensure. Don’t add web/ to your .gitignore — it’s the runtime artifact, not a build cache.