[Help] {HTML} FiveM not loading images for loading screen HTML

Hi there, after the FiveM update I cannot play videos for a loading screen anymore. Probably something to do with the size of the file.

Anyways, I’ve resorted to just a static image. Which i’m O.K with. For some reason I cannot even get the images to work now. What happens is, everything loads up. But the screen will be black. Then on every location where a picture is supposed to be, it shows a transparent box with a white border, along with the little png icon in the top left. Signaling an error, of course.
Im very new to HTML so I’m definitely doing something wrong. Just need a second pair of eyes to take a look.

What I’ve done to fix the issue myself, is remove the video code entries. Replace them with image code.

Everything works just fine in my browser when I test. But when i am in-game loading via FiveM, it doesn’t work.

Thanks in advance.

<!DOCTYPE html>

<html>

<head>

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet" href="css/style.css" />

<link rel="stylesheet" href="css/index.css" />

<style>

@font-face {

  font-family: BAUHS93;

  src: url(webfonts/BAUHS93.woff);

}

@font-face {

  font-family: HARLOWSI;

  src: url(webfonts/HARLOWSI_1.ttf);

}

p {

  font-family: forte;

  font-size: 60px;

  text-align: center;

  color: red;

  text-transform: uppercase;

}

p:hover {

  font-style: italic;

  -ms-transform: rotate(20deg);

  transform: rotate(20deg);

}

h1 {

  font-family: HARLOWSI;

  font-size: 26px;

  text-align: center;

  color: white;

}

h1:hover {

  font-style: italic;

  -ms-transform: rotate(20deg);

  transform: rotate(20deg);

}

h2 {

  font-family: BAUHS93;

  font-size: 40px;

  text-align: center;

  color: white;

  text-transform: uppercase;

}

h2:hover {

  font-style: italic;

  -ms-transform: rotate(20deg);

  transform: rotate(20deg);

}

.scroll::-webkit-scrollbar {

    display: none;

}

.scroll {

    -ms-overflow-style: none;

}

.okvir { 

  height: 860px;

  width: 1600px;

  position: relative;

  padding:0.25em;

  display:inline-block;

  border:none;

  background-color:none;

  background:

    linear-gradient(to top,lightgreen)  0 100%,

    linear-gradient(to right,lightgreen)100% bottom,

    linear-gradient(to top,lightgreen) bottom right ,

    linear-gradient(to top,lightgreen) top right;

  background-size: 3px 0%, 0% 3px,3px 0%, 0% 6px;

  background-repeat:no-repeat,no-repeat,no-repeat,no-repeat;

  transition:1s;

}

.okvir:hover {

  background-size: 6px 100%, 100% 6px, 6px 100%, 100% 6px;

}

.pozicija1 {

  margin: 0;

  position: absolute;

  top: 50%;

  left: 50%;

  -ms-transform: translate(-50%, -50%);

  transform: translate(-50%, -50%);

}

.buttonload {

  opacity: 1;

  background-color: black;

  border: none;

  color: white;

  padding: 20px 40px;

  font-size: 32px;

}

.pozicija2 {

  margin: 0;

  position: absolute;

  top: 3%;

  left: 50%;

  -ms-transform: translate(-50%, -50%);

  transform: translate(-50%, -50%);

}

.buttonload:hover {

  opacity: 1;

  animation: myfirst 10s 2;

}

@keyframes myfirst {

  0%   {background: red; left: 0px; top: 0px;}

  25%  {background: yellow; left: 20px; top: 0px;}

  50%  {background: blue; left: 20px; top: 20px;}

  75%  {background: green; left: 0px; top: 20px;}

  100% {background: red; left: 0px; top: 0px;}

}

* {

  box-sizing: border-box;

}

body {

  margin: 0;

  font-family: Arial;

  font-size: 17px;

}

#myImage {

  position: fixed;

  right: 0;

  bottom: 0;

  min-width: 100%; 

  min-height: 100%;

}

.content {

  position: fixed;

  bottom: 0;

  background: rgba(0, 0, 0, 0.5);

  color: #f1f1f1;

  width: 100%;

  padding: 20px;

}

#myBtn {

  width: 200px;

  font-size: 18px;

  padding: 10px;

  border: none;

  background: #000;

  color: #fff;

  cursor: pointer;

}

#myBtn:hover {

  background: #ddd;

  color: black;

}

</style>

</head>

<body>

<img src="Background.jpg" id="myImage">

  <source src="Background.jpg" type="Image">

</Image>

<div class="pozicija1">

  <div class="okvir">

    <div id="intro">

      <div>

        <img src='png.png' class="heartBeat animated infinite"style='width:300px;height:300px;'>

      </div>

      <div><img src='Discord.png' style='width:70px;height:17px'>

        <div> 

          <font face='HARLOWSI' size="6px" style='color: brown;'>Join our Discord!</font>

          <br>

          <font face='Montserrat' size="3px" style='color: slategray;'>discord.gg/6PY9WHm</font>

        </div>

      </div>

    </div>

  </div>

</div>

<div class="pozicija2">

  <div class="okvir2">

    <button class="buttonload">

    <i class="fa fa-circle-o-notch fa-spin"></i> Loading

  </button>

  </div>

</div>

<audio id="leson" src="redrighthand.mp3" autoplay="true" hidden="true" loop="true">

<script>

var play = false;

var myAudio = document.getElementById("leson");

    

myAudio.volume = 0.1;

function onKeyDown(event) {

  switch (event.keyCode) {

    case 32:                    

      if (play) {

        myAudio.pause();

        play = false;

      } else {

        myAudio.play();

        play = true;

      }

    break;

    }

      return false;

    }

window.addEventListener("keydown", onKeyDown, false);

</script>

</body>

</html>

Did you include your picture as a file in fxmanifest.lua?

Yes I did.

Can you upload the source code to a site like GitHub so we can see everything in the project? This would make it easier to debug imo.