Mostafa MohammeD Posted September 12, 2015 Share Posted September 12, 2015 لو سمحتم ابي فنكشات لوحة اعطاء دم و درع الفنكشات فقط ما اريد اكواد جاهزة اريد ان احاول صنع اول مود لي وشكرا Link to comment
' A F . Posted September 12, 2015 Share Posted September 12, 2015 guiCreateWindow guiCreateButton 'onClientGUIClick' triggerServerEvent addEvent addEventHandler setElementHealth setPedArmor Link to comment
Mostafa MohammeD Posted September 12, 2015 Author Share Posted September 12, 2015 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
TAPL Posted September 12, 2015 Share Posted September 12, 2015 addEventHandler("onClientGUICLick",root, function () if source == GUIEditor.button[1] then setElementHealth(localPlayer, 200) end end ) Link to comment
Mostafa MohammeD Posted September 12, 2015 Author Share Posted September 12, 2015 addEventHandler("onClientGUICLick",root, function () if source == GUIEditor.button[1] then setElementHealth(localPlayer, 200) end end ) مب شغال اخي تابل Link to comment
TAPL Posted September 13, 2015 Share Posted September 13, 2015 عندك خطأ بأسم الحدث onClientGUICLick onClientGUIClick Link to comment
Mostafa MohammeD Posted September 13, 2015 Author Share Posted September 13, 2015 عندك خطأ بأسم الحدثonClientGUICLick onClientGUIClick طب والدرع مب هيك ؟؟ addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[3] then getPedArmor(100) end end ) ولا في كود غلط Link to comment
' A F . Posted September 13, 2015 Share Posted September 13, 2015 -- 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
MR.GRAND Posted September 13, 2015 Share Posted September 13, 2015 -- 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
TAPL Posted September 13, 2015 Share Posted September 13, 2015 -- 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
MR.GRAND Posted September 13, 2015 Share Posted September 13, 2015 -- 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
Mostafa MohammeD Posted September 13, 2015 Author Share Posted September 13, 2015 -- 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
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