Infinity run + SprintHOOK

YarikVL

Известный
Проверенный
4,631
1,745
Нужны эти 2 скрипта в ОДНОМ ФАЙЛЕ
Lua:
local mem = require "memory"
local sprint = true
require "lib.moonloader"

function main()
    while not isSampAvailable() do wait(100) end
    sampRegisterChatCommand("sprint", function()
        sprint = not sprint
        sampAddChatMessage(sprint and "ON" or "OFF", -1)
    end)
    while true do wait(0)
        if sampIsLocalPlayerSpawned() then
            if sprint and isCharOnFoot(playerPed) and not isCharInAnyCar(playerPed) and isKeyDown(16) and not sampIsChatInputActive() and not isSampfuncsConsoleActive() and not sampIsDialogActive() then
                setGameKeyState(16, 256)
                wait(10)
                setGameKeyState(16, 0)
            end
        end
        if isSampAvailable() then
            mem.setint8(0xB7CEE4, 1)
        end
    end
end
/sprint отрубить спринт хук


Код не мой
 

laxfeed1

Участник
Автор темы
186
13
Lua:
local mem = require "memory"
local sprint = true
require "lib.moonloader"

function main()
    while not isSampAvailable() do wait(100) end
    sampRegisterChatCommand("sprint", function()
        sprint = not sprint
        sampAddChatMessage(sprint and "ON" or "OFF", -1)
    end)
    while true do wait(0)
        if sampIsLocalPlayerSpawned() then
            if sprint and isCharOnFoot(playerPed) and not isCharInAnyCar(playerPed) and isKeyDown(16) and not sampIsChatInputActive() and not isSampfuncsConsoleActive() and not sampIsDialogActive() then
                setGameKeyState(16, 256)
                wait(10)
                setGameKeyState(16, 0)
            end
        end
        if isSampAvailable() then
            mem.setint8(0xB7CEE4, 1)
        end
    end
end
/sprint отрубить спринт хук


Код не мой
включаю, отключаю — вроде ничего не меняется, по моему он не робит

Lua:
local mem = require "memory"
local sprint = true
require "lib.moonloader"

function main()
    while not isSampAvailable() do wait(100) end
    sampRegisterChatCommand("sprint", function()
        sprint = not sprint
        sampAddChatMessage(sprint and "ON" or "OFF", -1)
    end)
    while true do wait(0)
        if sampIsLocalPlayerSpawned() then
            if sprint and isCharOnFoot(playerPed) and not isCharInAnyCar(playerPed) and isKeyDown(16) and not sampIsChatInputActive() and not isSampfuncsConsoleActive() and not sampIsDialogActive() then
                setGameKeyState(16, 256)
                wait(10)
                setGameKeyState(16, 0)
            end
        end
        if isSampAvailable() then
            mem.setint8(0xB7CEE4, 1)
        end
    end
end
/sprint отрубить спринт хук


Код не мой
При этом он баганный. у меня персонаж почему-то при прыжке начинает падать, после того, как сверну и разверну игру
 

sat0ry

Известный
1,092
288
включаю, отключаю — вроде ничего не меняется, по моему он не робит


При этом он баганный. у меня персонаж почему-то при прыжке начинает падать, после того, как сверну и разверну игру
Это не баг, это защита Аризоны от бхопа
 

YarikVL

Известный
Проверенный
4,631
1,745
включаю, отключаю — вроде ничего не меняется, по моему он не робит


При этом он баганный. у меня персонаж почему-то при прыжке начинает падать, после того, как сверну и разверну игру
Я тут не причём
Я взял это https://www.blast.hk/attachments/57043/plain
И это: https://www.blast.hk/threads/22026/