Files
CasperV1FiveM/resources/[core]/esx_loadingscreen/js/index.js
2026-07-07 21:08:52 +02:00

23 lines
858 B
JavaScript

// Copyright (c) Jérémie N'gadi
//
// All rights reserved.
//
// Even if 'All rights reserved' is very clear :
//
// You shall not use any piece of this software in a commercial product / service
// You shall not resell this software
// You shall not provide any facility to install this particular software in a commercial product / service
// If you redistribute this software, you must link to ORIGINAL repository at https://github.com/esx-framework/esx-reborn
// This copyright should appear in every part of the project code
document.addEventListener("DOMContentLoaded", () => {
const introTag = document.getElementById("esx_intro");
const loopTag = document.getElementById("esx_loop");
introTag.onended = () => {
introTag.style.display = "none";
loopTag.loop = true; // true
loopTag.play();
};
});