ffi.cdef[[
typedef void*(__thiscall* get_client_entity_t)(void*, int);
]]
local function this_call(call_function, parameters)
return function(...)
return call_function(parameters, ...)
end
end
local entity_list_003 = ffi.cast(ffi.typeof("uintptr_t**"), Utils.CreateInterface("client.dll", "VClientEntityList003"))
local get_entity_address = this_call(ffi.cast("get_client_entity_t", entity_list_003[0][3]), entity_list_003)
local function setprops()
if EntityList.GetLocalPlayer() ~= nil then
ffi.cast('float*', ffi.cast('uintptr_t', get_entity_address(EntityList.GetLocalPlayer())) + 10104)[7] = 0
end
end
Cheat.RegisterCallback('prediction', setprops)