mirror of
https://github.com/darksaid98/Finger-Print-Hacking-Game.git
synced 2026-12-02 06:28:47 +00:00
thank me later
This commit is contained in:
46 files changed
+1017
No files matched your search
@@ -0,0 +1,6 @@
|
||||
RegisterNetEvent("utk_hack:playSound")
|
||||
AddEventHandler("utk_hack:playSound", function(name)
|
||||
local t = {transactionType = name}
|
||||
|
||||
SendNuiMessage(json.encode(t))
|
||||
end)
|
||||
@@ -0,0 +1,24 @@
|
||||
fx_version "adamant"
|
||||
|
||||
game "gta5"
|
||||
|
||||
files {
|
||||
"html/index.html",
|
||||
"html/success.ogg",
|
||||
"html/intro.ogg",
|
||||
"html/fail.ogg",
|
||||
"sounds/dlcheist3_game.dat151.rel",
|
||||
"sounds/dlcheist3_game.dat151.nametable",
|
||||
"sounds/dlcheist3_sounds.dat54.rel",
|
||||
"sounds/dlcheist3_sounds.dat54.nametable",
|
||||
"sounds/dlcheist3/door_hacking.awc",
|
||||
"sounds/dlcheist3/fingerprint_match.awc"
|
||||
}
|
||||
|
||||
ui_page "html/index.html"
|
||||
|
||||
data_file "AUDIO_GAMEDATA" "sounds/dlcheist3_game.dat"
|
||||
data_file "AUDIO_SOUNDDATA" "sounds/dlcheist3_sounds.dat"
|
||||
data_file "AUDIO_WAVEPACK" "sounds/dlcheist3"
|
||||
|
||||
client_script "client.lua"
|
||||
Binary file not shown.
@@ -0,0 +1,46 @@
|
||||
<!--
|
||||
Code by Scott Plunkett aka. plunkettscott.
|
||||
Original code: https://github.com/plunkettscott/interact-sound
|
||||
His Github: https://github.com/plunkettscott
|
||||
Credits and thanks to him.
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<script src="nui://game/ui/jquery.js" type="text/javascript"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/howler/2.1.1/howler.min.js" type="text/javascript"></script>
|
||||
<script>
|
||||
var audioPlayer = null;
|
||||
window.addEventListener('message', function(event) {
|
||||
if (event.data.transactionType == "intro") {
|
||||
|
||||
if (audioPlayer != null) {
|
||||
audioPlayer.pause();
|
||||
}
|
||||
|
||||
audioPlayer = new Howl({src: ["./intro.ogg"]});
|
||||
audioPlayer.volume(0.2);
|
||||
audioPlayer.play();
|
||||
|
||||
} else if (event.data.transactionType == "success") {
|
||||
|
||||
if (audioPlayer != null) {
|
||||
audioPlayer.pause();
|
||||
}
|
||||
|
||||
audioPlayer = new Howl({src: ["./success.ogg"]});
|
||||
audioPlayer.volume(0.2);
|
||||
audioPlayer.play();
|
||||
} else if (event.data.transactionType == "fail") {
|
||||
|
||||
if (audioPlayer != null) {
|
||||
audioPlayer.pause();
|
||||
}
|
||||
|
||||
audioPlayer = new Howl({src: ["./fail.ogg"]});
|
||||
audioPlayer.volume(0.2);
|
||||
audioPlayer.play();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
</html>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user