← Home
⌕
Ask on Discord
General ER:LC FiveM API
Developers
DOCUMENTATION/Other APIs

Game API (FiveM)

The API a FiveM server uses to open its players' sessions and sync jobs with Blixye: key, actions and errors.

It is the one the blixye_telefono resource uses (Player session and Jobs). You can call it from a resource of your own with the same game key, but it is not versioned like v1: it follows that resource.
NOTE It is the one the blixye_telefono resource uses (Player session and Jobs). You can call it from a resource of your own with the same game key, but it is not versioned like v1: it follows that resource.
How to call it
NOTE How to call it
NOTE
POST to https://api.blixye.com/game with a JSON body carrying action and its data.
The game key goes in the X-Game-Token header or in Authorization: Bearer, never in the body (Game key and scopes). The server comes from the key.
Limit: 600 requests per minute.
The response is always JSON with ok. An error is {"ok": false, "error": "text in Spanish", "error_code": "code"}; check the HTTP status and error_code.
Key errors: 401 token_required or token_invalid, 403 ip_not_allowed, 403 missing_scope (with scope, the missing one) and 400 bad_action.
curl -X POST "https://api.blixye.com/game" \ -H "X-Game-Token: gm_xxxx_..." \ -H "Content-Type: application/json" \ -d '{"action":"whoami"}'
curl -X POST "https://api.blixye.com/game" \ -H "X-Game-Token: gm_xxxx_..." \ -H "Content-Type: application/json" \ -d '{"action":"whoami"}'
NOTE curl -X POST "https://api.blixye.com/game" \ -H "X-Game-Token: gm_xxxx_..." \ -H "Content-Type: application/json" \ -d '{"action":"whoami"}'
The actions
NOTE The actions
NOTE
whoami (no scope): the server, the key's details with its scopes, and the job log cursor.
player_session (players.session): opens a player's session. Takes license (license: plus 40 hex characters; required), discord_id and name (optional). Returns session (gs_…), expires_hours (48), via (discord or license), created_account, user and server.
player_session_end (players.session): closes a session on this server. Call it when the player leaves.
jobs_catalog (jobs.read): corporations linked to a job, with all their ranks and grades, and catalog_hash, the catalogue fingerprint.
jobs_snapshot (jobs.read): the jobs of some characters (character_ids, up to 500) or of everyone who has one, paginated from after_character_id. Returns a cursor to continue with jobs_changes.
jobs_changes (jobs.read): the changes since since (1 to 500 per request; 200 by default). With more: true there are more; with resync: true you must reread the full catalogue and snapshot.
job_request (jobs.write if a character signs it with actor_character_id; jobs.free for an open hire): requests hire, set_grade, set_status or fire for a character and a job. request_id is required (up to 64 characters): repeating it returns the same response with duplicate: true, and using it for another character or job gives 409 request_id_reused.
job_request errors
NOTE job_request errors
NOTE
403: actor_not_member, no_permission, not_below, subdivision or not_free. error carries the MDT's text.
404: character_not_found (the character is not from this server), actor_not_found, job_not_found, grade_not_found or not_member.
409: already_member or request_id_reused.
player_session errors
NOTE player_session errors
NOTE
400 bad_request (field: license or discord_id), 403 banned or sanctioned, 409 server_full and 429 too_many_new_players (more than 300 new accounts per server per hour).
The gs_ session player_session returns only works on that server and for playing: outside that it answers 403 session_scope. Keep it on the game server; do not hand it to the client.
NOTE The gs_ session player_session returns only works on that server and for playing: outside that it answers 403 session_scope. Keep it on the game server; do not hand it to the client.
← Previous
API v1: webhooks
Next →
Bot API
50 / 54 Something missing here →
STEP 1 · PLAN ×
Pick your server's plan
After payment you name it and we configure it together. You can change plan whenever you like.
FREE1 OF 1 LEFT Up to 500 characters and basic CAD. To try it. 0 €
PLUSMONTHLY Full CAD, moderation, activity and economy. 5,99 €
PREMIUMER:LC & FIVEM Everything in PLUS, FiveM included and higher limits. 12,99 €
ENTERPRISEPERMANENT All of PREMIUM forever, self-hosted, never a fee. Contact
Continue to payment
Cancel any time · 14-day withdrawal right, unless you ask to start straight away
Confirm and pay
ER:LC PREMIUM
Monthly · one licence
12,99 €
EMAIL
CARD
Back
In development — unavailable
Blixye is in development: services can’t be purchased yet.Secure payment · VAT included
Name your server
This is the name your players see in the launcher and on Discovery. You can change it whenever.
SERVER NAME
It gets a short code, like SKY-T2Q, to link the launcher.
NEXT Once created we open the setup guide: launcher, Discord and modules in three steps.
Back
Create the server
Type at least 3 characters.
STEP 1 OF 3 · GUIDE ×
1. Send your people the launcher
It is the only thing they install, and only once. They sign in with Discord, we verify their Roblox account and the overlay shows over the session.
Go to the download
2. Create your departments
Police, sheriff, fire or whatever you run. Each with its ranks and permissions: that decides who can punish, clock in or read records.
3. Open the server
With the first duty shift the calls, activity and economy start filling up. From there you just tune it.
Back
Next
⌕ ESC
In-game overlay Radio, sheet and dispatch over the session, no alt-tab. ER:LC CAD and departments Queued calls, units with status and rosters with ranks. ER:LC Moderation and appeals Punishments with context, logs and appeals that do not get lost. ER:LC Staff activity Quotas per rank, shifts and an automatic weekly report. ER:LC Economy and businesses Accounts, payroll, player businesses and inventory. ER:LC Blixye Framework The core: characters, permissions, database and QBCore and ESX bridge. FiveM Inventory Weight, containers and safe player trades. FiveM Police MDT Records, fines, warrants and plate lookups. FiveM Banking Accounts, transfers, payroll and business accounts. FiveM Jobs Shifts, payroll and per-company hierarchy. FiveM Garages Vehicle ownership, persistent damage and impound. FiveM Housing Buying, renting, furniture and personal storage. FiveM Phone Messages, calls, apps and in-world socials. FiveM EMS Per-limb injuries, treatment and a hospital with beds. FiveM All the scripts All eight scripts unlimited, as a permanent purchase or a subscription. FiveM Install Blixye on ER:LC From an empty server to the first duty shift, without touching a game file. Docs Install the FiveM framework The zip, the SQL and your current base bridge, in the right order. Docs Your first week What to set up each day so you do not end up with twenty half-done things. Docs CAD and dispatch Calls, units and priorities inside the overlay. Docs Moderation and appeals Punishments with evidence, appeals and the log that covers you. Docs Activity and shifts Hours, quotas and who is really patrolling. Docs Scripts and free version What each script free version limits and what the full one opens. Docs QBCore and ESX bridge Living with your current base without duplicating players or money. Docs Performance Where to look when the server stutters. Docs
Nothing by that name. Try “inventory”, “CAD” or “licences”.
↵ open CTRL K search 37 results
ROTATE THE KEY ×
! The current key stops working the moment you confirm. This cannot be undone.
current key → new key on confirm
Paste the new key into the script config.
Restart the resource: refresh and ensure.
Until you do, the script will not load.
Yes, rotate the key Cancel
What each plan includes ×
FREE
DISCORD
PLUS
PREMIUM
ENTERPRISE
Price
Free
2,99 €/mo
5,99 €/mo
12,99 €/mo
Contact
GENERAL
Characters stored
500
—
5000
∞
∞
Custom invite code
—
✓
✓
✓
✓
CAD
Max corporations
2
—
6
∞
∞
Max subdivisions
0
—
6
∞
∞
MDT data wipe
1 month
—
1 year
Never
Never
MDT access
Complete
—
Complete
Complete
Complete
Logs history
7 days
—
90 days
∞
∞
Data export
—
—
✓
✓
✓
Investigations
—
—
✓
✓
✓
Evidence storage
—
—
Unmetered
Unmetered
Unmetered
Custom laws
50
—
150
∞
∞
Real-time map
—
—
✓
✓
✓
Bodycam
—
—
✓
✓
✓
Realtime map location
—
—
✓
✓
✓
Advanced search
—
—
✓
✓
✓
Radio channels (Discord VC)
10
—
50
100
∞
Roles per corporation
15
—
50
∞
∞
BANK
Bank accounts
1 per char
—
3 per char
6 per char
12 per char
Transfers
✓
—
✓
✓
✓
Transaction history
✓
—
✓
✓
✓
Cards per account
1
—
2
3
5
Timed cards
Fixed durations
—
✓
✓
✓
Usage-based cards
—
—
Max 5 per char
✓
✓
Role rewards
✓
—
✓
✓
✓
Allow negative balance
—
—
✓
✓
✓
Scheduled transfers
—
—
✓
✓
✓
Player debts
—
—
✓
✓
✓
Per-operation limits
—
—
✓
✓
✓
Shared accounts
Max 2 members
—
Max 5 members
∞
∞
ADMIN
Player heatmap
—
—
✓
✓ more precise
✓ more precise
Max forms
3
5
10
∞
∞
Your server on the phone
—
—
✓
✓
✓
Max admin roles
owner +2
owner +5
owner +10
∞
∞
Priority support
—
✓
✓
✓
✓
Staff audit log history
7 days
30 days
90 days
∞
∞
Beta features
—
✓
✓
✓
✓
Create server
Character and storage addons stack on any plan.
Cookies ESSENTIAL ONLY
We only use the essential ones: your session, sign-in security and your language. There is no analytics and no advertising, so there is nothing to accept or reject.
Got it
Cookie policy