Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. Yes, i don't see where you have use the table or doing anything with it.
  2. Post the rest of the code.
  3. https://wiki.multitheftauto.com/wiki/EngineLoadTXD https://wiki.multitheftauto.com/wiki/EngineImportTXD https://wiki.multitheftauto.com/wiki/EngineLoadDFF https://wiki.multitheftauto.com/wiki/EngineReplaceModel
  4. Have you read this topic before? https://forum.multitheftauto.com/viewtopic.php?f=91&t=31891
  5. في الكلينت يسوي كومندات الكلينت فقط و ما يضبط على كومندات السيرفر executeCommandHandler أضن أن الكود
  6. TAPL

    GUI Help

    bindKey ( "F3", should be: bindKey ( "F3", "down",
  7. أتوقع أنك تستخدم أحد موداتي الي أنتشرت و هو الي يطيحك في الهوا
  8. صورة حقت الرابط"؟ وش صورته" Download latest version اضغط على كلمة + حنا ما نسوي مودات،، فقط نساعد في حل المشاكل/الأخطاء
  9. فتحت الرابط؟
  10. You're welcome.
  11. https://community.multitheftauto.com/index.php?p=resources&s=details&id=1224
  12. function getMyData(thePlayer, command) local data = getAllElementData(thePlayer) for k, v in pairs(data) do outputChatBox(tostring(k) .. ": " .. tostring(v), thePlayer) end end addCommandHandler("teste", getMyData)
  13. جربت الكود و شغال تأكد أنك ضايفه في قروب أدمن
  14. TAPL

    bindkey

    addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, v in ipairs ( getElementsByType ( "player" ) ) do bindKey ( v, "r", "down", Flip ) end end ) addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, "r", "down", Flip ) end ) function Flip ( player ) if isPedInVehicle ( player ) then if ( getPlayerMoney ( player ) >= 10000 ) then takePlayerMoney ( player, 10000 ) rx, ry, rz = getVehicleRotation ( getPedOccupiedVehicle( player ) ) setVehicleRotation ( getPedOccupiedVehicle ( player ), rx +180, ry, rz +180) outputChatBox ( "Car Successfully fliped", player, 255, 255, 0, true ) else outputChatBox ( "Not enough money.", player, 255, 0, 0, true ) end else outputChatBox ( "You are not in a vehicle", player, 255, 0, 0, true ) end end
  15. GuiM = createMarker ( x, y, z, "checkpoint", size, 255, 255, 0, 255 ) addEventHandler ( "onClientMarkerHit", GuiM, function ( hitPlayer ) if getElementType ( hitPlayer ) == "player" and hitPlayer == localPlayer and not isPedInVehicle(hitPlayer) then guiSetVisible ( Wnd, true ) showCursor ( true ) guiSetInputEnabled ( true ) end end ) addEventHandler ( "onClientMarkerLeave", GuiM, function ( leftPlayer ) if getElementType ( leftPlayer ) == "player" and leftPlayer == localPlayer and not isPedInVehicle(leftPlayer) then guiSetVisible ( Wnd, false ) showCursor ( false ) guiSetInputEnabled ( false ) end end )
  16. ذي بس للكلينت ما يصير تستخدمها في السيرفر localPlayer https://wiki.multitheftauto.com/wiki/LocalPlayer
  17. و خطأ مره ثالثة getLocalPlayer() ذا كلينت فقط و هنا الشرط حقك خطأ if map and map ~= 'Here' then المفروض if map and map == 'Here' then + الأفنت مشكوك في أمره بعدين ياذكي ترا صاحب الموضوع ما يبيه للبيس مود يبيه نفس البيس مود مو هو أصلاً البيس مود ما تقدر تطلق أو تضرب في اللوبي أو الأنتظار
  18. tt = setTimer(function() if isElement(pruefungsrepVehicle) and getElementHealth(pruefungsrepVehicle) <= 800 then local player = getVehicleController(pruefungsrepVehicle) if player then if isTimer(tt) then killTimer(tt) end destroyElement(pruefungsrepVehicle) outputChatBox("Nice Job!", player, 125, 0, 0) setElementPosition(player, 1172.158, 1350.906, 10.922) setElementDimension(player, 0) end end end, 3000, 0)
  19. جرب addEventHandler("onPlayerWasted", root, function() setTimer(function(source) local accountName = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user." .. accountName, aclGetGroup("Admin")) then executeCommandHandler("add",source,tostring(getElementData(source,"ID"))) else aclGroupAddObject(aclGetGroup("Admin"), "user."..accountName) executeCommandHandler("add",source,tostring(getElementData(source,"ID"))) aclGroupRemoveObject(aclGetGroup("Admin"), "user."..accountName) end local name = string.gsub(getPlayerName(source), "#%x%x%x%x%x%x", "") local playerTeam = getPlayerTeam(source) local TeamName = playerTeam and getTeamName(playerTeam) or "N/A" local r, g, b = getTeamColor(playerTeam) local color = string.format("#%02X%02X%02X", r, g, b) outputChatBox("*** #Ffffff[ #ffff00"..name.." ] #00cc00has add to game #ffffff[ "..color..""..TeamName.." #ffffff]", root, 255, 255, 0, true) end, 2000, 1, source) end )
  20. من وين جا؟ source طيب
  21. That's because your button has different name. GUIEditor.button[13] = guiCreateButton(901, 483, 418, 179, "Spawn!", false, GUIEditor.window[1]) It's GUIEditor.button[13] not Spawn.
  22. object = createObject ( 2930, 1520.3000488281, -1629.5999755859, 15.199999809265 ) marker = createMarker ( 1520.0999755859, -1630.5999755859, 13.5, 'cylinder', 2, 0, 0, 0, 0 ) function Move () if isElementWithinMarker ( source, marker ) then moveObject ( object, 1500, 1520.3000488281, -1631.0999755859, 15.199999809265 ) else moveObject ( object, 1500, 1520.3000488281, -1629.5999755859, 15.199999809265 ) end end bindKey ( thePlayer, "H", "down", Move ) !! لم يتم التجربه source = ?? thePlayer = ??
  23. Where is the event or whatever the way you calling the function reparierungszieltut?
  24. getElementHealth is client side and server side. How about tell us what you are trying to do so we can help you?
  25. Health = createPickup(150.42302, 1373.00964, 1083.85938, 0, 100) setElementInterior(Health, 5) setElementDimension(Health, 11) Armor = createPickup(150.42302, 1372.00964, 1083.85938, 1, 100) setElementInterior(Armor, 5) setElementDimension(Armor, 11)
×
×
  • Create New...