Jump to content

طلب ايفنت او فانكشن


Recommended Posts

السلام عليكم و رحمة الله و بركاته اليوم انا ابي نفس هاذا الكود بس السيارة ما تتصلح ولاكن يعدلها اللي هو زر في الفري روم اسمه انقلاب

الاكواد حقت التصليح

الكلنت

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

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

يعني تبي لم يصلح تتعدل العربيه ؟

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
addEvent( "FixCar", true ) 
addEventHandler( "FixCar",root,function () 
local Veh = getPedOccupiedVehicle ( source ) 
if Veh then 
fixVehicle(Veh) 
setElementRotation(Veh,0,0,0) 
end 
end) 

مشكوووووور حبيبي يعطيك الف عافية

شكرا

شكرا

شكرا :P:P:P:P:P:P

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...