Визуальная перекраска автомобиля

Raymond

Известный
Автор темы
206
86
Версия MoonLoader
.026-beta
Как визуально перекрасить цвет автомобиля, не функцией changeCarColour
 
Решение
А можешь сказать что нашел? Тоже ищу просто
Lua:
    local vehpool = sampGetVehiclePoolPtr()
    local pool = sampGetVehiclePoolPtr()
    if getStructElement(pool, 0x3074 + carid * 4, 1) == 1 then
        local this = ffi.cast('void*', getStructElement(pool, 0x1134 + carid * 4, 4))
        ffi.cast('void(__thiscall*)(void* this, int c1, int c2)', sampGetBase() + 0xB0D90)(this, carcolor1, carcolor2)
        -- ffi.cast('void(__thiscall*)(void* this)', sampGetBase() + 0xB0DE0)(this)
    end

Raymond

Известный
Автор темы
206
86
А можешь сказать что нашел? Тоже ищу просто
Lua:
    local vehpool = sampGetVehiclePoolPtr()
    local pool = sampGetVehiclePoolPtr()
    if getStructElement(pool, 0x3074 + carid * 4, 1) == 1 then
        local this = ffi.cast('void*', getStructElement(pool, 0x1134 + carid * 4, 4))
        ffi.cast('void(__thiscall*)(void* this, int c1, int c2)', sampGetBase() + 0xB0D90)(this, carcolor1, carcolor2)
        -- ffi.cast('void(__thiscall*)(void* this)', sampGetBase() + 0xB0DE0)(this)
    end