Jump to content

N3xT

Retired Staff
  • Posts

    2,490
  • Joined

  • Days Won

    18

Everything posted by N3xT

  1. Impressive work! I’d like to thank everyone who participated in this release for their huge effort. Keep it up boys
  2. addEventHandler("onResourceStart", resourceRoot, function() for _, player in pairs(getElementsByType("player")) do setElementData(player, "HaveData", 0) end end )
  3. N3xT

    help me plz

    Please read our guidelines so others can understand your issue correctly
  4. adf.ly وعليكم السلام، ممنوع استخدام الروابط الربحية تم حذف الرابط الى حين تعديل الموضوع
  5. N3xT

    Loadscreen

    please read this before you post a new topic
  6. Please use the code tool next time to share your codes, so it would be easier for others to read and understand your codes. I edited it for you this time. Also, please explain your issue or what you're trying to achieve properly and on the topic, not hidden within your codes because it's really hard to notice. For your request, you could use these: onClientGUIClick guiSetVisible
  7. https://wiki.multitheftauto.com/wiki/SetPedAnimation 5th argument, loop: indicates whether or not the animation will loop. just set it to false
  8. guiSetVisible(GUIEditor.label[1], false)
  9. N3xT

    Button Team

    You need to trigger an event to make this happens, so when the player presses the button you send a server-side trigger, furthermore, you send it back again to his teammates and then do whatever you want to them triggerClientEvent triggerServerEvent
  10. <meta> <script src="file_name.lua" type="server"></script> </meta> edit file_name with the file you have
  11. local marker = createMarker(--[[...]]) local blip = createBlipAttachedTo(marker --[[...]]) addEventHandler("onClientMarkerHit", marker, function(he, md) destroyElement(source) destroyElement(blip) end)
  12. لا تكرر الردود, والمرة الجاية اختار القسم الصحيح لموضوعك https://forum.multitheftauto.com/forum/134-البرمجة/
  13. N3xT

    setTimer

    what are you trying to achieve exactly? a command with a cooldown?
  14. please, if you're not a proper english speaker just use your native forum to explain your issue properly
  15. https://wiki.multitheftauto.com/wiki/SetElementData https://wiki.multitheftauto.com/wiki/GetElementData https://forum.multitheftauto.com/topic/83384-element-data/
  16. Just edit these values (x, y, z)? Click here for more info
  17. memory leak حدث الخروج لابد منه عشان تتجنب الـ
  18. @VenomNX removePedFromVehicle لازم تستخدم معاه ,onVehicleEnter ما ينلغي جرب local bikes = {} addEventHandler("onMarkerHit", root, function(element, matchingDimension) if not isElement(element) or not matchingDimension or getElementType(element) ~= "player" then return end if source == pizMar then triggerClientEvent(element, "onPizzaHit", resourceRoot) elseif source == pizMar2 then if getElementData(element, "pizzaOccupent") == true and not bikes[element] then bikes[element] = createVehicle(482, -74.28358, -352.48004, 1.38142, 359.447, 0.000, 93.239) if bikes[element] then warpPedIntoVehicle(element, bikes[element]) setElementData(bikes[element], "isPizzaBike", true) end end end end ) addEventHandler("onVehicleStartEnter", root, function(player) if getElementData(source, "isPizzaBike") == true then if source ~= bikes[player] then cancelEvent() end end end ) addEventHandler("onPlayerQuit", root, function() local bike = bikes[source] if bike then destroyElement(bike) bikes[source] = nil end end )
  19. You need to calculate your vehicle rotation & speed as far as I know. Check out this resource for more info https://community.multitheftauto.com/index.php?p=resources&s=details&id=5078
  20. dxDrawText wordBreak: if set to true, the text will wrap to a new line whenever it reaches the right side of the bounding box. If false, the text will always be completely on one line.
  21. Check your debug (debugscript 3) for errors, also make sure you added the file into your meta and you're using the correct path
  22. اذا انه شغال هذا لا يدل على انه صحيح، فيه فنكشنات من الخطأ استخدامها داخل تايمر متكرر والرندر خصوصاً معلومات زي كذا المفروض ترسل التريقر عند فتح اللوحة كمثال لا اكثر ولا اقل، وكذا تكون وفرت من استهلاك معالج السيرفر وغيره من الامور الاخرى
  23. triggerServerEvent("ON_RENDER_BEGIN",localPlayer); خطأ استخدام التريقر بداخل رندر
  24. N3xT

    Help for json

    looks like the JSON string is invalid
×
×
  • Create New...