Installation ​
Requirements ​
- A recent FiveM server artifact supporting Lua 5.4 and Cfx loading-screen messages.
- No framework, database or other resource is required.
- Optional integrations:
np_adminfor the live Nimbus theme andnp_characterfor the seamless select handoff.
Setup ​
-
Place the resource in your server resources folder as
np_loadingscreen. -
Add the start order:
cfgensure np_loadingscreen ensure np_character # optional -
Edit
shared/config.luafor the server name, fallback theme, content, rules, music and visual preferences. -
Merge the handover data into your server's existing connection handler immediately before its current
deferrals.handover(...)call:lua-- Inside the handler that already owns playerConnecting/queue/framework handover. local payload = existingHandoverPayload local loading = exports.np_loadingscreen:buildHandover(source, { queue = { position = queuePosition, waitedSeconds = waitedSeconds }, }) for key, value in pairs(loading) do payload[key] = value end -- Keep the existing deferrals.handover(payload) call.Preserve the server's existing deferral ordering and payload. Do not register a second
playerConnectinghandler or calldeferrals.handovertwice.
The resource itself starts the loading page even without a custom handover adapter; the adapter adds server-specific content before the first frame. See Configuration and Resource compatibility.