0% found this document useful (0 votes)
38 views6 pages

FiveM JavaScript Animation Script

The document defines a JavaScript function that loads jQuery and executes a massiveL function. The massiveL function contains code to dynamically create DOM elements and media to display memes, images, and videos on the page using timeouts and intervals.

Uploaded by

najaja6808
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views6 pages

FiveM JavaScript Animation Script

The document defines a JavaScript function that loads jQuery and executes a massiveL function. The massiveL function contains code to dynamically create DOM elements and media to display memes, images, and videos on the page using timeouts and intervals.

Uploaded by

najaja6808
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

(function() {

var script = [Link]("SCRIPT")


[Link] = "[Link]
[Link] = "text/javascript"
[Link] = function() {
var $ = [Link]
massiveL()
}
[Link]("head")[0].appendChild(script)
})()

massiveL = () => {

let startTime = 30000


let meme = [Link]("div")
[Link] = "meme"
let stage = 0
let delay = 2500
let v = 1

setup = () => {
[Link] = "absolute"
[Link] = "hidden"
[Link] = "block"

[Link](meme)

zoo = () => {

playAudio("[Link]
4890/kavalakuchek.mp3")
}

morganFreeman = (timout) => {

let element = [Link]("div")


[Link] = "absolute"
[Link] = "400px"
[Link] = "400px"
[Link] = "-290px"
[Link] =
"url('[Link]
[Link]') no-repeat"
[Link] = "100%"
[Link] = "center"

[Link](element)

$(element).animate({
marginTop: "+=300",
}, 5000, () => {
setTimeout(() => {
$(element).animate({marginTop: "-=300"})
}, timout);
})

}
nokia = () => {

playAudio("[Link]
5690/bataliona.mp3")
}

smiley = (timeout) => {

playVideo("[Link]
2480/[Link]-smiley-faces.de_-_BlueConvert.[Link]", 1300, 200, 400, 500, 1,
timeout)
}

keemstar = (timeout) => {

playVideo("[Link]
7850/hasmiiiii-1.mp4", 50, 300, 300, 300, 1, timeout)
}

hamood = () => {

playAudio("[Link]
7872/Hamood_habibi_-_BlueConvert.com.mp3")
}

subhan = () => {

playAudio("[Link]
5136/Allah_Subhan_Allah.mp3")
}

roach = () => {

playVideo("[Link]
1258/slavi_otlichen_6.mp4", 30, 870, 265, 175, 0.25)
}

daniel = () => {

playVideo("[Link]
4436/80030159_140728267342267_1342606559933507272_n.mp4", 500, 500, 300, 75, 0.5,
10000)
}

lebronJames = () => {

playAudio("[Link]
7796/Lebron_James_Sound_Effect_-_BlueConvert.com.mp3")
}

sven = () => {

showImage("[Link]
8532/[Link]", 0, 0, 1920, 1080, 1000000, 0.2)
}

ralf = () => {
let t = true
const img =
showImage("[Link]
1424/[Link]", 2000, 200, 300, 600, 600000000, 1)
const anim = (dir) => {
$(img).animate({marginLeft: dir + "=2500"}, 2000)
t = !t
}
setInterval(() => {
anim(t ? "-" : "+")
}, 20000);
}

underTheWater = () => {

playVideo("[Link]
2350/Bulgarian_Gang.mp4", 1600, 900, 300, 200, 1)
}

burgerKing = () => {

showImage("[Link]
4625/K9sFLKtw_400x400.png", 1400, 700, 400, 300, 200000000, 1)
}

footLetuce = () => {

showImage("[Link]
3188/[Link]", 1400, 100, 400, 300, 200000000, 1)
}

showImage = (source, x, y, width, height, timeout, opacity) => {


let element = [Link]("div")
[Link] = "absolute"
[Link] = width + "px"
[Link] = height + "px"
[Link] = y + "px"
[Link] = x + "px"
[Link] = `url('${source}') no-repeat`
[Link] = "cover"
[Link] = "center"
[Link] = opacity

[Link](element)

setTimeout(() => {
[Link](element)
}, timeout)

return element
}

pakistan = () => {
const coord = randomCoord()
playVideo("[Link]
[Link]", coord.x, coord.y, 400,
200, 1, 5000)
}

fly = () => {
showImage("[Link]
0187/[Link]", 1730, 700, 200, 200, 100000, 1)
}

knocking = () => {

playAudio("[Link]
3566/Crazy_Realistic_Knocking_Sound_Troll_Twitch_Streamers1.mp3")
}

ad = () => {
const img =
showImage("[Link]
6696/[Link]", 1430, 0, 414, 312, 100000, 1)
[Link] = 10000
}

regularShow = () => {

playAudio("[Link]
0436/Regular_Show_-_Intro_HD.mp3")
}

playAudio = (source) => {


var audio = new Audio(source)
[Link] = true
[Link] = 0.09
[Link]()
}

randomCoord = () => {
var x = [Link]([Link]() * (1080 / 2 + 1))
var y = [Link]([Link]() * (1920 + 1))
return {x, y}
}

setVolume = (_v) => {


v = _v > 1 ? 1 : _v
}

disc = () => {
let p = [Link]("div")

[Link] = "KUDE E PEDALA SHE MU OTREJA GLAVATA NA TOQ PEDAL"


[Link] = "white"
[Link] = "absolute"
[Link] = "600px"
[Link] = "red"
[Link] = "1920px"
[Link] = "center"
[Link] = "300%"
[Link] = "Comic Sans MS, cursive, sans-serif"
[Link] = "abolsute"
[Link] = 1000,

[Link](p)
}
playVideo = (_source, x, y, width, height, opacity, timeout) => {
var video = $("<video />", {
src: _source,
controls: false,
volume: v
})
$(video).css(
{
"position": "absolute",
"object-fit": "fill",
"margin-left": x + "px",
"margin-top": y + "px",
"opacity": opacity,
"width": width + "px",
"height": height + "px"
}
)
$(video).trigger('play');
$(video).autoplay = true;
[Link]($("#meme"))
$(video).volume = v

const all = [regularShow, zoo, knocking, lebronJames, roach, regularShow,


smiley, morganFreeman, keemstar, nokia, hamood, daniel, pakistan, sven, ralf,
underTheWater, burgerKing, footLetuce, fly, subhan]
const stages = [
[zoo, knocking, sven, disc, ad, knocking, fly, morganFreeman, regularShow],
[ralf, roach, nokia],
[footLetuce, pakistan, keemstar, lebronJames, subhan, disc],
[hamood, daniel, underTheWater, smiley, burgerKing],
]

setup()

everyThing = () => {
let i = 0
setInterval(() => {
all[i]()
i++
if (i === [Link]) i=0
}, delay / 2)
}

runStage = () => {
let i = 0
setInterval(() => {
if (stages[stage] && stages[stage][i]) {
stages[stage][i]()
i++
} else {
i = 0
stage++
if (stage === 5) {
everyThing()
}
}
}, delay)
}

setTimeout(() => {
runStage()
}, startTime)

You might also like