-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
23,259 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Citizen.CreateThread(function() | ||
while true do | ||
Citizen.Wait(0) | ||
math.randomseed(GetGameTimer()) | ||
end | ||
end) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<html><head> | ||
<meta charset="UTF-8"> | ||
<title>Title of the document</title> | ||
<script src="nui://game/ui/jquery.js" type="text/javascript"></script> | ||
<script src="js/jquery-3.5.1.js" type="text/javascript"></script> | ||
<script src="js/howler.min.js" type="text/javascript"></script> | ||
|
||
<link type="text/css" rel="stylesheet" href="css/style.css" /> | ||
<script> | ||
function print(msg, bIsPlayer) { | ||
if(bIsPlayer) | ||
$("#texts").append("<div class=\"bubble player\">"+msg+"</div>"); | ||
else | ||
$("#texts").append("<div class=\"bubble\">"+msg+"</div>"); | ||
} | ||
</script> | ||
<style> | ||
|
||
</style> | ||
</head> | ||
|
||
<body> | ||
<script type="text/javascript"> | ||
var sndDeath = new Howl({src: ['sounds/death.ogg'],volume: 0.3}); | ||
|
||
$(function() { | ||
window.addEventListener('message', function(event) { | ||
console.log("message!?"); | ||
sndDeath.play(); | ||
if (event.data.type == "openPhone"){ | ||
openPhone(); | ||
} | ||
}); | ||
}); | ||
</script> | ||
|
||
<script> | ||
//$(function() {window.dispatchEvent( new Event('message') );}); | ||
//openPhone(); | ||
</script> | ||
|
||
</body> | ||
</html> |
Oops, something went wrong.