Adham Posted June 25, 2016 Share Posted June 25, 2016 السلام عليكم ورحمه الله وبركاتة .. اليوم مسوي لوحه تفتح بـ اف"10" بعدين انا سويتها كدا ولوحه تفتح من ف8 bindKey ( Settings.createOrderWindow_BTN, "down", guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) end ) addCommandHandler ( Settings.manageRent, guiSetVisible ( GUIEditor.window[2], not guiGetVisible ( GUIEditor.window[2]) ) showCursor ( guiGetVisible ( GUIEditor.window[2] ) ) end ) ملف اعدادت كلنت : Settings = { createOrderWindow_BTN = "f10"; -- manageRent = "manageRent"; }; مش شغال معي . Link to comment
Mr.R Posted June 25, 2016 Share Posted June 25, 2016 تفضل , جرب wnd1 , wnd2 ولا تحط لوكال على wnd1 = createOrderWindow_BTN = "F10" wnd2 = manageRent = "manageRent" bindKey ( createOrderWindow_BTN, "down", function ( ) guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) end ) addCommandHandler ( manageRent, function ( ) guiSetVisible ( GUIEditor.window[2], not guiGetVisible ( GUIEditor.window[2]) ) showCursor ( guiGetVisible ( GUIEditor.window[2] ) ) end ) الاعدادات Settings = { wnd1 = "F10", wnd2 = "manageRent" } اذا قصدك يغير الزر او الكوماند من لوحة الادمنيه ضيف هذا لـ الميتا "*wnd1" value = "F10" desc = "Key to Open Window."/> "*wnd2" value = "manageRent" desc = "Command to Open Window."/> Link to comment
Adham Posted June 25, 2016 Author Share Posted June 25, 2016 طيب , لو انا ينفع اعمله كدا addCommandHandler ( Command, function ( ) guiSetVisible ( GUIEditor.window[2], not guiGetVisible ( GUIEditor.window[2]) ) showCursor ( guiGetVisible ( GUIEditor.window[2] ) ) end ) الاعدادت Command = "F10" Link to comment
Mr.R Posted June 25, 2016 Share Posted June 25, 2016 طيب , لو انا ينفع اعمله كدا addCommandHandler ( Command, function ( ) guiSetVisible ( GUIEditor.window[2], not guiGetVisible ( GUIEditor.window[2]) ) showCursor ( guiGetVisible ( GUIEditor.window[2] ) ) end ) الاعدادت Command = "F10" بالطريقه ذي ينفع ايه Link to comment
Adham Posted June 25, 2016 Author Share Posted June 25, 2016 م صارت تفتح .. bindKey ( Command, "down", function ( ) guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) end ) اعدادات Command = "F10" -- زر فتح لوحه الإشتراك Link to comment
Mr.R Posted June 25, 2016 Share Posted June 25, 2016 م صارت تفتح .. bindKey ( Command, "down", function ( ) guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) end ) اعدادات Command = "F10" -- زر فتح لوحه الإشتراك تراني مافهمت قصدك بالضبط , ياليت تقوله حطها كذا بجانب كلنت Command = "F10" bindKey ( Command, "down", function ( ) guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) end ) Link to comment
SycroX Posted June 26, 2016 Share Posted June 26, 2016 ~_~ Settings in ==> meta.xml '*Key' friendlyname='The Key to Show/Hide Window' value='F1' desc='The Key to Show/Hide Window' /> Server Side local Key = get("Key") local g_root = getRootElement() setElementData(g_root, "KeyToOpenTheWindow", Key) ClientSide bindKey (getElementData(getRootElement(),"KeyToOpenTheWindow"), "down", function () if guiGetVisible(YourWindow) == true then guiSetVisible(YourWindow, false) showCursor(false) else guiSetVisible(YourWindow, true) showCursor(false) end end) Link to comment
#Soking Posted June 26, 2016 Share Posted June 26, 2016 عندي اقتراح بديل عن setElementData(g_root, "KeyToOpenTheWindow", Key) setElementData(resourceRoot, "KeyToOpenTheWindow", Key) -- احسن Link to comment
Me[Z]oO Posted June 27, 2016 Share Posted June 27, 2016 ~_~Settings in ==> meta.xml local Key = get("Key") local g_root = getRootElement() setElementData(g_root, "KeyToOpenTheWindow", Key) [/lua] الحين انت شغلت المود رح حط داتا KeyToOpenTheWindow علي كل اللاعبين طيب لو لاعب دخل السيرفر م رح يكون عليه الداتا لهيك كلام @Soking صح 100% Link to comment
SycroX Posted June 27, 2016 Share Posted June 27, 2016 ~_~Settings in ==> meta.xml local Key = get("Key") local g_root = getRootElement() setElementData(g_root, "KeyToOpenTheWindow", Key) [/lua] الحين انت شغلت المود رح حط داتا KeyToOpenTheWindow علي كل اللاعبين طيب لو لاعب دخل السيرفر م رح يكون عليه الداتا لهيك كلام @Soking صح 100% جرب قبل ما تتكلم : - شغالة و مجربها بعد الريكونكت Link to comment
#Soking Posted June 27, 2016 Share Posted June 27, 2016 بس اخوي احمد الويكي يقول ان الالمنت داتا يستهلك من الخادم ليه مانحط الداتا علمود بس انت حاطه علي السيارات كل المودات الاعببين الاوبجكت الوحات الشخصياات التيمات الكول شيب اراضي الاحتلال الاغبين Link to comment
' A F . Posted June 27, 2016 Share Posted June 27, 2016 بس اخوي احمد الويكي يقول ان الالمنت داتا يستهلك من الخادم ليه مانحط الداتا علمود بس انت حاطه علي السيارات كل المودات الاعببين الاوبجكت الوحات الشخصياات التيمات الكول شيب اراضي الاحتلال الاغبين Link to comment
#Soking Posted June 27, 2016 Share Posted June 27, 2016 كودك احمد يحط على Player Ped Vehicle Object Pickup Marker Collision shape Blip Radar area Projectile Team Server console GUI widgets: Button Checkbox Combobox Edit field Gridlist Memo Progress bar Radio button Scrollbar Scrollpane Static image Tab panel Tab Text label Window TXD DFF COL Sound Material Texture Shader DX font GUI font Weapon Camera Effect Browser Light كل البسيرفر شف الويكي وش يقول As element data is synced to all clients, it can generate a lot of network traffic and consume server CPU. Events are much more efficient for sending data from a client to the server only, or from the server to a specific client. 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