function clientElementStreamIn()
if getElementType(source) ~= "vehicle" then return end
if getElementModel(source) ~= 449 and getElementModel(source) ~= 604 and getElementModel(source) ~= 611 and getElementModel(source) ~= 574 and getElementModel(source) ~= 572 then return end
local vehicle = getVehicleTowedByVehicle(source)
if not (vehicle) then return end
setVehicleComponentVisible(source, "sme_pered", false)
setVehicleComponentVisible(source, "sme_zad", true)
setVehicleComponentVisible(vehicle, "sme_pered", true)
setVehicleComponentVisible(vehicle, "sme_zad", false)
setVehicleComponentRotation(vehicle, "pant_1", 40, 0, 0)
setVehicleComponentRotation(vehicle, "pant_2", -75, 0, 0)
setVehicleComponentRotation(vehicle, "pant_3", -40, 0, 0)
setVehicleComponentRotation(vehicle, "pant_4", 75, 0, 0)
setVehicleComponentRotation(vehicle, "pant_vstavka", 45, 0, 0)
end
addEventHandler("onClientElementStreamIn", root, clientElementStreamIn)
Не скрывается компонент "sme_zad" на вагоне