mr.poo Posted October 6, 2015 Share Posted October 6, 2015 السلام عليكم انا عملت لوحة انتقلات بس في مشكلة مش بتظهر ولو ظهرت مش بيحصل حاجة ودي الاكواد GUIEditor = { window = {}, _GUIEditor } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(283, 187, 264, 144, "لوحة الانتقلات", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 0.96) d = guiCreateButton(20, 39, 221, 32, "الدائري", false, GUIEditor.window[1]) n = guiCreateButton(20, 89, 221, 32, "النخيل", false, GUIEditor.window[1]) end ) function onGuiClick(button, state, absoluteX, absoluteY if source == d then setElementPosition(localPlayer,2084.2399902344,2215.6501464844,10.8203125) setPedRotation(localPlayer,91.98) end end addEventHandler("onClientGUIClick", root, onGuiClick) guiSetProperty(d,"NormalTextColour", "FF00FF00") ----------------------------------------------- function onGuiClick(button, state, absoluteX, absoluteY) if source == n then setElementPosition(localPlayer,-3301.8640136719,-3004.1335449219,12.49062538147) setPedRotation(localPlayer,91.98) end end addEventHandler("onClientGUIClick", root, onGuiClick) guiSetProperty(n,"NormalTextColour", "FF00FF00") ----------------------- guiSetVisible (GUIEditor_Window[1], false) function OpenWin() if guiGetVisible ( GUIEditor_Window[1] ) then guiSetVisible ( GUIEditor_Window[1], false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( GUIEditor_Window[1], true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F6", "down", OpenWin) Link to comment
Rockyz Posted October 6, 2015 Share Posted October 6, 2015 (edited) جرب : GUIEditor = { window = {} } local TheKey = "F6" -- الزر لفتح النافذة addEventHandler("onClientResourceStart", resourceRoot, function ( ) GUIEditor.window[1] = guiCreateWindow(283, 187, 264, 144, "لوحة الانتقلات", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 0.96) guiSetVisible (GUIEditor.window[1],false) d = guiCreateButton(20, 39, 221, 32, "الدائري", false, GUIEditor.window[1]) n = guiCreateButton(20, 89, 221, 32, "النخيل", false, GUIEditor.window[1]) end ) addEventHandler("onClientGUIClick", root, function ( ) if ( source == d ) then setElementPosition(source,2084.2399902344,2215.6501464844,10.8203125) setElementRotation (localPlayer, x, y, z ) end end ) guiSetProperty(d,"NormalTextColour", "FF00FF00") addEventHandler("onClientGUIClick", root, function ( ) if ( source == n ) then setElementPosition(localPlayer,-3301.8640136719,-3004.1335449219,12.49062538147) setElementRotation (localPlayer, x, y, z ) end end ) guiSetProperty(n,"NormalTextColour", "FF00FF00") bindKey (TheKey, "down", function ( ) guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor ( guiGetVisible ( GUIEditor.window[1] ) ) end ) وبالنسبة ل setPedRotation هذي وضيفة مهملة شوف ساينتكس setElementRotation Edited October 7, 2015 by Guest Link to comment
mr.poo Posted October 6, 2015 Author Share Posted October 6, 2015 شكرا تم حل المشكلة ممكن الاكواد لو حبيت اعمل لوحة فيب شخصية خاصة وي درع وي حياة وي بودي جارد خاص وسيارة خاصة وطبعا مش بتفتح غير لل جروب VIP Link to comment
Jupi Posted October 7, 2015 Share Posted October 7, 2015 شكرا تم حل المشكلة ممكن الاكواد لو حبيت اعمل لوحة فيب شخصية خاصة وي درع وي حياة وي بودي جارد خاص وسيارة خاصة وطبعا مش بتفتح غير لل جروب VIP 'onClientGUIClick' guiSetVisible guiGetVisible isObjectInACLGroup getPlayerAccount getAccountName triggerServerEvent triggerClientEvent setPedArmor setElementHealth table createVehicle warpPedIntoVehicle isElement destroyElement bindKey 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