Иконка ресурса

LUA [nixware (Beta, Legacy)] Detours / Minhook 1.0.0

Example:

Lua:
local Detours = require( 'detours' )
local MinHook = require( 'minhook' )

local draw_viewmodel_original
local function draw_viewmodel( this_ptr, edx )
    return false
end

local function init_detours( )
    local draw_viewmodel_pointer = client.find_pattern( 'client.dll', '55 8B EC 51 57 E8' )
    draw_viewmodel_original = Detours.Hook( 'bool( __fastcall* )( void*, void* )', draw_viewmodel_pointer, draw_viewmodel )
end

local function init_minhook( )
    if not MinHook.Initialize( ) then
        return
    end

    local draw_viewmodel_pointer = client.find_pattern( 'client.dll', '55 8B EC 51 57 E8' )
    draw_viewmodel_original = MinHook.CreateHook( 'bool( __fastcall* )( void*, void* )', draw_viewmodel_pointer, draw_viewmodel )

    MinHook.EnableHook( )
end 
init_minhook( )

Put a folders from the archive in this path: {csgo path}/lua

VT: detours | minhook
Автор
Klient
Скачивания
15
Просмотры
127
Расширение
zip
Размер файла
15.9 KB
Хэш
c047c49a90d474db8325f2dab5cd0cec
Первый выпуск
Обновление
Оценка
0.00 звёзд 0 оценок
Сверху Снизу