iMr.SFA7 Posted August 12, 2015 Posted August 12, 2015 اول شيء انت تبيها لكل المواتر ولا لموتر محدد ؟ ومتأكد انك حطيت ملف الشادر ؟ وعرفته بالميتا ؟ حط كودك كذا myShader = dxCreateShader( "shader.fx" ) addEventHandler("onClientVehicleEnter", root, function(thePlayer, seat) local theVehicle = source if seat == 0 and thePlayer == localPlayer then engineApplyShaderToWorldTexture( myShader, "vehiclelightson128", theVehicle ) end end ) Shader.fx texture gTexture; technique hello { pass P0 { Texture[0] = gTexture; } }
Dr.Zlh Posted August 13, 2015 Author Posted August 13, 2015 اول شيء انت تبيها لكل المواتر ولا لموتر محدد ؟ومتأكد انك حطيت ملف الشادر ؟ وعرفته بالميتا ؟ حط كودك كذا myShader = dxCreateShader( "shader.fx" ) addEventHandler("onClientVehicleEnter", root, function(thePlayer, seat) local theVehicle = source if seat == 0 and thePlayer == localPlayer then engineApplyShaderToWorldTexture( myShader, "vehiclelightson128", theVehicle ) end end ) Shader.fx texture gTexture; technique hello { pass P0 { Texture[0] = gTexture; } } اخوي سفاح كل شيء سويته بس م يشتغل حقك الانك ما حدد المنطقة او نوع الفلات الشادور جهاز بس باقي الكلنت ابي اخليه يشغل الشادور على الابوجكت حق نور السياره اذا ركب السياره ويكون يومض او يطفي ويشتغل بشكل مكرر زي الفلشر
iMr.SFA7 Posted August 13, 2015 Posted August 13, 2015 myShader = dxCreateShader( "shader.fx" ) addEventHandler("onClientVehicleEnter", root, function(thePlayer, seat) local theVehicle = source if seat == 0 and thePlayer == localPlayer then engineApplyShaderToWorldTexture( myShader, "vehiclelightson128", theVehicle ) if ( isPedInVehicle ( thePlayer ) ) and ( getVehicleOverrideLights ( getPedOccupiedVehicle ( thePlayer ) ) ~= 2 ) then setVehicleOverrideLights ( getPedOccupiedVehicle ( thePlayer ), 2 ) else setVehicleOverrideLights ( getPedOccupiedVehicle ( thePlayer ), 1 ) end end end end )
Simple. Posted August 13, 2015 Posted August 13, 2015 viewtopic.php?f=160&t=87587&p=791253#p791253 شوف هذا وبتفهم
Dr.Zlh Posted August 20, 2015 Author Posted August 20, 2015 https://forum.multitheftauto.com/viewtopic.php?f=160&t=87587&p=791253#p791253شوف هذا وبتفهم طيب الحين انا حطيت كل شيء بس عيا يشتغل + ي سفاح هوا موب تعديل على اليت تعديل على شكل اوبجكت في السياره + الحين بس المطلوب كيف بس اخليه يشتغل على اللعبه الباقي على لمن اشغل المود يشتغل معي على طول كيف ؟؟؟
Dr.Zlh Posted August 20, 2015 Author Posted August 20, 2015 بدل الحدث "onClientResourceStart" سوينا بس ميشتغل بس اسوي تعرف لملف الشادور وتشغيل له بس م يزبط
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now