Dania_gg
Customer
- Регистрация
- 17 Авг 2024
- Сообщения
- 88
- Тема Автор
- #1
хапайте фиксите я хз но он крашит
local model_path = "characters/models/nozb1/garou_cosmic_player_model/garou_cosmic_discord.gg_ruzh.vmdl_c"
local function apply_model_changes()
local pawn = entitylist.get_local_player_pawn()
if not pawn then return end
local identity = ffi.cast("uintptr_t**", pawn)[0][0]
if not identity then return end
local model_name_ptr = ffi.cast("char**", identity + 0x20)[0] -- Offset may vary!
if model_name_ptr then
ffi.copy(model_name_ptr, model_path)
print("Model changed")
else
print("Failed to find model name pointer")
end
end
register_callback("paint", apply_model_changes)
local model_path = "characters/models/nozb1/garou_cosmic_player_model/garou_cosmic_discord.gg_ruzh.vmdl_c"
local function apply_model_changes()
local pawn = entitylist.get_local_player_pawn()
if not pawn then return end
local identity = ffi.cast("uintptr_t**", pawn)[0][0]
if not identity then return end
local model_name_ptr = ffi.cast("char**", identity + 0x20)[0] -- Offset may vary!
if model_name_ptr then
ffi.copy(model_name_ptr, model_path)
print("Model changed")
else
print("Failed to find model name pointer")
end
end
register_callback("paint", apply_model_changes)