taha201100 Posted September 30, 2015 Share Posted September 30, 2015 السلام عليكم GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(500, 281, 319, 178, "اعطاء درع للاعب", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(88, 51, 136, 79, "اعطاء درع", false, GUIEditor.window[1]) end ) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[1]then setPedArmor (source,90) end end) صممته بنفسي ومدري يقولي في خطأ بسطر 19 وحاولت اتأكد من سطر 19 ونفس المشكله ما يعطي درع للاعب Link to comment
' A F . Posted September 30, 2015 Share Posted September 30, 2015 --- # Client GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(500, 281, 319, 178, "اعطاء درع للاعب", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(88, 51, 136, 79, "اعطاء درع", false, GUIEditor.window[1]) end ) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[1]then triggerServerEvent('Trigger',getLocalPlayer()) end end) --- # Server addEvent('Trigger',true) addEventHandler('Trigger',root, function ( ) setPedArmor ( source , 90 ) end) Link to comment
taha201100 Posted October 1, 2015 Author Share Posted October 1, 2015 طيب ليه سويت كذا مشان اتعلم من الخطأ وش الخطأ كان؟ Link to comment
' A F . Posted October 1, 2015 Share Posted October 1, 2015 فنكشن setPedArmor -- Server فـ لأزم تسوي triggerSeverEvent + انت خأبط كلنت مع سيرفر ذذ 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