-
Posts
1,336 -
Joined
Everything posted by The Killer
-
setTimer isElementWithinColShape givePlayerMoney
-
ما يمديك تركب سياره في الكلاينت # ,سوي ترايقر #
-
من وين جبت thePlayer > وفاهم ال setElementData getElementData غلط ----------- ملاحظه: ضيف زر جديد في اللوحه وايديت جديد وتأكد من انك تحط اسم الزر واسم الايديت نفس الي في الكود ذا: addEventHandler ("onClientGUIClick", resourceRoot, function ( ) if (source == GUIEditor_Button[1]) then local bind = guiGetText (edit_b) local txt = guiGetText (edit) if (txt ~= "" and bind ~= "") then setElementData(localPlayer, "Delete_cut", bind) function TheKey () triggerServerEvent ("Out", localPlayer, txt) end bindKey (bind, "down", TheKey) end end if (source == unbind) then -- اسم الزر الجديد local key = guiGetText (unbin) -- اسم الايديت الجديد if (key and key ~= "") then if (key == getElementData (localPlayer, "Delete_cut")) then unbindKey (getElementData (localPlayer, "Delete_cut"), "down", TheKey) end end end end )
-
حياك الله , ----- انصحك بالداتا عشان تتحق من انه ضغط الزر وعشان تقدر تحذف الزر setElementData getElementData unbindKey
-
يب صحيح خطأ بسيط مني , جرب الحين addEventHandler ("onClientGUIClick", root, function () if (source == GUIEditor_Button[1]) then local bind = guiGetText (edit_b) local txt = guiGetText (edit) bindKey (bind, "down", function () triggerServerEvent ("Out", localPlayer, txt) end) end end )
-
تأكد من اسماء الايديت
-
addEventHandler ("onClientGUIClick", root, function () if (source == btn and getElementData (localPlayer, "bind") ~= true ) then local bind = guiGetText (bin) local txt = guiGetText (text) bindKey (bind, "down", function (txt) triggerServerEvent ("Out", localPlayer, txt) end) setElementData (localPlayer, "bind", true) end end ) addEvent("Out",true) addEventHandler("Out",root, function ( Text ) local txt = { Text } local message = table.concat(txt, " ") outputChatBox(message, root, 255, 255, 0, true) end)
-
Event # 'onClientGUIClick' function # guiGetText bindKey triggerServerEvent -- للكلام -- Server side outputChatBox
-
ياليت توضح اكثر !
-
please delete my scripts https://community.multitheftauto.com/ind ... ls&id=8215 https://community.multitheftauto.com/ind ... ls&id=8278 DONE
-
please delete my scripts https://community.multitheftauto.com/ind ... ls&id=8215 https://community.multitheftauto.com/ind ... ls&id=8278
-
addEventHandler ("onClientGUIClick", root, function () if (source == button) then outputChatBox ("Worked, Please wait 10 secs to press the button again.", 0, 255, 0) guiSetEnabled (button, false) setTimer (function () guiSetEnabled (button, true) end, 10000,1) end end )
-
setTimer givePlayerMoney getPlayerName outputChatBox
-
try this: local vehicle = { } addEvent ( "spawnEuro", true ) addEventHandler ("spawnEuro", root, function ( px, py, pz ) if isElement ( vehicle [source] ) then outputChatBox ( "Error - You already have a flash.", source, 255, 0, 0 ) return end vehicle [source] = createVehicle ( 565, px + 2, py + 2, pz ) outputChatBox ( "Flash was created successfully.", source, 0, 255, 0 ) end end ) addEventHandler ("onPlayerQuit", root, function ( ) if isElement ( vehicle [source] ) then destroyElement ( vehicle [source] ) vehicle [source] = nil end end )
-
ما ندري عن نظام سيرفره , لاكن اغلب السيرفرات لازم تسجل بعدين تلعب , اذا هو مسوي كذا ف يمديه يستخدم الفنكشنات الي طرحتها لو يبي يحفظها ----- غير كذا , يستخدم الداتا او يستخدم طريقة الاخ MJNONFIK
-
ممب شرط تقدر تحفظها في الحساب isGuestAccount getAccountName getPlayerAccount setAccountData getAccountData
-
setPedRotation: This function is deprecated. This means that its use is discouraged and that it might not exist in future versions. Please use setElementRotation instead. يقولك الفنكشن الي طارحه انت , مهمل , يعني ما عاد يستعمل وراح يختفي في الاصدارات القادمه , يعني ماراح يكون له وجود --------------------------------------------------------------------------- استخدم هذا الفنكشن بداله setElementRotation
-
خخخخ , والله العقل نعمه
-
اتوقع ان هذا الرد يكفي
-
همم , يب صحيح , مشكور ع التنبيه addEventHandler("onClientMarkerHit",marker2, function (hit) if ( hit == localPlayer ) and getElementType( hit ) == "player" then if isPedInVehicle( hit ) then return end if getPlayerTeam (hit) and getTeamName (getPlayerTeam (hit)) ~= "No Team" then exports["guimessages"]:outputClient( "sss", 255, 0, 0 ) return end guiSetVisible( Harvestwindow,true ) showCursor( true ) local oldSkin = getElementModel( localPlayer ) guiGridListSetSelectedItem ( GUIEditor.gridlist[1], 0, 0 ) end end ) ------------------------------------------- @Mr.alkmasha X في الكلاينت مافيه ارقمنت الاعب ----------------------- شف هنا https://forum.multitheftauto.com/viewtopic.php?f=108&t=42340
-
X ------------------------- addEventHandler("onClientMarkerHit",marker2, function (hit) if ( hit == localPlayer ) and getElementType( hit ) == "player" then if isPedInVehicle( hit ) then return end if getPlayerTeam( hit ) ~= getTeamFromName ( "No Team" ) then exports["guimessages"]:outputClint( "sss", 255, 0, 0 ) return end guiSetVisible( Harvestwindow,true ) showCursor( true ) local oldSkin = getElementModel( localPlayer ) guiGridListSetSelectedItem ( GUIEditor.gridlist[1], 0, 0 ) end end )
