Jump to content

Shady1

Members
  • Posts

    765
  • Joined

  • Last visited

  • Days Won

    47

Everything posted by Shady1

  1. Hello Everyone so finally the mapping side of our project is finished and you can watch the tralier of our map on youtube, me and my team put a lot of effort into this project and we struggled to do the best we could now the video is live and you can watch it, very soon we will provide you with access to our server, but before that some tests need to be done, so I think it will take a few days,We will take care to update and update the map of our project with each passing time, so we would like to hear your ideas, if you have any thoughts on this, please contact us. The map side of our project is 100% completed, we are still making efforts to do something on the script side, so we are trying to get our server active with the beta version as soon as possible... I am grateful to everyone who supported me in this project and thank you very much to my team, we will achieve better things together, I am proud of you (Fade2Black Development Team) Discord : https://discord.gg/NjrCCMHtwc
  2. -- First, create a variable to store the size of the colshape local colshapeSize = 5 -- Let's assign a default size of 5 units -- Function to create a square colshape function createSquareColshape(x, y, z) local size = colshapeSize -- Get the colshape size local colshape = createColRectangle(x - size / 2, y - size / 2, size, size) -- Create the square colshape return colshape -- Return the created colshape end -- Function to adjust the colshape size function setColshapeSize(newSize) colshapeSize = newSize -- Set the new size end -- Create a square colshape for testing purposes addCommandHandler("squarecolshape", function(player) local x, y, z = getElementPosition(player) -- Get the position of the player executing the command local colshape = createSquareColshape(x, y, z) -- Create the square colshape outputChatBox("Square colshape created!", player) -- Send a message indicating the colshape is created end) -- Add a command to adjust the size addCommandHandler("colshapesize", function(player, cmd, newSize) newSize = tonumber(newSize) -- Convert the argument to a number if newSize then setColshapeSize(newSize) -- Set the colshape size outputChatBox("Colshape size set to " .. newSize .. "!", player) -- Send a message indicating the size is set else outputChatBox("Invalid size. Please enter a number!", player) -- Send an error message for an invalid size end end)
  3. Shady1

    ERROR CL22

    Disabling Kaspersky while playing MTA, changing security product
  4. MTA'yı onedrive klasöründen çıkart ve öyle giriş yap, yani GTA:SA ve MTA:SA dosyaların OneDrive uzantısında olmamalı "C:\Users\kaanp\OneDrive\Masaüstü\GTA-TÜRKÇE-KATILIMSIZ" bu sorunu bu konudada belirttiğim gibi yapmalısınz.
  5. mtadiag çalıştır ve pastebin./xxxx kodunu gönder
  6. Shady1

    ban yedim

    tekrar giriş yap düzeldi
  7. tekrar giriş yapmayı dene düzeldi
  8. First topic of 2024, greetings everyone
  9. bu sorun iki ihtimalle karşıdır, birinicisi sürücülerle yani driver ile alakalı, driverlarını son güncelle, bu olmazsa bilgisayarını komple tarama yap,virüs taraması ve daha sonra tekrar mta indir dene.
  10. https://www.youtube.com/watch?v=SJYyQ5mONxE
  11. I can help you discord : shady.lua
  12. function disableWeaponControls() toggleControl(source, "fire", false) toggleControl(source, "aim_weapon", false) toggleControl(source, "next_weapon", false) toggleControl(source, "previous_weapon", false) end addEventHandler("onPlayerJoin", root, disableWeaponControls) https://wiki.multitheftauto.com/wiki/ToggleControl
  13. HTTP server file mismatch! sorunu, illaki bir kerede olsa bu sorunu yaşadığınızda tek yapmanız gereken %99 çözüm olan mta clientini 1 kereliğine tekrardan başlatmanız gerekmektedir, eğer bu işe yaramazsa MTA dosya konumundan client tarafında yüklenilen server dosyalarını silin ve MTA'yı 1 kereliğine yönetici olarak çalıştırın, bu sorun düzelecektir, eğer sunucu sahibiyseniz bu sorunu yaşamak istemezseniz scriptin meta.xml tarafında düzenlemeler yapmanızı tavsiye ediyorum, örneğin <script src="server.lua" type="server" /> ise server.lua tarafını servers.lua gibi yapabilirsiniz ve dosya ismini değiştirmenizi öneririm, bu sorun %99 çözüm odaklıdır konuyla ilgili github bağlantısı : https://github.com/multitheftauto/mtasa-blue/issues/1340#issuecomment-719798067
  14. local theVehicles = {} local spamTick = 0 local isRobbed = false function findVehsToRob(player) local vehicle = getNearestElement(player, "vehicle", 100) if (getTickCount() - spamTick < 100000) then outputChatBox("You are robbing a vehicle already", player, 255, 0, 0) return false end if isRobbed then return end spamTick = getTickCount() if (vehicle) then local x, y, z = getElementPosition(vehicle) local rx, ry, rz = getElementRotation(vehicle) local model = getElementModel(vehicle) robVeh = createVehicle(model, x, y, z) destroyElement(vehicle) setElementRotation(robVeh, rx, ry, rz) setVehicleLocked(robVeh, true) theVehicles[#theVehicles + 1] = robVeh outputChatBox("You're attempting to steal this vehicle, complete your tasks !", player, 0, 128, 0) triggerClientEvent(player, "sendTableToClient", player, theVehicles) addEventHandler("onVehicleStartEnter", robVeh, startRobbery) addEventHandler("onVehicleEnter", robVeh, taskOnEnter) isRobbed = true else outputChatBox("There is no nearby vehicle to steal", player, 255, 255, 255) end end addCommandHandler("robvehicle", findVehsToRob)
  15. server is activated Server IP Address : mtasa://91.134.166.75:22013
  16. Developers should understand the importance of using string methods because this way you can ensure readability and bruthe force free lines of code
  17. yes actually we can use some math methods in this, here I will show an example -- The function rounds up a number and then truncates the decimal places. function roundUpAndTruncate(number) -- Round number up local roundedNumber = math.ceil(number) -- The whole number (before truncating the decimal places) local integerPart = math.floor(roundedNumber) return integerPart end -- For example local number1 = 232.98266601563 local number2 = 232.49445450000 local number3 = 232.50000000000 local result1 = roundUpAndTruncate(number1) local result2 = roundUpAndTruncate(number2) local result3 = roundUpAndTruncate(number3) print("Case 1 - Result: " .. result1) print("Case 2 - Result: " .. result2) print("Case 3 - Result: " .. result3)
  18. Shady1

    MTA Crash

    try this version : https://nightly.multitheftauto.com/mtasa-1.6-rc-22270-20231011.exe
  19. Shady1

    Charging problems

    I understand your problem and I think I can say that it is related to the server mods you are trying to log in, for this you should first contact the administrators of the server you are trying to log in.
  20. you can use the getPlayerSerial function to the player's serial ID.
  21. Hello, I cannot provide support for this issue in this category, so I will send you a link, if you describe your problem in a more descriptive way, I will help you. https://forum.multitheftauto.com/forum/83-client/
×
×
  • Create New...