diff --git a/resources/[standalone]/am_hackgame/README.md b/resources/[standalone]/am_hackgame/README.md new file mode 100644 index 0000000..70718a9 --- /dev/null +++ b/resources/[standalone]/am_hackgame/README.md @@ -0,0 +1,38 @@ + + +### Comments + +American script presents an Echo Script in the most unique and fun way, that is an immersion into Roleplay. + +### Install Am_HackGame + +1) Drag & drop `Am_HackGame` Remember to always leave it inside FOLDER /Resources +2) Go to your CFG server and copy this from here : `start am_hackgame` and proceed to paste it inside your CFG +3) Restart your server and test it, inside our folder you will find Hack.lua, there you can check some things and modify. + +### HOW TO USE + +To add it to your Trust Script, you must copy this from below and then restart the script. + +```lua + exports['am_hackgame']:StartGame(function(success) + if success then + -- do something + else + -- do something + end + end, 3, 60) -- Here below is the amount you want, example : - (3) is the TOTAL number of figures you want the User to find. (60) - Here you must set the number of seconds the user will have to complete the hacking. +``` + +### PREVIEW +We have Robos where we integrate this and more in our store. + +https://american-script.tebex.io/ + +### SUPPORT + +https://discord.gg/VZK3zHScD8 diff --git a/resources/[standalone]/am_hackgame/client/hack.lua b/resources/[standalone]/am_hackgame/client/hack.lua new file mode 100644 index 0000000..6ddb68d --- /dev/null +++ b/resources/[standalone]/am_hackgame/client/hack.lua @@ -0,0 +1,57 @@ +--<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- + +--<+>-- --<+>-- --<+>-- --<+>-- ☾ AMERICAN SCRIPT ☾ --<+>-- --<+>-- --<+>-- --<+>-- + +--<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- + + +local QBCore = exports['qb-core']:GetCoreObject() + +--<+>-- --<+>-- --<+>-- --<+>-- COUNTER CALLBACK --<+>-- --<+>-- --<+>-- --<+>-- + +RegisterNUICallback('CounterCallback', function(data, cb) + SetNuiFocus(false, false) + Callback(data.success) + SendNUIMessage({open = false}) + cb('ok') +end) + + +--<+>-- --<+>-- --<+>-- --<+>-- START GAME --<+>-- --<+>-- --<+>-- --<+>-- + +local function StartGame(callback, piezas, timer) + Callback = callback + SendNUIMessage({ + open = true, + piezasencontradas = piezas, + timer = timer, + }) + SetNuiFocus(true, true) +end + + + +--<+>-- --<+>-- --<+>-- --<+>-- CLOSE GAME --<+>-- --<+>-- --<+>-- --<+>-- + +RegisterNUICallback('CloseGame', function(data, cb) + SetNuiFocus(false, false) + Callback(data.success) + SendNUIMessage({open = false}) + cb('ok') +end) + +--<+>-- --<+>-- --<+>-- --<+>-- EXPORT --<+>-- --<+>-- --<+>-- --<+>-- + +exports('StartGame', StartGame) + +--<+>-- --<+>-- --<+>-- --<+>-- TEST EVENTS/COMMANDS THESE CAN BE DELETED ---- ---- ---- ---- + +RegisterCommand('TESTHACKam', function() + exports['am_hackgame']:StartGame(function(success) + if success then + QBCore.Functions.Notify('GENNEMFØRT') + else + QBCore.Functions.Notify('Fejlet! Har du glemt hvordan man gør?!') + end + end, 9, 60) +end) diff --git a/resources/[standalone]/am_hackgame/fxmanifest.lua b/resources/[standalone]/am_hackgame/fxmanifest.lua new file mode 100644 index 0000000..136f5b4 --- /dev/null +++ b/resources/[standalone]/am_hackgame/fxmanifest.lua @@ -0,0 +1,30 @@ +----<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- + +--<+>-- --<+>-- --<+>-- --<+>-- ☾ AMERICAN SCRIPT ☾ --<+>-- --<+>-- --<+>-- --<+>-- + +--<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- +fx_version 'cerulean' + +game 'gta5' + +author 'FelipeKLFH#5810' + +description 'DeSiGnEr AmErIcAn ScRiPtS' + +version '1.0.2' + +lua54 'yes' + +ui_page 'html/index.html' + +files { + 'html/**/*', + 'html/*.png', + 'html/bankgothic.ttf' +} +client_scripts { + 'client/*' +} +escrow_ignore { + 'client/*' +} diff --git a/resources/[standalone]/am_hackgame/html/LGO.png b/resources/[standalone]/am_hackgame/html/LGO.png new file mode 100644 index 0000000..eb5d871 Binary files /dev/null and b/resources/[standalone]/am_hackgame/html/LGO.png differ diff --git a/resources/[standalone]/am_hackgame/html/bankgothic.ttf b/resources/[standalone]/am_hackgame/html/bankgothic.ttf new file mode 100644 index 0000000..07b327b Binary files /dev/null and b/resources/[standalone]/am_hackgame/html/bankgothic.ttf differ diff --git a/resources/[standalone]/am_hackgame/html/css/main.css b/resources/[standalone]/am_hackgame/html/css/main.css new file mode 100644 index 0000000..2d64452 --- /dev/null +++ b/resources/[standalone]/am_hackgame/html/css/main.css @@ -0,0 +1,318 @@ +/*--<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- + +--<+>-- --<+>-- --<+>-- --<+>-- ☾ AMERICAN SCRIPT ☾ --<+>-- --<+>-- --<+>-- --<+>-- + +--<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- --<+>-- */ + + +@font-face { + font-family: bankgothic; + src: url('../bankgothic.ttf'); +} + +body { + background-color: none !important; + margin: auto; + font-family: 'Aldrich'; +} + +.hidden { + display: none !important; +} + +/* COMPUTER Container */ +.pc-frame { + position: absolute; + top: -10vh; + left: -12vw; + height: 82.5vh; + width: 132vh; +/* width: 31.3vh; + bottom: -37vh; + height: 63.7vh; + left: -155.9%; */ + margin: 5vh; + z-index: 150; + pointer-events: none; + animation: scaleUp 1.10s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards; +} + +/* Phone Container */ +.phone-frame { + position: absolute; + width: 31.3vh; + bottom: -7vh; + height: 64.1vh; + left: -19.9%; +/* width: 31.3vh; + bottom: -37vh; + height: 63.7vh; + left: -155.9%; */ + margin: 5vh; + z-index: 150; + pointer-events: none; + animation: scaleUp 1.10s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards; +} + +/* LOGO */ +.logo-frame { + position: absolute; + width: 40vh; + bottom: 30vh; + height: 24.1vh; + left: -32%; +/* width: 31.3vh; + bottom: -37vh; + height: 63.7vh; + left: -155.9%; */ + margin: 5vh; + z-index: 150; + pointer-events: none; + animation: scaleUp 2.10s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards; +} + + +#start-container { + position: absolute; + top: 19vh; + left: 10vw; + height: 60vh; + width: 29.5vh; + border: 5px solid rgba(31, 30, 30, 1); + background: rgba(255, 255, 255, 0.7); + box-shadow: 0px 9px 13px 0px rgba(0, 0, 0, 0.4); + border-radius: 2.5vh; + text-align: center; + color: rgba(0,0,0,0.7); + text-shadow: + 0px 4px 3px rgba(0,0,0,0.6), + 0px 8px 13px rgba(0,0,0,0.3), + 0px 18px 23px rgba(0,0,0,0.3); + + background-image: url("https://assets.codepen.io/285131/paintbg.jpg"); + background-size: cover; + background-repeat: no-repeat; + + animation: roadRunnerIn .5s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards; +} + + +.text { + font-weight: 100; + font-size: 28px; + color: #fafafa; +} +.dud { + color: #757575; +} + + +.tituleone { + font-family: bankgothic; + position: absolute; + right: 0vh; + + bottom: 34.5vh; + color: #000000; + height: 3vh; + width: 30vh; + background: rgba(255, 255, 255, 0.7); + box-shadow: 0px 9px 13px 0px rgba(0, 0, 0, 0.4); + border-radius: 0.5vh; + + font-size: 20px; + line-height: 30px; + letter-spacing: 1.7px; + text-align: center; + +} + +.titulesecond { + font-family: bankgothic; + position: absolute; + right: 0vh; + + bottom: 20.5vh; + color: #000000; + height: 3vh; + width: 30vh; + background: rgba(255, 255, 255, 0.7); + box-shadow: 0px 9px 13px 0px rgba(0, 0, 0, 0.4); + border-radius: 0.5vh; + + font-size: 20px; + line-height: 30px; + letter-spacing: 1.7px; + text-align: center; + +} + +.chipmuestra { + font-size: 3rem; + position: absolute; + bottom: 12.5vh; + right: 12vh; + + border: transparent !important; + background-color: transparent !important; + color: #000000 +} + +.progress-container .progress { + position: absolute; + left: 2.5vh; + top: 30vh; + height: 2.5vh; + width: 0; + border-radius: 25px; + background: rgba(0, 0, 0, 0.8); + transition: width 0.4s ease; +} + +#game-container { + position: absolute; + top: 16vh; + left: 22vw; + height: 65vh; + width: 100vh; + border: 5px solid rgba(31, 30, 30, 1); + border-radius: 25px; + background-color: black; + text-align: center; + box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px; + background-image: url("https://assets.codepen.io/285131/paintbg.jpg"); + background-size: cover; + background-repeat: no-repeat; + + animation: scaleUp 1.10s cubic-bezier(0.165, 0.840, 0.440, 1.000) forwards; +} + +#game-area { + position: fixed; + margin: 3vh; + border: transparent; + border-radius: 25px; + padding: 20px; + top: 17vh; + height: 43vh; + width: 90vh; + pointer-events: auto; +} + +.wrapper { + position: relative; + height: 65vh; + width: 100vh; + background-color: transparent !important; + overflow: hidden; + pointer-events: none; + border-radius: 25px; +} + +.shadow { + position: absolute; + width: 200vw; + height: 200vh; + left: 52.5%; + top: 52%; + transform: translateX(-50%) translateY(-50%); + background-image: radial-gradient(circle at center, transparent, #000 3%); + background-color: rgba(255, 255, 255, 0.2) +} + +#chip { + font-size: 2rem; + overflow: visible; + position: absolute; + top: 0; + left: 0; + margin: 0; + padding: 0; + border: transparent !important; + background-color: transparent !important; + color: #000000 +} + +#info-container { + font-family: bankgothic; + position: absolute; + top: 54.6vh; + left: 41vh; + height: 10vh; + width: 20vh; + background-color: rgba(31, 30, 30, 1); + border-top-left-radius: 25px; + border-top-right-radius: 85px; + color: rgba(255,255,255,0.8); + text-shadow: + 0px 4px 3px rgba(0,0,0,0.6), + 0px 8px 13px rgba(0,0,0,0.3), + 0px 18px 23px rgba(0,0,0,0.3); + text-align: center; + padding: 0.2vh; + font-size: 0.75rem; + letter-spacing: 2px; +} + +#countdown-container { + font-family: bankgothic; + position: absolute; + top: 61.7vh; + left: 41vh; + height: 1.8vh; + width: 14vw; + background-color: rgba(31, 30, 30, 1); + border-top-left-radius: 25px; + border-top-right-radius: 25px; + text-align: center; + color: rgba(255,255,255,0.8); + text-shadow: + 0px 4px 3px rgba(0,0,0,0.6), + 0px 8px 13px rgba(0,0,0,0.3), + 0px 18px 23px rgba(0,0,0,0.3); + padding: 1vh; + font-size: 0.75rem; + letter-spacing: 2px; +} + +#countdown { + position: absolute; + top: -0.9vh; +} + + + +@keyframes roadRunnerIn { + 0% { + transform:translateX(-1500px) skewX(30deg) scaleX(1.3); + } + 70% { + transform:translateX(30px) skewX(0deg) scaleX(.9); + } + 100% { + transform:translateX(0px) skewX(0deg) scaleX(1); + } +} + + + +@keyframes scaleUp { + 0% { + transform:scale(.8) translateY(-50px); + opacity:0; + } + 100% { + transform:scale(1) translateY(0px); + opacity:1; + } +} +@keyframes blowUpContentTwo { + 0% { + transform:scale(2); + opacity:0; + } + 100% { + transform:scale(1); + opacity:1; + } +} \ No newline at end of file diff --git a/resources/[standalone]/am_hackgame/html/index.html b/resources/[standalone]/am_hackgame/html/index.html new file mode 100644 index 0000000..a21aa70 --- /dev/null +++ b/resources/[standalone]/am_hackgame/html/index.html @@ -0,0 +1,66 @@ + + + + +
+ + + +{0}', + 'example:important': '