-
Автор темы
- #1
Why dosen't this work, I am not receiving any errors (do not get mad at me pls!! )
Код:
-- I do not know how to make Static legs, do not get mad at me :sob:
ffi.cdef[[
typedef void*(__thiscall* get_client_entity_t)(void*, int);
]]
local uintptr_t = ffi.typeof("uintptr_t**")
local this_call = function(call_function, parameters)
return function(...)
return call_function(parameters, ...)
end
end
local main = ui.create("LUA", "A")
local staticlegs = main:slider("Static Legs", 0, 1)
local entity_list_003 = ffi.cast(uintptr_t, utils.create_interface("client.dll", "VClientEntityList003"))
local get_client_entity_fn = this_call(ffi.cast("get_client_entity_t", entity_list_003[0][3]), entity_list_003)
local shared_onground
local lsh = bit.lshift
events.render:set( function()
local localplayer = entity.get_local_player()
if not localplayer then return end
local bOnGround = lsh(1,0)
if not bOnGround then
return
end
shared_onground = bOnGround
if staticlegs:get() then
local localplayer = entity.get_local_player()
if not localplayer then return end
if bOnGround and not shared_onground then
localplayer.m_flPoseParameter[6] = 1
end
end
end)