GithubHelp home page GithubHelp logo

beyondearthrp / fivem-material_load-loading-screen Goto Github PK

View Code? Open in Web Editor NEW

This project forked from loqrin/fivem-material_load-loading-screen

0.0 1.0 0.0 6.61 MB

Material_Load is a loading screen for servers on FiveM, a GTA V mod. It is also configurable to suit the user's wants.

License: GNU General Public License v3.0

CSS 7.40% HTML 46.63% JavaScript 27.54% Lua 18.43%

fivem-material_load-loading-screen's Introduction

[LoqScript] FiveM Loading Screen - Material_Load

Material_Load is a loading screen developed by github.com/Loqrin. 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. If you wish to view an example, you can visit the following YouTube link: https://youtu.be/B32-xvPCdP8


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 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: alt text
  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) 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.

That's it. Not much to it. Thank you for using my loading screen.


If you appreciate any of my work and wish to purchase me a coffe, or something else, you can always send a donation to my PayPal by clicking the button below.

paypal

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.