Greasy Fork

Greasy Fork is available in English.

Xbox Cloud Gaming Aimbot (Fortnite)

Aim Assist for ViolentMonkey and Xbox Cloud Gaming

当前为 2024-11-17 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Xbox Cloud Gaming Aimbot (Fortnite)
// @version      1.1
// @description  Aim Assist for ViolentMonkey and Xbox Cloud Gaming
// @author       yeebus
// @match        https://www.xbox.com/en-US/play/launch/fortnite/BT5P2X999VH2
// @icon         https://www.xbox.com/en-US/play/launch/fortnite/BT5P2X999VH2
// @grant        none
// @namespace ViolentMonkey Scripts
// ==/UserScript==

(function() {
    'use strict';

    // Flag to track ESP state
    let espEnabled = false;
    // Flag to track if the menu is visible
    let menuVisible = false;

    // Create a simple hack menu
    const menu = document.createElement('div');
    menu.style.position = 'absolute';
    menu.style.top = '10px';
    menu.style.left = '10px';
    menu.style.backgroundColor = 'rgba(0, 0, 0, 0.7)';
    menu.style.color = 'white';
    menu.style.padding = '10px';
    menu.style.borderRadius = '5px';
    menu.style.zIndex = '9999'; // Make sure the menu appears on top of everything else
    menu.style.display = 'none';  // Initially hide the menu
    menu.innerHTML = `
        <h3>Hack Menu</h3>
        <button id="toggleESP">Toggle ESP</button><br>
        <button id="toggleMenu">Toggle Menu</button>
    `;
    document.body.appendChild(menu);

    // Button event to toggle ESP
    document.getElementById('toggleESP').addEventListener('click', function() {
        espEnabled = !espEnabled;
        console.log(`ESP ${espEnabled ? 'Enabled' : 'Disabled'}`);
    });

    // Button event to toggle the visibility of the hack menu
    document.getElementById('toggleMenu').addEventListener('click', function() {
        menuVisible = !menuVisible;
        menu.style.display = menuVisible ? 'block' : 'none';
    });

    /**
     * Simulate ESP (player detection logic goes here).
     * In this case, we're just drawing a rectangle on the canvas as an example.
     */
    function drawESP() {
        if (!espEnabled) return;

        // Example: This would be where you detect players and draw on the screen
        const canvas = document.querySelector('canvas'); // This may not be the actual canvas in your game
        if (canvas) {
            const ctx = canvas.getContext('2d');
            ctx.strokeStyle = 'red';
            ctx.lineWidth = 2;
            ctx.strokeRect(100, 100, 50, 50); // Example: Draw a box around a player (replace with actual detection)
        }
    }

    // Main loop that constantly checks for player positions and draws ESP if enabled
    function mainLoop() {
        drawESP(); // Update ESP (could be extended with actual player detection)
        requestAnimationFrame(mainLoop);
    }

    // Start the main loop
    mainLoop();
})();