Цвет машины

Shepard

Активный
Автор темы
456
88
Версия MoonLoader
Другое
Lua:
function sampev.onVehicleStreamIn(vehicleId, data)
    if rabota then
        local result, carhandle = sampGetCarHandleBySampVehicleId(vehicleId)
        local modelId = getCarModel(carhandle)
        local primaryColor, secondaryColor = getCarColours(carhandle)
        if primaryColor == 67 and secondaryColor == 67 then
            sampAddChatMessage('Появился автомобиль '..string.lower(getNameOfVehicleModel(modelId)),0x00ff00)
        end
    end
end
как фиксануть?