w7sH Posted May 2, 2017 Posted May 2, 2017 السلام عليكم .. عندي شيك بوكس أبي اذا ضغطه اللاعب يحمي سيارته من الإنكسار وما ينقص دمها يعني لو يصدم مايجي الموتر شي ولا ينقصه هلثه
w7sH Posted May 2, 2017 Author Posted May 2, 2017 local isChatHudVisible8 = true; addEventHandler("onClientGUIClick",root,function() if source == GUIEditor.button[9] then if isChatHudVisible8 then setVehicleDamageProof(newvehicle, true) isChatHudVisible8 = false; else setVehicleDamageProof(newvehicle, false) isChatHudVisible8 = true; end end end ) وش المشكلة ؟
#BrosS Posted May 2, 2017 Posted May 2, 2017 اشوفك مسوي لما تضغط على زر و اتمنى المرة الجاية تجرب الأكواد وتشوف المشكل بنفسك واحنا نصلح مو نسوي لك كل شي
#DRAGON!FIRE Posted May 2, 2017 Posted May 2, 2017 addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == checkbox ) then local pVehicle = getPedOccupiedVehicle ( localPlayer ) if pVehicle then local checkBox_state = guiCheckBoxGetSelected ( source ) local msg = checkBox_state == true and "* vehicle DamageProof enabled" or "* vehicle DamageProof disabled" setVehicleDamageProof ( pVehicle, checkBox_state ) outputChatBox ( msg ) else outputChatBox ( "* you don't have a car !" ) end end end ) 1
w7sH Posted May 3, 2017 Author Posted May 3, 2017 On ٢/٥/٢٠١٧ at 23:56, #BrosS said: اشوفك مسوي لما تضغط على زر و اتمنى المرة الجاية تجرب الأكواد وتشوف المشكل بنفسك واحنا نصلح مو نسوي لك كل شي من اللي طلب منك تسوي لي كل شي .. أنا طلبت اكود وسويت تجربة وطرحتها وطلبت من المبرمجين " يساعدوني بمعرفة المشكلة .. On ٣/٥/٢٠١٧ at 00:04, #ZA7F //= said: addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == checkbox ) then local pVehicle = getPedOccupiedVehicle ( localPlayer ) if pVehicle then local checkBox_state = guiCheckBoxGetSelected ( source ) local msg = checkBox_state == true and "* vehicle DamageProof enabled" or "* vehicle DamageProof disabled" setVehicleDamageProof ( pVehicle, checkBox_state ) outputChatBox ( msg ) else outputChatBox ( "* you don't have a car !" ) end end end ) مشكور وماقصرت ..
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