Jump to content

#RooTs

Members
  • Posts

    1,990
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by #RooTs

  1. hello. I haven't been on here for some time. Is this topic still active for complaints? this resource contains external download link https://community.multitheftauto.com/index.php?p=resources&s=details&id=18852 Staff edit: Sorted (all uploads from that user violated regulations and were removed)
  2. what variable do I put in DX? addEventHandler("onClientTransferBoxProgressChange", root, function(size, total) barprogress = ( size / total ) end ) addEventHandler("onClientTransferBoxVisibilityChange", root, function(vis) barvisible = vis end ) barvisible = isTransferBoxVisible() dxDrawImage(botX+sizeX+343, botX2+sizeX2+701, 592/100*barvisible, 6, 'assets/progress_bar.png', 0, 0, 0, tocolor(43, 171, 226, 255), true) --or dxDrawImage(botX+sizeX+343, botX2+sizeX2+701, 592/100*barprogress, 6, 'assets/progress_bar.png', 0, 0, 0, tocolor(43, 171, 226, 255), true) sorry, but I confused
  3. i need the load function to put in dx Ex: getTransferBoxProgress()
  4. I want to know if there is any way to make this example in DX local function progressChange(downloadedSize, totalSize) if not data.browser then return false end if isVisible == false then showTransferBox() else local percentage = floor(min((downloadedSize / totalSize) * 100, 100)) executeBrowserJavascript(data.browser, "document.querySelector('.bar-progress').style.width = '" .. percentage .. "%'") end end addEventHandler("onClientTransferBoxProgressChange", root, progressChange) I want to make a slash in DX my example: --maybe in Render ?? addEventHandler("onClientTransferBoxProgressChange", root, function(downloadedSize, totalSize) local percentage = math.min((downloadedSize / totalSize) * 100, 100) dxDrawImage(botX+sizeX+343, botX2+sizeX2+701, 592/100*percentage, 6, 'assets/progress_bar.png', 0, 0, 0, tocolor(43, 171, 226, 255), true) end) --is it possible to make it inside the render? addEventHandler("onClientRender", root, function(downloadedSize, totalSize)
  5. wow..no help here. all ignorant folks. where is the support of this forum? OMG I being ignored for what reason?
  6. I only see views and no solution? can someone help me please
  7. <group name="Console"> <acl name="Moderator"></acl> <acl name="SuperModerator"></acl> <acl name="Admin"></acl> <acl name="RPC"></acl> <object name="user.Console"></object> -- se você removeu essa linha da ACL e for usar o CMD do MTA não vai conseguir mesmo.. </group> coloque essa linha de novo no grupo CONSOLE se quiser usar o CMD do MTA <object name="user.Console"></object> Caso não saiba o que é o CMD do MTA é essa janela ai
  8. hello guys. initially, sorry me for my english. I'm having difficulty using this feature. https://community.multitheftauto.com/index.php?p=resources&s=details&id=11231 I've already done the entire procedure. tested everything I did the entire procedure. but it didn't work OBS: I also changed the ACL. i tried everything ( any solution? please help ) server.lua cliente.lua mailer.php my files in callRemote http://multitheftauto.rf.gd/sendemail/
  9. please, does update to resource. URL broken
  10. sem descrição https://community.multitheftauto.com/index.php?p=resources&s=details&id=15347 https://community.multitheftauto.com/index.php?p=resources&s=details&id=14083
  11. pronto esse é o code dele com os <>
  12. duplicate https://community.multitheftauto.com/index.php?p=resources&s=details&id=18461 https://community.multitheftauto.com/index.php?p=resources&s=details&id=18458 Removed.
  13. this was my last attempt function save(reason, quitType) local team = getPlayerTeam(source) local account = getPlayerAccount(source) if (quitType == "Timed out") or (reason == "Quit") or (reason == "Kicked") then if (team) and not isGuestAccount(account) then setAccountData(account, "team", getTeamName(team)) end end addEventHandler("onPlayerQuit", getRootElement(), save)
  14. hey guys. I am with problemas with my save system. I can't find a way to save the content when the player timed out part of my code my intention is to save all this content within these events "Unknown" "Quit" "Kicked" "Banned" "Bad Connection" "Timed out" -- event to save save mostly within the event "time out"
  15. Olá amigos, olá amigas. estou dando uma "estudada". e estou dando uma atualizada em um "Save-System" meu que tenho aqui. queria saber sobre o evento "Timed out" se existe uma maneira de setar os meus dados no "timed out" assim como no "onPlayerQuit" addEventHandler("onPlayerQuit", getRootElement(), save) Eu dei uma pequena pesquisada mais não intendi os argumentos sobre "quitType" eu quero salvar meus "itens" nesses argumentos, principalmente no "timed out" "Unknown" "Quit" "Kicked" "Banned" "Bad Connection" "Timed out" parte do meu code function onQuit (quitType, reason, responsibleElement) if not (isGuestAccount (getPlayerAccount (source))) then account = getPlayerAccount (source) if (account) then local x,y,z = getElementPosition (source) local r,g,b = getPlayerNametagColor (source) setAccountData (account, "funmodev2-money", tostring (getPlayerMoney (source))) setAccountData (account, "funmodev2-skin", tostring (getPedSkin (source))) setAccountData (account, "funmodev2-health", tostring (getElementHealth (source))) setAccountData (account, "funmodev2-armor", tostring (getPedArmor (source))) setAccountData (account, "funmodev2-R", r) setAccountData (account, "funmodev2-G", g) setAccountData (account, "funmodev2-B", b) setAccountData (account, "funmodev2-x", x) setAccountData (account, "funmodev2-y", y) setAccountData (account, "funmodev2-z", z) setAccountData (account, "funmodev2-int", getElementInterior (source)) setAccountData (account, "funmodev2-dim", getElementDimension (source)) setAccountData (account, "funmodev2-wantedlevel", getPlayerWantedLevel (source)) setAccountData (account, "funmodev2-weaponID0", getPedWeapon (source, 0)) setAccountData (account, "funmodev2-weaponID1", getPedWeapon (source, 1)) setAccountData (account, "funmodev2-weaponID2", getPedWeapon (source, 2)) setAccountData (account, "funmodev2-weaponID3", getPedWeapon (source, 3)) setAccountData (account, "funmodev2-weaponID4", getPedWeapon (source, 4)) setAccountData (account, "funmodev2-weaponID5", getPedWeapon (source, 5)) setAccountData (account, "funmodev2-weaponID6", getPedWeapon (source, 6)) setAccountData (account, "funmodev2-weaponID7", getPedWeapon (source, 7)) setAccountData (account, "funmodev2-weaponID8", getPedWeapon (source, 8)) setAccountData (account, "funmodev2-weaponID9", getPedWeapon (source, 9)) setAccountData (account, "funmodev2-weaponID10", getPedWeapon (source, 10)) setAccountData (account, "funmodev2-weaponID11", getPedWeapon (source, 11)) setAccountData (account, "funmodev2-weaponID12", getPedWeapon (source, 12)) setAccountData (account, "funmodev2-weaponAmmo0", getPedTotalAmmo (source, 0)) setAccountData (account, "funmodev2-weaponAmmo1", getPedTotalAmmo (source, 1)) setAccountData (account, "funmodev2-weaponAmmo2", getPedTotalAmmo (source, 2)) setAccountData (account, "funmodev2-weaponAmmo3", getPedTotalAmmo (source, 3)) setAccountData (account, "funmodev2-weaponAmmo4", getPedTotalAmmo (source, 4)) setAccountData (account, "funmodev2-weaponAmmo5", getPedTotalAmmo (source, 5)) setAccountData (account, "funmodev2-weaponAmmo6", getPedTotalAmmo (source, 6)) setAccountData (account, "funmodev2-weaponAmmo7", getPedTotalAmmo (source, 7)) setAccountData (account, "funmodev2-weaponAmmo8", getPedTotalAmmo (source, 8)) setAccountData (account, "funmodev2-weaponAmmo9", getPedTotalAmmo (source, 9)) setAccountData (account, "funmodev2-weaponAmmo10", getPedTotalAmmo (source, 10)) setAccountData (account, "funmodev2-weaponAmmo11", getPedTotalAmmo (source, 11)) setAccountData (account, "funmodev2-weaponAmmo12", getPedTotalAmmo (source, 12)) end end end addEventHandler ("onPlayerQuit", getRootElement(), onQuit) para falar que não tentei, tentei fazer usando uma "IF". if (reason == "Timed out") then --code end mais não deu certo..
  16. this resource not contain author https://community.multitheftauto.com/index.php?p=resources&s=details&id=6665
  17. Já tentou usar setAccountData Veja o exemplo da wiki e tente fazer... é easy Ah e outra coisa.. pare de usar "não" "sim" Use os padrões ( true e false ) nos elementos
  18. Pode fazer um video e postar aqui para a gente ver isso? Pode ser algo em seu servidor. E não temos como saber o que é.
  19. E esse numero tem limite ? Ou soh vai de 0 à 10 ?
×
×
  • Create New...