GithubHelp home page GithubHelp logo

beyondearthrp / fivem-gta-loading Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bt0r/fivem-gta-loading

0.0 1.0 0.0 50.73 MB

License: Other

Lua 17.53% CSS 36.36% JavaScript 35.42% HTML 10.69%

fivem-gta-loading's Introduction

FiveM GTA Loading Screen

Description

This resource must be use with FiveM, it will show a vanilla GTA loading screen using HTML/CSS/JS. Characters and background are showed randomly so your loading screen is "Never the same"

Installation

Download the resource or git clone it and put it in your resources folder with the name fivem-gta-loading

In your citmp-server.yml file, add the resource:

 - fivem-gta-loading

Questions

How to change image files ?

Just replace files in files/img/background and files/img/characters

How to add/remove images and edit the animation duration time ?

Example : You want to have just 3 backgrounds and 4 different characters. Just edit files/js/loader.js with these values :

maxCharacters  = 4;
maxBackgrounds = 3;
animationTime  = 7000;

Be sure to only have 4 backgrounds and 3 characters images file in the /img folders and keep the files naming.

How to change music file ?

Replace files/sound/intro.ogg file, MP3 is not allowed in NUI browser

The volume is too loud, how can i change it ?

Replace the volume value in files/js/loader.js

volume = 0.5;

Update

v0.0.1: First version

v0.0.2:

  • Change javascript library to use a modern one : VueJS
  • Bugfix : Math.round -> Math.ceil ( 0 value could be possible )

v0.0.3: Remove "StopAudio" button ( NUI doesn't support it )

License

This fivem resource is under Creative Commons CC-BY-NC-SA

Credits

Twitch: http://twitch.tv/bt0r

Twitter: http://twitter.com/biiitor

fivem-gta-loading's People

Contributors

bt0r avatar

Watchers

James Cloos avatar

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.