Aller au contenu
Rechercher dans
  • Plus d’options…
Rechercher les résultats qui contiennent…
Rechercher les résultats dans…
Bienvenue Invité!

Rejoignez la communauté pour avoir accès à l'entièreté du site! Une fois que vous serez enregistré, vous pourrez créer, aider, partager et discuter avec les membres de la communauté et également participer à l'amélioration du site. Alors, qu'attendez vous ? Enregistrez-vous !

Kanda Sorata

release [RELEASE] - Loading screen - material_load

Messages recommandés

Kanda Sorata

Nom de la ressource : Material_Load

Auteur de la ressource : https://forum.fivem.net/u/Loqrin

Lien de téléchargement de la ressource : https://github.com/Loqrin/FiveM-Material_Load-Loading-Screen

Description de la ressource :

 

PRE-WARNING: IF YOU ARE TRYING TO OPEN THE index.html ON YOUR PC AND NOT THROUGH A WEB SERVER (which can be hosted locally on your pc, google about it), IT WILL NOT WORK DUE TO THE CONFIG FILE NOT BEING ABLE TO LOAD BECAUSE OF A POLICY VIOLATION (xmlhttprequest has been blocked by cors policy - google about it). THEREFORE, IF THE LOADING SCREEN DOES NOT LOOK LIKE IT’S WORKING IN YOUR BROWSER, CHECK IN-GAME FIRST!

 

Material_Load is a loading screen developed by github.com/Loqrin 225. The loading screen comes with a configurable JSON file, to configure the loading screen to the user’s liking. The JSON has configs such as:

  • Enable a solid, colour background and set the colour with RGB.
  • Enable a background image, ability to insert a path to the image.
  • Use a different colour for the text and set the colour with RGB.
  • Use bold for the text.
  • Set the server title.
  • Enable audio to be played in the background as well as supply a path to the audio and adjust the volume of it.
  • Ability to set what rules to display on the loading screen.
  • Ability to set what servers / other community things the user has on the loading screen.
  • Ability to set the content of what the server has, on the loading screen.

The loading screen is designed to have a material design feel. It is responsive on different resolutions.

 

##How to Install
The installation is rather quite simple. If you have any loading screens installed, do uninstall them and remove them from your server.cfg.

  1. Download the .zip (release) or clone the repository to your desktop.
  2. Extract the .zip to your desktop.
  3. Make sure the folder is named “loqscript-material_load-loadingscreen”.
  4. Copy the folder to your server resources folder.
  5. Open up your server.cfg and add the following:
start loqscript-material_load-loadingscreen

That’s it. It’s all installed and now it’s time to configure it.


##How to configure
The configuration is, again, rather quite simple. Open the folder “loqscript-material_load-loadingscreen”. Then head into the folder “LoadingScreen”. Within there, you’ll see a file called “config.json”.

  1. Open the config.json file.
  2. Once opened, you’ll be presented with options such as:
  3. The following are the settings and their explanation:
  • "useBackgroundColour" : set this value to true or false if you want to use a solid, background colour.
  • "backgroundColour" : set this value to the format of “0,0,0” where the numbers are the RGB values for the colour of the background.
  • "useBackgroundImage" : set this value to true or false if you want to use a background image instead of a colour.
  • "backgroundImagePath" : set this value to the path of your image. It can be anywhere but preferbly put it in the images folder.
  • "useTextColour" : set this value to true or false if you want to use a custom colour for the text.
  • "textColour" : set this value to the format of “0,0,0” where the numbers are the RGB values for the colour of the text.
  • "useBoldText" : set this value to true or false if you want to use bold text.
  • "serverTitle" : set this value to the name of your server.
  • "playAudioInBackground" : set this value to true or false if you want to play audio in the background when someone is joining.
  • "YTVideoID" : set this value to the ID of a YouTube video. Eg: (https://www.youtube.com/watch?v=HPc8QMycGno 248) ID = HPc8QMycGno.
  • "videoVolume" : set this value between 0 and 100 to change the volume of the video that is playing.
  • "rule1" : set this value to whatever you want the rules to be. Same applies to rule2 to rule7.
  • "servers1" : set this value to whatever you want the rules to be. Same applies to servers2 to servers7.
  • "content1" : set this value to whatever you want the rules to be. Same applies to content2 to content7.

ALL YOU HAVE TO DO IS INSERT THE CONTENT INBETWEEN THE QUOTATION ("") MARKS! DO NOT ADD ANY EXTRA QUOTATION ("") MARKS! DO NOT CHANGE ANYTHING ELSE SUCH AS COMMAS OR TRY TO ADD MORE RULES, SERVERS OR CONTENT SETTINGS! IT WILL BREAK AND NOT WORK! WORK WITH WHAT IS SUPPLIED!

  1. If you do use a background image, do not forget to include it in the “__resource.lua” file.
  • If it’s a background: insert it under the heading “–Loading Image Files–” inside ‘’. Inside the ‘’ is the path to your background.

 

Screenshots :

 

 

Lien original: https://forum.fivem.net/t/release-new-update-v-1-1-loading-screen-loqscript-material-load/34581

Partager ce message


Lien à poster
Partager sur d’autres sites

Créer un compte ou se connecter pour commenter

Vous devez être membre afin de pouvoir déposer un commentaire

Créer un compte

Créez un compte sur notre communauté. C’est facile !

Créer un nouveau compte

Se connecter

Vous avez déjà un compte ? Connectez-vous ici.

Connectez-vous maintenant

×
×
  • Créer...

Information importante

En utilisant ce site, vous acceptez les présents règlements Conditions d’utilisation, Politique de confidentialité,Règles.