Skip to content

Resource compatibility ​

np_loadingscreen has no hard dependency on any np_* resource. Integrations are optional and use exports or explicit handover fields.

Resource or system Integration
np_admin Replicated GlobalState.npTheme supplies brand, strength and material. Config fallback is used without it.
np_character Keeps the loading page visible while character data and the select scene prepare, then calls handoff() before revealing its NUI. If absent, FiveM's direct shutdown fallback is used.
np_discord Does not expose member counts or channel history. Supply public stats/news from your existing bot bridge through handover fields or registerNews.
Queue resource Merge public queue position, wait time and label into the current handover object.
Other np_* resources Register tips, keybind groups and news after start. Entries from stopped resources are removed.

Handover ownership ​

Cfx has a single handover payload owned by the server's connection/queue/framework flow. buildHandover(source, extra?) returns JSON-safe resource data; it does not install another playerConnecting handler or call deferrals.handover itself. Merge its fields into the payload your server already built.

The loadscreen page can display rules but cannot send a button action back to Lua. If acceptance is mandatory, collect it through deferrals.presentCard or a regular NUI after the loadscreen exits. Only then call recordRulesAcceptance(source, version) from a trusted server handler.

Music state is local to CEF and cannot be transferred into the separate np_character NUI page.