Skip to content

Commit

Permalink
add(nui): loading screen cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
blattersturm committed Aug 31, 2021
1 parent 3faedb6 commit 1e579c6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions content/docs/scripting-manual/nui-development/loading-screens.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ file 'load.html'
loadscreen 'https://my-server.example.com/loadscreen/'
```

## Cursor/input
The loading screen will always be focused for both mouse and keyboard input, however the cursor is not shown by default
for legacy reasons.

The NUI cursor can be enabled by adding a `loadscreen_cursor` entry to the resource manifest that contains the loading screen:

```lua
loadscreen_cursor 'yes'
```

## Handover data
Server scripts can specify data pairs to send to the client loading screen using the `handover` function in the playerConnecting
event. This data will be passed to the loading screen in the `window.nuiHandoverData` property.
Expand Down

0 comments on commit 1e579c6

Please sign in to comment.