-
Posts
183 -
Joined
-
Last visited
Everything posted by EdeN
-
addEventHandler ( 'onResourceStart', resourceRoot, function () for index, player in ipairs ( getElementsByType ( 'player' ) ) do bindKey ( player, 'tab', 'down', AlBab ) end end ) local object = createObject ( 980, 1588.5999755859, -1638, 17.700000762939 ) local marker = createMarker ( 1588.5999755859, -1638, 17.700000762939, 'cylinder', 15.5, 0, 0, 0, 0 ) function AlBab ( player ) if ( isElementWithinMarker ( player, marker ) )then if i then moveObject ( object, 2500, 1588.5999755859, -1638, 17.700000762939 ) else moveObject ( object, 2500, 1588.5999755859, -1638, 19.700000762939 ) end i = not i end end ماشتغل
-
1588.5999755859, -1638, 17.700000762939 هذي الاحداثيات اذا ممكن انتم سووولي
-
gate = createObject(980,2482.7,-1687.8,15.3) function opendoor() if i then moveObject (gate, 1500, 1588.5999755859, -1638, 17.700000762939) else moveObject (gate, 1500, 1588.5999755859,-1638, -1638,13.89999961853) end i = not i end bindKey("tab", "down", opendoor) هذا الكود ولا صار شيء لا يفك ولا شوف وش الحل
-
الان انا حطيت الي طلبته لكن مايفك الباب شوف الخطاء وصلحه gate = createObject(id,x,y,z,0,0,270) function opendoor() moveObject (gate, 5000, 1588.5999755859,-1638,17.700000762939 ) end bindKey ( "tab", "down", opendoor ) function closedoor() moveObject (gate, 5000, 1588.5999755859,-1638,13.89999961853 ) end bindKey ( "tab", "down", closedoor )
-
ابي احط باب اضغط تاب ينفك الطللب الثاني ابي احط دائره اذا دخله احد يطلع شوب عندي مشكله لمن اسوي مود ماتطلع الماوس ؟؟ ارجو المساعده
-
يب هذا الي ابيه مشكوووووووور العفو بس قبل ما ستعمله شيل سطر 19 طيب
-
GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(476,119,256,160,"===7MoDy===",false) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,20,238,131,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Shop-1",GUIEditor_TabPanel[1]) GUIEditor_Button[1] = guiCreateButton(48,17,139,35,"jetpack",false,GUIEditor_Tab[1]) GUIEditor_Button[2] = guiCreateButton(47,58,139,35,"removePedJetPack",false,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("Aoubt",GUIEditor_TabPanel[1]) GUIEditor_Label[1] = guiCreateLabel(4,10,198,91," 7MoDy",false,GUIEditor_Tab[2]) guiSetFont(GUIEditor_Label[1],"sa-header") function jetPackCommand ( source, key ) if ( doesPedHaveJetPack ( source ) ) then -- if the player has a jetpack removePedJetPack ( GUIEditor_Button[2] ) -- remove it else givePedJetPack ( source ) -- otherwise give him one end end addCommandHandler ( "jetpack", jetPackCommand ) -- Checks whether or not the player has a jetpack, and gives or removes it from the player function consoleJetPack ( thePlayer, commandName ) if not doesPedHaveJetPack ( thePlayer ) then -- if the player doesn't have a jetpack local status = givePedJetPack ( GUIEditor_Button[1] ) -- give him one if not status then outputConsole ( "Failed to give jetpack.", thePlayer ) -- tell him if it failed end else local status = removePedJetPack ( thePlayer ) -- remove his jetpack if ( not status ) then outputConsole ( "Failed to remove jetpack.", thePlayer ) -- tell him if it failed end end end -- add the function above to handle the "jetpack" command addCommandHandler ( "jetpack", consoleJetPack ) ممكن تصححو
-
انا شوف كنت فاهم وين امكنهم بس يمكن الكود الي عطاني مو المطلوب
-
وش الي لازم تتمج ؟؟؟؟؟ فيه كود للسيرفر وفيه كود للكلنت وفيه كود للاثنين مثال getAccountData -- لازم ينحط في ملف السيرفر guiGetText -- لازم ينحط في ملف الكلنت getPlayerMoney -- الاثنين شوف انا اقصد اذا سويت كلنت وسويت سيرفر لازم شي يشبكهم عشان يستوي المود فهمتني ولا لا
-
مثال انا سويت Client.lua Server.lua لازم ادمج صح ولا لا
-
triggerServerEvent -- يرسل للسيرفر triggerClientEvent -- يرسل للكلنت اشرحلي كيف ادمجه ممكن ؟
-
triggerServerEvent -- يرسل للسيرفر triggerClientEvent -- يرسل للكلنت اشرحلي كيف ادمجه ممكن ؟
-
مممكن كود الي يدمج الكلنت في الســـــــــــيرفر
-
ليه المودات تطلع ويه اذا ممكن ابي تطلع قبل المودات ممكن ؟؟ المهم مشكور عناد مشكور تيتي على المساعده
-
ابيه الصوره تكون كبيره كبر الشاشه انا اقصد
-
مشكور عناد تعبتك ويي
-
function showClientImage() guiCreateStaticImage( 20, 200, 100, 100, "4.png", false ) guiCreateStaticImage( 20, 200, 100, 100, "2.png", false ) guiCreateStaticImage( 20, 200, 100, 100, "3.png", false ) end addEventHandler( "onClientResourceStart", getResourceRootElement( getThisResource() ), showClientImage ) --Create a gridlist myWindow = guiCreateWindow ( 0.30, 0.10, 0.5, 0.60, "GUI window title", true ) --Add a command handler to change the alpha of the GUI window. --Usage example: '/alpha 0.8', where 0.8 is stored as alphaAmount function changeAlpha ( commandName, alphaAmount ) alphaAmount = tonumber(alphaAmount) guiSetAlpha ( myWindow, alphaAmount ) end addCommandHandler ( "alpha", changeAlpha )
-
guiCreateStaticImage guiSetAlpha شوف وش طلع ؟
-
مشكور على المساعده
-
guiCreateStaticImage guiSetAlpha شوف وش طلع ؟