EVENT_FIVEM_CONFIGURATION tells a connected server to fetch and apply its saved configuration. CAD emits it when an administrator selects Apply and restart under In-Game Integration > FiveM, after verifying the saved revision and catalog fingerprint. Save alone does not emit this event.
Delivery
Authenticate a websocket session on/apiWsHub with the community ID, API key and target serverId, and listen for pushEvent. The event is delivered as a JSON string to sessions authenticated for that community/server pair. Parse the string before accessing its fields.
This event is websocket-only: it has no legacy HTTP push fallback and is not queued for disconnected servers. If the server is disconnected, reconnect and apply again, or restart the resource so it fetches the saved settings on startup. Successful dispatch means a websocket message was sent, not that the resource finished restarting.
Payload
Resource behavior
The official SonoranCADFiveM resource handles this event automatically:- Check the server ID and supported schema version, and ignore unchanged or obsolete notifications. A changed catalog fingerprint can require a reload even at the same saved revision.
- Fetch configuration and verify that the returned revision and catalog fingerprint match the event before scheduling a restart. If verification fails, the restart is cancelled; use Apply again in CAD.
- Restart the
sonorancadresource after five seconds. The resource fetches configuration again during startup, so a later save can become the revision loaded at startup. - Load the resolved settings and acknowledge the loaded revision. A
409acknowledgement indicates that the saved revision has changed since it was loaded; the administrator can apply the newer saved settings.

