Jump to content

edge

Members
  • Posts

    33
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by edge

  1. https://wiki.multitheftauto.com/wiki/Scripting_Introduction
  2. This works just when the files are being downloaded. Try to remove all your cached-files and enter your server. If that doesn't works, we'll check that. I don't think it didn't works, but I'll test it soon.
  3. That's quite simple. local screen = {guiGetScreenSize()} local page = "http://mta/local/yourfile.html" function downloadGUI() browser = guiCreateBrowser(0,0,screen[1],screen[2],true,true,false) --display the Browser bg = guiGetBrowser(browser) addEventHandler("onClientBrowserCreated", bg, function() loadBrowserURL(source, page) end) end addEventHandler("onClientRender", root, downloadGUI) function checkTransfer() if isTransferBoxActive() == true then setTimer(checkTransfer,2000,1) -- Check again after 2 seconds else removeEventHandler("onClientRender", root, downloadGUI) end end addEventHandler("onClientResourceStart",resourceRoot,checkTransfer) Also you need to update your download_priority_group field in meta.xml.
  4. Try to remove the <min_mta_version /> field in meta.xml or by just updating your server's version (https://nightly.multitheftauto.com/).
  5. Arată fain, dar parcă e oarecum prea brusc, încearcă să miști camera ceva mai încet, iar panoul să aibă ceva fade-in, ar da mai bine, zic eu. În rest, e super ok. Succes!
  6. Hello, where's the onDgsScrollBarScrollPositionChange event? How it's named now?
  7. edge

    Discord Python

    I've found that, but I'm getting some errors when I'm trying to add the file as a cog to the bot. Any advices?
  8. edge

    Discord Python

    And how this could help me?
  9. edge

    Discord Python

    Is there a way to execute commands with a python based discord bot on a MTA Server? Thanks for any advices.
  10. Nu am încercat vreodată să fac astfel de lucruri, dar presupun că trebuie să folosești un script care să înlocuiască un model. Încearcă să folosești engineReplaceModel, într-un fișier de client, apoi să folosești meta.xml în care introduci următoarele. https://wiki.multitheftauto.com/wiki/EngineReplaceModel (ia-te după exemplele din josul paginii) <meta> <file src="fisier.txd" /> <file src="fisier.dff" /> <script src="client.Lua" type="client" /> </meta> Toate astea le faci în folderul în care ai instalat MTA-ul \server\mods\deathmatch\resources și creezi un folder nou cu numele pe care îl dorești. Apoi te întorci în \server\mods\deathmatch și editezi mtaserver.conf, te duci la sfârșitul documentului unde găsești resursa play și adaugi: <resource src="nume resursa" startup="1" protected="0"/>
  11. edge

    Pursuit

    Folosești funcțiile createVehicle, createPed, warpPedIntoVehicle și setPedControlState. Și cred că și de resursa asta ai nevoie: https://wiki.multitheftauto.com/wiki/Slothman/Slothbot
  12. Nu știm ce gamemode folosești, însă caută funcția spawnPlayer prin scripturile pe care le ai.
  13. Replace this: addEventHandler ("onDgsMouseClick", buttonWindow, buttonWindowFunction) with: addEventHandler ("onDgsMouseClick", buttonWindow, buttonWindowFunction, false)
  14. Hello. I have several problems on my server with this interface. I've updated the resource already with the command (/updatedgs) or re-uploading the downloaded files from GitHub. When I'm clicking a button which has an handler ("onDgsMouseClick"), executes the function twice. Has anyone this problem like me? I'd like to resolve it. exports.DGS:dgsCreateButton(301, 111, 481, 40, "Register", false, login[4], tocolor(255, 255, 255,255), false, false, false, false, false, tocolor(240, 181, 0,255), tocolor(0, 0, 0,255), tocolor(240, 181, 0,255)) Thanks! Regards, @edge
  15. Caută în job-system. Încearcă să fii independent, deoarece nu oferim asistență pentru sisteme furate.
  16. hud/s_overlay_basic.info.lua
  17. edge

    Spawn&Death

    account/c_create_character.lua CTRL+F și caută "default", acolo schimbi coordonatele X, Y, Z și rotația. și ăla când mori, găsești în es-system.
  18. Ne pare rău, dar acest forum este dedicat pentru comunitatea românească de MTA, încearcă să contactezi pe cineva din administrația respectivului server.
  19. Încearcă să adaugi la <group name="Admin"> </group> Următoarea linie: <object name="resource.*"/>
  20. Creează-ți cont pe forum.vr-gaming.ro și încearcă să contactezi un administrator, cel mai probabil nu ți-a fost vizualizată aplicația.
×
×
  • Create New...