Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 13/01/22 in all areas

  1. Server Time Sync This resource is used to sync server timestamp (in Milliseconds) to all clients. It is for scripters and resources that may use it in the future. The resource itself is not very complicated at it's core, but it can be incredible useful for (infinity) animations. For example to let many trains drive around the map with almost no bandwidth required, in that resource is the same concept applied. local timeNow = exports.servertimesync:getServerTime() if timeNow then local currentRotation = ((timeNow % 10000) / 10000) * 360 -- Rotate 0-359 every 10 seconds. end I have added a little test resource. Which you can download below. World location: 0, 0, ~. You can download the resource here. Enjoy your server . The test resource. (requires servertimesync)
    1 point
  2. طيب فيك تستخدم حدث https://wiki.multitheftauto.com/wiki/CancelEvent
    1 point
  3. Each sub-table inside of the table stored inside the desc variable has four key-value pairs after script execution, for example: [1] = "skin", [2] = "Base Skin", ["label"] = gui-label, ["edit"] = gui-edit. You can obtain a single such gui-edit by... desc[1].edit ... or you can loop through the desc table using an for-each ipairs loop and then do as eoL|Shady has suggested.
    1 point
  4. @LeonardoWilliams guiGetText(v.edit) Try.
    1 point
  5. https://wiki.multitheftauto.com/wiki/OnClientMouseWheel استخدم الأفنت
    1 point
  6. isElementWithinMarker اتحقق اذا كان العنصر داخل الماركر او لا
    1 point
  7. server: function startImageDownload(player) fetchRemote ("https://i.imgur.com/Aa9kXWi.jpeg", sendFiletoClient, "", false, player) -- use direct link for this end function sendFiletoClient(responseData, errorCode, player) if (errorCode == 0) then triggerClientEvent(player, "printImageInfo", resourceRoot, responseData) end end local player = getPlayerFromName("Burak2346") -- change with your nick startImageDownload(player) client: addEvent("printImageInfo", true) addEventHandler( "printImageInfo", resourceRoot, function(pixels) local image = fileCreate ("image.jpeg") fileWrite(image, pixels) local fileSize = fileGetSize(image) outputDebugString(fileSize) fileClose(image) end ) Since it calculates the file size in bytes, you can do some math and convert it to the size you want, such as kb, mb.
    1 point
  8. It should be working now. @ozulus I have added the large update for the airplane resource. NOTE: Both resources must be updated to the latest version. As promised, high performance after initializing and nearly zero latency. - Added a last minute fix for an unexpected error. 1.1.0 > 1.1.1 Note: Not all bugs have been fixed. Like for example, aircraft can still fly through mountains. But you can adjust that by adding the aircraft manually.
    1 point
  9. The Devil's Neon Hi, enjoy this Colorful n' Lightful neon Theme " The Devil's Neon " How To install: - Extract the .zip file. - There will be two folders one MTA and other Skins. - Copy the two folders and paste in your mta sa folder. - about how to set skin Go to Settings > Interface Down you'll find default change it to neon. Ex: C:\Program Files (x86)\MTA San Andreas 1.5 Preview: Download link: Here
    1 point
×
×
  • Create New...