Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. You're welcome.
  2. getRootElment() = ?? المفروض getRootElement()
  3. You have proof? This guy got help in this topic https://forum.multitheftauto.com/viewtopic.php?f=119&t=50759 And you were one of who trying to help him...
  4. ماافهمت ولا وآآحد لازم نكرر الي بالمواضيع الثلاثة في الموضوع ذا؟ ايش الي ما فهمته في هذا لا بس لازم يكون المود مركب بالسيرفر و شغال addCommandHandler("obj", function(source) local x, y, z = getElementPosition(source) local object = createObject(7910, x, y, z) exports.bone_attach:attachElementToBone(object, source, id, 0, 0, 0, 0, 0, 0) -- id لا تنسى تغير end) الآيد تجيبه من هنا Bone IDs: 1: head 2: neck 3: spine 4: pelvis 5: left clavicle 6: right clavicle 7: left shoulder 8: right shoulder 9: left elbow 10: right elbow 11: left hand 12: right hand 13: left hip 14: right hip 15: left knee 16: right knee 17: left ankle 18: right ankle 19: left foot 20: right foot
  5. rootElement = ??
  6. https://forum.multitheftauto.com/viewtopic.php?f=119&t=47211 https://forum.multitheftauto.com/viewtopic.php?f=119&t=49056 https://forum.multitheftauto.com/viewtopic.php?f=119&t=49894
  7. https://wiki.multitheftauto.com/wiki/CreatePickup
  8. تحت الكود ذا GUIEditor_Window[1] = guiCreateWindow(...) حط ذا الكود guiSetVisible (GUIEditor_Window[1], false)
  9. local Window = guiCreateWindow(0, 0, 0.5, 0.4, "Information", true) guiSetVisible(Window, false) local tabPanel = guiCreateTabPanel(0, 0.1, 1, 1, true, Window) local tabMap = guiCreateTab("Map Information", tabPanel) local tabHelp = guiCreateTab("Help", tabPanel) guiCreateLabel(0.02,0.04,0.94,0.2,"This is information about the current map",true,tabMap) guiCreateLabel(0.02,0.04,0.94,0.92,"This is help text.",true,tabHelp) bindKey("F1", "down", function() guiSetVisible(Window, not guiGetVisible(Window)) showCursor(guiGetVisible(Window)) end)
  10. طريقة أخرى لمنع شخص من دخول السيرفر addEventHandler("onPlayerConnect", root, function(_, _, _, serial) if (serial == "السيريال") then cancelEvent(true, "GTFO") end end)
  11. جرب addCommandHandler("xxx", function(player) local vehicle = getPedOccupiedVehicle(player) if vehicle then setElementPosition(vehicle, x, y, z) else setElementPosition(player, x, y, z) end end)
  12. local x = math.random(10,100) local y = math.random(10,100) local z = math.random(10,11) local marker1 = createMarker(x, y, z,"checkpoint", 0, 0, 255, 255) local myBlip = createBlipAttachedTo(marker1, 31) function misMoney(player) if getElementType(player) == "player" and player == localPlayer then givePlayerMoney(source, math.random(3000, 5000)) destroyElement(marker1) destroyElement(myBlip) end end addEventHandler("onClientMarkerHit", marker1, misMoney)
  13. لانك حاط سيريالك؟
  14. The code work if you create the vehicle after using the code NOT before. This means, if you use the code and set the maxVelocity to 100, any new created vehicle will have maxVelocity = 100 if you again set maxVelocity to 200 any new created vehicle will have maxVelocity = 200 but the previous vehicle will stay at maxVelocity = 100. So this code does't change the current created vehicle but the newer.
  15. mapmanager must be started to show the maps in Maps tab
  16. i am not sure, but i think you need this too. https://wiki.multitheftauto.com/wiki/SetFogDistance
  17. https://wiki.multitheftauto.com/wiki/SetFarClipDistance
  18. addEventHandler ("onClientGUIClick", root, function () if source == GUIEditor_Button[1] then if isElement(sound) then stopSound(sound) else sound = playSound("2.mp3") end end end)
  19. أشرح أيش الي تبي تسويه بالتفاصيل
  20. ××× addEventHandler ("onClientGUIClick", root, function () if source == GUIEditor_Button[2] then if isElement(sound) then stopSound(sound) end sound = playSound("2.mp3") end end ) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Window[1] = guiCreateWindow(242,105,350,310,"",false) GUIEditor_Button[1] = guiCreateButton(0.3,0.3968,0.3486,0.2097,"",true,GUIEditor_Window[1]) addEventHandler ("onClientGUIClick", root, function () if source == GUIEditor_Button[1] then if isElement(sound) then stopSound(sound) end sound = playSound("2.mp3") end end )
  21. نصحح لك و حنا ما نعرف وش الي تبي تسويه؟
  22. Nope. button: This refers the button used to click on the mouse, can be left, right, or middle' What you looking for is clickedElement but since dxDrawRectangle aren't element, you can't use it until you find some other way like creating invisible window - label - or whatever in same position of the dxDrawRectangle, or you can check the clicked position with absoluteX and absoluteY.
  23. blackpoint is local and it return bool also you have wrong parameter in function blackBG. Check wiki https://wiki.multitheftauto.com/wiki/OnClientClick
  24. addEventHandler("onClientRender", root, function () if guiGetVisible(GUIEditor_Window[1]) then guiSetText(GUIEditor_Label[8], "Your ID: "..getElementData(localPlayer, "ID")) end end)
×
×
  • Create New...