Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 17/09/21 in all areas

  1. I don't know if having a decompiler is a good idea. Most of the time, scripts are compiled to prevent people from stealing them. Sometimes, some people will hide backdoors & malicious stuff in their scripts but that's why we have community.multitheftauto.com. Scripts uploaded to our community are always monitored. so if possible, please don't advertise any decompilers since it might be used to take credit for other people's work.
    1 point
  2. Hi welcome. I want to share some video records of my Stuntplane Skills. Thanks. https://www.youtube.com/watch?v=5BTnQMZp9jQ https://www.youtube.com/watch?v=uvdEqlwYdfk https://www.youtube.com/watch?v=s8iz3An8IxA
    1 point
  3. Hey everyone, As Lua decompiling is not really a topic we want to discuss or promote in these forums, the thread has been closed. We cannot interfere with anyone hosting these services outside of our platforms, but we ask that no hints or advertisements are made towards them.
    1 point
  4. @Infinity#There are two flaws in your code: If two players observe vehicle damage, then both send the attacker into the vehicle, causing unnecessary network traffic that could lag the server. Since you can damage a vehicle with a shovel, this is an undesired effect. You should limit it to known weapon-ids only by checking the weapon parameter. Both can be fixed by adjusting the client.lua the following way: local function is_gun_id(id) if (type(id) == "number") and ((id >= 22 and id <= 34) or (id == 38)) then return true end return false end addEventHandler("onClientVehicleDamage", root, function(attacker, weapon, loss, x, y, z, tire) if (is_gun_id(weapon) and getElementType(source) == "vehicle" and getElementType(attacker) == "player" and attacker == localPlayer) then triggerServerEvent("mtasa.warpPed", attacker, source) end end) If you want to make it somewhat more secure you would use the "client" event variable on the serverside.
    1 point
  5. Acredito que não de um jeito tão simples, mas você pode usar o fileGetSize para ver o tamanho dos arquivos e o fileExists para checar os arquivos baixados.
    1 point
×
×
  • Create New...