Показать сообщение отдельно

  #7  
Старый 25.11.2023, 20:47
Oleg1337228
Постоянный
Регистрация: 29.03.2021
Сообщений: 424
С нами: 2698783

Репутация: 23
По умолчанию

Цитата:

Asi:
rtdhook* hook;

void* __fastcall AttachEntityToEntity(uintptr_t ptr, void* edx, uintptr_t entityTo, CVector offset, CVector rotation)
{
uint8_t type = *reinterpret_cast(entityTo + 0x36);
if ((type & 7) == 2) // If entity is attaching to vehicle
*reinterpret_cast(ptr + 0x1C) &= 0xFFFFFFFE;

return reinterpret_cast
(hook->trampoline)(ptr, entityTo, offset, rotation);
}

int main()
{
hook = new rtdhook(0x54D570, reinterpret_cast(&AttachEntityToEntity));
hook->install();
return 0;
}
Как добавить активацию и деактиваю самп?
 
Ответить с цитированием