Generátor načítací obrazovky
Resource s načítací obrazovkou pro RedM: obrázek nebo video na pozadí, hudba, skutečný ukazatel průběhu a řádky logu, ke stažení jako zip.
Přečíst dokumentaciText
Pozadí
Hudba
Načítání a resource
Náhled simuluje události průběhu a logu; ve hře posílá RedM ty skutečné.
fx_version 'cerulean'
game 'rdr3'
rdr3_warning 'I acknowledge that this is a prerelease build of RedM, and I am aware my resources *will* become incompatible once RedM ships.'
name 'my_loadscreen'
description 'Loading screen made with fivemad.com/redm/tools/loading-screen'
loadscreen 'html/index.html'
loadscreen_cursor 'yes'
loadscreen_manual_shutdown 'yes'
client_script 'client.lua'
files {
'html/index.html',
}
Tyto poznámky jsou zatím v angličtině.
Install
- Download the zip and unpack it into your
resourcesfolder. - Add
ensure my_loadscreen(your resource name) toserver.cfg. - Only one loading screen can be active. Stop or remove any other resource with a
loadscreenline, such as the one in the VORP recipe.
What it listens to
While a player joins, RedM sends the page loadProgress with a fraction from 0 to 1 andonLogLine with the current log message. The bar and the log line are filled from those, so they show real progress and not a timer.
Closing it
Without "Close it on spawn" the screen closes when a script calls ShutdownLoadingScreen, whichspawnmanager does when it spawns the player. With it, the resource keeps the screen up until playerSpawned fires and then calls ShutdownLoadingScreen andShutdownLoadingScreenNui. That event comes from spawnmanager, so keep it running, or change the event in client.lua to the one your framework fires after character select.
Size
Every file in the resource is downloaded by each player before the screen can show, so a 200 MB video means a long black screen first. A compressed webm under 20 MB or a single image is the safe choice.
Další nástroje pro RedM
- Generátor server.cfgRedM server.cfg se set gamename rdr3, vynuceným buildem a presety převzatými z výchozího, VORP a RSG recipe pro txAdmin.
- Tvůrce promptůSestav skupinu promptů RDR2 (stisk, držení nebo mačkání) na herních controlech a časech držení, prohlédni si náhled a zkopíruj Lua.
- Převodník fotek z foto režimuPřeveď soubory z foto režimu RDR2 (PRDR) na obrázky JPEG přímo v prohlížeči. Nic se nenahrává.