The first two screens a player sees: which character, and where do you want to start?
This resource was called dps_welcome until v0.4.0. It is our port of qbx_spawn, and DPS
ports keep the original's name with the dps_ prefix. If you are updating: rename the folder
to dps_spawn and change ensure dps_welcome to ensure dps_spawn in server.cfg.
For Qbox servers on FiveM for GTAV Enhanced.
This is a port of qbx_spawn by the Qbox Project (version 0.1.1). Their spawn logic is the base of this resource, and it is licensed GPL-3.0, as this resource is.
Loading screen video: "FiveM Loadingscreen #16" by Warraa_. Free to use with credit. The video file is not in this repository. See "The loading video" below.
Loading screen music, on the DPS server. None of these files is in this repository.
- "Athena", "Iridium" and "White Tiger" by Karl Casey @ White Bat Audio, from the mix "80's Synthwave Playlist - Neon Skylines". Free to use with credit.
- "Aggressive Computer Gaming" by Alex Productions, under the Creative Commons Attribution 3.0 licence. A fade in and a fade out were added.
- A character screen in place of the plain menu box in
qbx_core. A card for each character: a name at rest, and the rank, date of birth and job on the card you pull out. No money, no account number. The character stands on screen beside the list.qbx_corestill lists, loads, creates and deletes the characters. See "Turn on the character screen". - A DPS screen in place of the heist map. A list of cards on the left, the world on the right.
- A camera over every spawn point. Move down the list and the camera glides to the next place, so you see where you are going before you go.
- Continue. The top card is always where you left off.
- Job spawns. Police see their station, medics see their hospital. Nobody else sees those cards.
- Homes. Any property you own shows as a card (needs
qbx_properties). - A welcome for new characters. A slow flight in over the city, with the server's name, before the list opens.
- A loading screen in the same look, with a progress block, news, server information, a
staff list, links and music. Its settings are in
web/loading/config.js.
Both screens are drawn in version 2 of the DPS look, the same as the DPS HUD: short labels in a narrow slanted face, blocks on haze with an orange edge and soft corners, the thing in focus lit cream.
- The fonts ship inside the resource, in
web/fonts. Nothing in the look is loaded from the internet. Barlow Condensed is under the SIL Open Font License, and its licence is beside it. - The progress bar on the loading screen is a block whose fill is the progress, with the step written inside it.
- Sizes follow the screen's height, so both screens scale as the HUD does.
- The colours are set in
web/style.cssandweb/loading/loading.css. A loading screen runs before any resource has started, so it cannot take them from anywhere else.
The loading screen plays one video file behind everything: web/loading/loading.webm.
The file is not in this repository. A clip that is free to use is not always ours to republish, so each server brings its own. Without the file the screen shows its own dusk backdrop, and nothing breaks.
To use a clip, or swap it for another: put one file in that folder with that name. Nothing else changes. Restart the resource and players see it the next time they join.
What the file should be:
| Format | .webm, VP9 |
| Sound | None. The video plays muted. Music is its own setting. |
| Loop | The last frame should match the first, so it does not jump when it starts again |
| Size | Every player downloads it on their first join. 1440p at 60 for under three minutes is about 100 MB. |
The background can also be pictures, or a YouTube video, set in web/loading/config.js. A
YouTube video is streamed from the internet each time and its owner can switch that off.
- Put this folder in
resources/[dps]/. - Do not run
qbx_spawnas well. This resource answers to its name, soqbx_coreneeds no change. ensure dps_spawninserver.cfg.
Needs ox_lib, oxmysql, qbx_core and dps_lib.
When the server starts, look for this line in the console:
[dps_spawn] v0.5.1 ready, answering as qbx_spawn (started)
[dps_spawn] character screen: on (qbx_core useExternalCharacters = true)
If it is red instead, qbx_core cannot find the spawn screen. Check that qbx_spawn is not also
in your resources folder.
One setting, in qbx_core/config/client.lua:
characters = {
useExternalCharacters = true,That tells qbx_core not to draw its own menu. This resource then draws the screen and asks
qbx_core to do the work. Set it back to false and qbx_core draws its own menu again. The
two never run together.
The other settings in that block still apply: the rooms the character stands in (locations),
whether players can delete a character (enableDeleteButton), the date limits and the list of
nationalities.
Each card carries a photo of the character's face. The game makes it, the same way it makes the
pictures in its own contact lists, so nothing is stored and nothing is uploaded. The photo is
taken only once the face and the clothes have finished loading, which on a first join can take a
few seconds, and a failed photo is tried once more. If the game still cannot make one, the card
shows a plain head and shoulders. On a test server the console says how many photos were made,
for example character photos for player 1: 1 of 1.
Everything is in config/client.lua.
| Setting | What it changes |
|---|---|
serverName |
The name at the top of the screen and in the welcome |
welcome |
Turn the new-character flight on or off, and where it starts |
camera |
How far back and how high the camera sits, and how fast it glides |
spawns |
The spawn points |
Stand where players should appear, face the way they should face, and note your position
(/coords in most admin menus). Then add a block to spawns:
{
label = 'Del Perro Pier',
detail = 'West side',
coords = vec4(-1650.0, -1000.0, 13.0, 50.0),
},Add jobs. Only players with that job see the card.
jobs = 'police', -- one job
jobs = { 'police', 'sheriff' }, -- any of these
jobs = { police = 2 }, -- police at grade 2 or higher
onDuty = true, -- and only while on dutyThe screen takes its colours from dps_lib. Change the theme there and this screen follows. See
docs/change-the-look.md in the pack.
The character screen:
- Up / Down (or W / S): look at the next character.
- Enter: play that character. On an empty slot, create one.
- Delete: delete that character. It asks first.
- Mouse: click a card to look, click it again to play.
The spawn screen:
- Up / Down (or W / S): look at the next spawn point.
- Enter: start there.
- Mouse: click a card to look, click it again to start.