Jump to content

ابي فنكشات


Recommended Posts

  
guiCreateWindow 
guiCreateButton 
'onClientGUIClick' 
triggerServerEvent 
addEvent 
addEventHandler 
setElementHealth 
setPedArmor 

انا حاولت في كود اعطاء الدم وما عارف اكمله ساعدني لو فيه شئ غلط

  
addEventHandler("onClientGUICLick",root, 
function () 
if source == GUIEditor.button[1] then 
setElementHealth(player, 200) 
end 
end 
) 
  

وشكرا

Link to comment
-- Client 
  
addEventHandler('onClientGUIClick',root, function (  ) 
if ( source == GUIEditor.button[3] ) then 
triggerServerEvent('Armor',localPlayer) 
end 
  end 
  ) 
   
  -- Server 
   
  addEvent('Armor',true) 
  addEventHandler('Armor',root, function ( ) 
  setPedArmor ( client , 100 ) 
  end) 

Link to comment
-- Client 
  
addEventHandler('onClientGUIClick',root, function (  ) 
if ( source == GUIEditor.button[3] ) then 
triggerServerEvent('Armor',localPlayer) 
end 
  end 
  ) 
   
  -- Server 
   
  addEvent('Armor',true) 
  addEventHandler('Armor',root, function ( ) 
  setPedArmor ( client , 100 ) 
  end) 

ممكن تقول لنا الأرقمنت الاول وين تعريفه ؟

client ??

:|

Link to comment
-- Client 
  
addEventHandler('onClientGUIClick',root, function (  ) 
if ( source == GUIEditor.button[3] ) then 
triggerServerEvent('Armor',localPlayer) 
end 
  end 
  ) 
   
  -- Server 
   
  addEvent('Armor',true) 
  addEventHandler('Armor',root, function ( ) 
  setPedArmor ( client , 100 ) 
  end) 

ممكن تقول لنا الأرقمنت الاول وين تعريفه ؟

client ??

:|

https://wiki.multitheftauto.com/wiki/AddEventHandler

https://wiki.multitheftauto.com/wiki/Predefined_variables_list

Link to comment
-- Client 
  
addEventHandler('onClientGUIClick',root, function (  ) 
if ( source == GUIEditor.button[3] ) then 
triggerServerEvent('Armor',localPlayer) 
end 
  end 
  ) 
   
  -- Server 
   
  addEvent('Armor',true) 
  addEventHandler('Armor',root, function ( ) 
  setPedArmor ( client , 100 ) 
  end) 

ممكن تقول لنا الأرقمنت الاول وين تعريفه ؟

client ??

:|

https://wiki.multitheftauto.com/wiki/AddEventHandler

https://wiki.multitheftauto.com/wiki/Predefined_variables_list

thnx :)

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...