All Activity

This stream auto-updates     

  1. Past hour
  2. eu consegui muito obrigado cada dia que passa estou aprendendo mais sobre script
  3. savour

    Deal with loadstring & enviroments

    about variables/arrays, you can check the string with patterns before performing the loadstring() on it, check for more information about it. for functions and events regulating, there is the wrapping way, which you can find in Bonsai's MGM, and the other way which i prefer to use, by adding debug hooks. it's extremely effective and gives you some extra abilities, check

    Deal with loadstring & enviroments

    There is a way without reading/writing files and it is not that hard to master. But the downside of that method is that it will be loaded already in your ram as a string, even if you do not use it. -- the script should be between those [[ ]], which is a multiline string. local file = [[ local variable = 1 function example () iprint(variable) end example() ]] function getFile (securityKey) if securityKey == "4GDT^*#46345" then -- < An important layer of security. Compiled scripts might be not be viewed, but that doesn't mean they can't be loaded. return file end end <export function="getFile" type="client"/> call ( getResourceFromName ( "resourceName" ), "getFile", "4GDT^*#46345" )
  5. #DeltaSCR

    fazendo radar MTA, AJUDA?

    getElementHealth - Para obter a vida do Jogador; getPedArmor - Para obter o colete do Jogador; getPedOxygenLevel - Para obter a respiração/oxigênio do Jogador; dxDrawText ou dxDrawRectangle - Para criar um texto ou um Retângulo com o Nível dos Dados.
  6. Jonas^

    Substituir a tela de download do MTA

    Pra fazer isso você deve escolher um resource pra baixar por último e setar prioridade negativa nele no meta.xml e logicamente o resource que vai baixar primeiro que todos que seria o de tela de download, bem no resource de tela de download você pode fazer assim, fiz um exemplo aqui: local screen = { guiGetScreenSize () } function renderLoading () if getElementData (localPlayer, "downloaded") then -- Se o player tiver essa data, vai cancelar este render e depois remover essa data, que não será mais utilizada nesta sessão. removeEventHandler ("onClientRender", getRootElement(), renderLoading) setElementData (localPlayer, "downloaded", false) end dxDrawText("Baixando Resources...", 0, 0, screen[1], screen[2], tocolor(255, 255, 255, 255), 1, "clear", "center", "center", false, false, true) end addEventHandler ("onClientRender", getRootElement(), renderLoading) Agora no resource que você setar prioridade negativa pra iniciar por último faça assim: function closeScreen () setElementData (localPlayer, "downloaded", true) end addEventHandler ("onClientResourceStart", resourceRoot, closeScreen)
  7. Overkillz

    Deal with loadstring & enviroments

    @IIYAMA I mean protection from the loaded string. Which one should be the way/ways that people can try to steal something (I don't care about dff, txd ...etc | Only scripts) @Ayush Rathore Im already aware about Bonsai's MGM but Im not interested on using his code. I want to learn how does the things work and @IIYAMA is one of the guys who explains such things very detailed. Regards.
  8. Today
  9. Jonas^

    [Ajuda] Porfavor Central SAMU

    local inutil5 = createMarker(1567.79089, -1615.65723, 10.38281, "cylinder", 3, 255, 0, 0, 50) local rBlock = createColRectangle(1997.01465, -1451.21179, 75, 98) local areaR = createRadarArea(1997.01465, -1451.21179, 75, 98, 255, 0, 0, 80) local car = {} local carID = nil local join = createMarker(2033.91504, -1402.85449, 17.29235, "cylinder", 2, 255, 255, 0, 0) local inutil2 = createMarker(2033.91504, -1402.85449, 16.09235, "cylinder", 2, 255, 0, 0, 40) local exit = createMarker(246.39839, 107.42607, 1003.21875, "cylinder", 1, 255, 255, 0, 0) local inutil3 = createMarker(246.39839, 107.42607, 1002.21875, "cylinder", 1, 255, 0, 0, 50) setElementInterior(exit, 10) setElementDimension(exit, 2) setElementInterior(inutil3, 10) setElementDimension(inutil3, 2) local marker = createMarker(246.62920, 118.53716, 1003.21875, "cylinder", 2, 255, 255, 0, 0) local inutil = createMarker(246.62920, 118.53716, 1002.21875, "cylinder", 2, 255, 0, 0, 50) setElementInterior(marker, 10) setElementDimension(marker, 2) setElementInterior(inutil, 10) setElementDimension(inutil, 2) local pickup = createPickup(2033.91504, -1402.85449, 17.29235, 3, 1240, 1) -- ######### VARIÁVEIS ######### function saveData6(conta) if conta then local source = getAccountPlayer(conta) if isElement(source) then local medkit = getElementData(source,"KitMedico") or 0 setAccountData(conta, "medkits",tonumber(medkit)) end end end function loadData6(conta) if not (isGuestAccount (conta)) then if (conta) then local source = getAccountPlayer(conta) if isElement(source) then local medkits = getAccountData(conta,"medkits") if type(medkits) == "boolean" or "medkits" == nil then medkits = 0 end setElementData(source, "KitMedico", tonumber(medkits)) end end end end addEventHandler("onPlayerLogin", root, function(_, acc) setTimer(loadData6,1000,1,acc) end ) function saveOnStartScript(res) if res == getThisResource() then for i, player in ipairs(getElementsByType("player")) do local acc = getPlayerAccount(player) if not isGuestAccount(acc) then loadData6(acc) end end end end addEventHandler("onResourceStart", getRootElement(), saveOnStartScript) function saveOnStopScript(res) if res == getThisResource() then for i, player in ipairs(getElementsByType("player")) do local acc = getPlayerAccount(player) if not isGuestAccount(acc) then saveData6(acc) end end end end addEventHandler("onResourceStop", getRootElement(), saveOnStopScript) function saveOnQuit(quitType) local acc = getPlayerAccount(source) if not (isGuestAccount(acc)) then if acc then saveData6(acc) end end end addEventHandler("onPlayerQuit", getRootElement(), saveOnQuit) function fadeCameraDelayed(player) if (isElement(player)) then fadeCamera(player, true, 0.5) end end function entrar(thePlayer) fadeCamera(thePlayer, false, 1.0, 0, 0, 0) setTimer(fadeCameraDelayed, 1000, 1, thePlayer) setTimer(function() setElementInterior(thePlayer, 10, 246.39647, 110.09633, 1003.22571) setElementDimension(thePlayer, 2) end, 1000, 1) end addEventHandler("onPickupHit", pickup, entrar) function sair(thePlayer) fadeCamera(thePlayer, false, 1.0, 0, 0, 0) setTimer(fadeCameraDelayed, 1000, 1, thePlayer) setTimer(function() setElementInterior(thePlayer, 0, 2032.08215, -1408.17297, 17.16406) setElementDimension(thePlayer, 0) end, 1000, 1) end addEventHandler("onMarkerHit", exit, sair) function blockJoin(player) if not isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("SAMU")) then if getPedOccupiedVehicle(player) then setElementPosition(getPedOccupiedVehicle(player), 1983.74536, -1465.94702, 13.39063) else setElementPosition(player, 1983.74536, -1465.94702, 13.39063) end else exports.Scripts_Dxmessages:outputDx(player, "Você não pode entrar aqui!", "error") end end addEventHandler("onColShapeHit", rBlock, blockJoin) function dxMsg(source, text, type) exports.Scripts_Dxmessages:outputDx(source, text, type) end function open(source) triggerClientEvent(source, "openMenuS", root) end addEventHandler("onMarkerHit", marker, open) function createAmbulance() if car[source] and isElement(car[source]) then destroyElement(car[source]) car[source] = nil end local carID = 416 setElementDimension(source, 0) setElementInterior(source, 0, 1994.9879150391,-1451.1810302734,13.5546875) car[source] = createVehicle(carID, 1994.9879150391,-1451.1810302734,13.5546875) warpPedIntoVehicle(source,car[source]) dxMsg(source, "Veículo spawnado!", "info") end addEvent("createAmbulance",true) addEventHandler("createAmbulance", root, createAmbulance) function giveMedicKit() medKit = getElementData(source, "KitMedico") if medKit < 30 then setElementData(source, "KitMedico", medKit + 1) dxMsg(source, "Você adicionou um Kit Médico!", "success") else dxMsg(source, "Você já alcancou seu limite de Kit Médico.", "error") end end addEvent("giveMedicKit",true) addEventHandler("giveMedicKit", root, giveMedicKit) function setSAMUSkin() setElementModel(source, samuSkinID) end addEvent("setSAMUSkin",true) addEventHandler("setSAMUSkin", root, setSAMUSkin) --[[function checkSkin() for i, player in pairs (getElementsByType("player")) do local accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup("user."..accName, aclGetGroup("SAMU")) then if getElementModel(player) == samuSkinID then else setElementModel(player, samuSkinID) end end end end setTimer(checkSkin, 5000, 0)--]] function blockVehicleEnter(player, seat, jacked) local accName = getAccountName(getPlayerAccount (player)) if not isObjectInACLGroup("user."..accName, aclGetGroup("SAMU")) and getElementModel(source) == 416 then cancelEvent() dxMsg(player, "Você não pode usar este veículo.", "error") end end addEventHandler("onVehicleStartEnter", getRootElement(), blockVehicleEnter) Deixe um like nas respostas que te ajudaram... clique no botão de coração que tem no lado da resposta......
  10. والله هذي الميزة نبغاها تكون موجودة ليت واحد من المشرفين العرب يكلم ادارة ام تي اي بخصوص هذه الميزة لو خمس دقائق كافية مشوار يا ولد
  11. DmAr511

    مشكله x

    السلام عليكم ورحمة الله وبركاته في عندي مشكله بلمود ذه راح اطرح الكود function gold_gives( player ) givePlayerPackage( player, 'Gold' ) end addEvent("gold_gives",true) addEventHandler("gold_gives", root, gold_gives) كل ما اوزع ما اقدر يكتب لي بلديبق كلمات طبعا هاذا ملفات كلينت elseif source == GUIEditor.button[6] then row , col = guiGridListGetSelectedItem ( GUIEditor.gridlist[2] ) if row >= 0 then local playerName = guiGridListGetItemData(GUIEditor.gridlist[2], row, 1) if playerName and playerName ~= nil then local player = getPlayerFromName(playerName); triggerServerEvent( 'gold_gives', localPlayer, player ) end يكتب لي بلديبق
  12. اتوقع ايضا الخادم ما رح يتحمل كل هذي الصور تخيل كل 100 ميلي سيكند مثلا صورة تخيل كل 100 ميلي سيكند الي هي ما تجي ربع ثانية صورة كل ثانية 10 صور يعني تخيل كم صورة تطلع بالدقيقة الواحدة ؟ يرجال حتى الخادم ممكن يصيرله شي مب السيرفر بس
  13. holuzs

    help with safe area

    addEventHandler("onColShapeLeave", greenzone, greenzoneLeave)
  14. addCommandHandler getPlayerFromName setPlayerWantedLevel Veja os exemplos na página e tente colocar em prática, se tiver dificuldades poste o código aqui.
  15. علي ما اعتقد تصور كل ثانية صورة و تحفظهم بملف وبعدين تعرض صورة ورا صورة
  16. KillerX


    بلاير تحط بدالها الشخص اللي تبي ترسبنة النايترو زي ما قولتلك فوق
  17. KillerX


    راجع كودك عندك خطأ في التحقق
  18. [T]|O|[P]George


    addEvent( "BuyW", true) addEventHandler( "BuyW", getRootElement(), function ( tPM , gWA, wID ) local PData = getElementData(source,"Your Data Name") if PData >= tPM then giveWeapon (source, wID, gWA ) setElementData (source,"Data Name", PData - tPM) end else outputChatBox("you don't have points",255,255,255,true) end ) حط الداتا حقك ، لو معرفها ~#
  19. [AJUDA]Com Quais Funçoes Eu Crio Um Script Ao Digitar /estrelas modifica o Nivel De Procurado Do Jogador?
  20. Gabriel63495

    fazendo radar MTA, AJUDA?

    Estou fazendo um rada, queria sabe como faço pra colocar vida, colete e respiração na parte de baixo do radar
  21. السلام عليكم ورحمة الله وبركاته إستفسار : هل يمكن بأكواد معينة تسجيل مقطع فيديو لشاشة اللاعب وهو يلعب ؟ يعني انا اريد مود عبارة عن gridlist نافذة GUI اختار اللاعب المعين واقدر اسجل مقطع فيديو مدته 5 دقائق كحد أقصى ورفع المقطع الى خادم السيرفر لمشاهدته لاحقاً هل يمكن ؟ طبعاً انا استفسرت عشاني مهتم بالحماية ومكافحة الغش في اللعبة اذا مايمكن نكلم ادارة اللعبة تسويلنا هذه الحركة لانها تساعد وبشكل كبير في كشف الغشاشين والهكرات
  22. #,xiRocKyz

    مو لوحة القوانين الجديده

    الاسم زرفته و الافتار زرفته وش باقي ؟ 😂
  23. como faço para substituir a tela de carregamento do mta por uma imagem qualquer, quando você entra em um servidor fica uma barrinha branca e um circulo pequeno girando, queria tirar isso e colocar imagens ou video, da uma força ai, por onde começo
  24. MontiVante

    help with safe area

    I have a problem when leaving the safe area I am bugeado when changing weapons I would like the weapons to be locked in the safe area and when leaving continue to function normally. local greenzone = createColRectangle(-2434.68799,-688.11896,150,200) local greenzoneMap = createRadarArea(-2434.68799,-688.11896,150,200,0,255,0,100) function greenzoneEnter (element) if ( getElementType(element) == "player" ) then if not ( getElementData(element,"invincible") ) then setElementData(element,"invincible",true) end outputChatBox("#00ff00[#fff000Zona Segura#00ff00] #ff0000Ha Entrado a Zona Segura#00ff00.",element,50,252,3,true) toggleControl(element,"fire",false) toggleControl(element,"next_weapon",false) toggleControl(element,"previous_weapon",false) toggleControl(element,"aim_weapon",false) toggleControl(element,"vehicle_fire",false) toggleControl(element,"vehicle_secondary_fire",false) setPedWeaponSlot(element,0) end end addEventHandler("onColShapeHit",greenzone,greenzoneEnter) function greenzoneLeave (element) if ( getElementType(element) == "player" ) then if ( getElementData(element,"invincible") ) then setElementData(element,"invincible",false) end outputChatBox("#00ff00[#fff000Zona Segura#00ff00] #ff0000Ha Dejado la Zona Segura#00ff00.",element,50,252,3, true) toggleControl(element,"fire",true) toggleControl(element,"next_weapon",true) toggleControl(element,"previous_weapon",true) toggleControl(element,"aim_weapon",true) toggleControl(element,"vehicle_fire",true) toggleControl(element,"vehicle_secondary_fire",true) end end addEventHandler("onColShapeLeave",greenzone,greenzoneEnter)
  25. Aln3mani

    مشكلة في التثبيت

    المشكله م عندي خبرهه ب الاختراق ولكن بحاول مشكور عالرد . .
  1. Load more activity