#STZ Posted May 29, 2016 Share Posted May 29, 2016 السلام عليكم و رحمة الله و بركاته اليوم انا ابي نفس هاذا الكود بس السيارة ما تتصلح ولاكن يعدلها اللي هو زر في الفري روم اسمه انقلاب الاكواد حقت التصليح الكلنت addEventHandler("onClientGUIClick",resourceRoot,function () if ( source == FIX ) then triggerServerEvent ( "FixCar",localPlayer) end end) السيرفر addEvent( "FixCar", true ) addEventHandler( "FixCar",root,function () local Veh = getPedOccupiedVehicle ( source ) if Veh then fixVehicle(Veh) outputChatBox('Your Car Successfuly Repaired', source ,0,255,0,true ) else outputChatBox('Error', source ,255,255,0,true ) end end) Link to comment
Adham Posted May 29, 2016 Share Posted May 29, 2016 addEventHandler("onClientGUIClick",resourceRoot,function () if ( source == FixCar ) then triggerServerEvent ( "FixCar",localPlayer) end end) addEvent( "FixCar", true ) addEventHandler( "FixCar",root,function () local Veh = getPedOccupiedVehicle ( source ) if Veh then fixVehicle(Veh) outputChatBox('Your Car Successfuly Repaired', source ,0,255,0,true ) else outputChatBox('Error', source ,255,255,0,true ) end end) Link to comment
Adham Posted May 29, 2016 Share Posted May 29, 2016 يعني تبي لم يصلح تتعدل العربيه ؟ addEvent( "FixCar", true ) addEventHandler( "FixCar",root,function () local Veh = getPedOccupiedVehicle ( source ) if Veh then fixVehicle(Veh) setElementRotation(Veh,0,0,0) end end) Link to comment
#STZ Posted May 29, 2016 Author Share Posted May 29, 2016 يب ابي السيارة اذا كانت مقلوبة تنعدل مو تععدل حقت الورشة لا يعني اذا كانت مقلوبة تنعدل Link to comment
Adham Posted May 29, 2016 Share Posted May 29, 2016 addEvent( "FixCar", true ) addEventHandler( "FixCar",root,function () local Veh = getPedOccupiedVehicle ( source ) if Veh then fixVehicle(Veh) setElementRotation(Veh,0,0,0) end end) Link to comment
#STZ Posted May 29, 2016 Author Share Posted May 29, 2016 addEvent( "FixCar", true ) addEventHandler( "FixCar",root,function () local Veh = getPedOccupiedVehicle ( source ) if Veh then fixVehicle(Veh) setElementRotation(Veh,0,0,0) end end) مشكوووووور حبيبي يعطيك الف عافية شكرا شكرا شكرا Link to comment
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