Jump to content

Patrick

Moderators
  • Posts

    1,143
  • Joined

  • Last visited

  • Days Won

    42

Everything posted by Patrick

  1. Wrong language and section, moved to Portuguese section.
  2. Here are some excellent resources to learn the basics of Lua scripting: - https://wiki.multitheftauto.com/wiki/Main_Page - https://wiki.multitheftauto.com/wiki/Scripting_Introduction - https://www.lua.org/manual/5.1/ - https://wiki.multitheftauto.com/wiki/Category:Tutorials - https://forum.multitheftauto.com/topic/34453-manuals - https://forum.multitheftauto.com/topic/64228-the-ultimate-lua-tutorial/ - https://forum.multitheftauto.com/topic/121619-lua-for-absolute-beginners - https://forum.multitheftauto.com/topic/95654-tut-debugging/ - https://forum.multitheftauto.com/topic/114541-tut-events/ - https://forum.multitheftauto.com/topic/117472-tut-scaling-dx/ Unfortunately we are unable to teach you everything or tell you how to implement your ideas, but we are able to answer your questions if you ask questions with enough effort.
  3. What is the error in debugscript? But one end and ) is missing at the end. addEventHandler("onClientBrowserCreated", theBrowser, function() loadBrowserURL(source, page) end)
  4. What is your question?
  5. Change back camera's target to localPlayer, with setCameraTarget.
  6. With performancebrowser, from web. Or you can make your own resource, with getPerformanceStats.
  7. Igen, fura. Elméletileg levetettem, ~1 órán belül meg kell jelenjen. Én azért egy szerver restartot csinálnék.
  8. Most hiába beszélnél bárkivel is, majd ha megint megtörténne, akkor. Egyébként Discordon is tudsz akár, vagy itt Fórumon privát üzenetben CCW-vel például. Discord invite: https://discord.com/invite/mtasa Én Discordot ajánlom, a #help-support szobában leírod angolul, hogy szerinted feketelistára kerültél és szeretnél beszélni egy adminnal aki tud neked segíteni. (és véletlen sem privátban írsz rá a staff tagokra!)
  9. Igen, feketelistára kerültél, mert más reportolt valamiért. Ma fog lejárni, holnap/ma este már meg fog jelenni a szervered.
  10. Okés, megkérdezem hogy feketelistás-e és majd írok.
  11. @KrisT próbáld meg, hogy leállítod, és átnevezed valami random névre (pl: teszt szerver SynHosting), majd elindítod és hagyd úgy egy ideig.
  12. Szia, lehetséges. - IP:PORT alapján, vagy név/névrészlet került feketelistára. Mi a szervered IP:PORT-ja és a pontos neve?
  13. Wrong language, moved to Portuguese section.
  14. Hi. 1) TriggerClientEvent is not a valid function, correct is triggerClientEvent. 2) Player variable is not defined (so it's nil) in LoginPanelShow and LoginPanelDelete. 3) Third argument is missing in triggerClientEvent, check syntax on wiki. -- CLIENT local login = {}; function login_show() login[1] = guiCreateWindow (0, 0, 0.5, 0.4, "Information", true); login[2] = guiCreateTabPanel (0, 0.1, 1, 1, true, login[1]); login[4] = guiCreateTab("Map Information", login[3]); login[5] = guiCreateTab("Help", login[4]); -- adds a label (text) to each tab guiCreateLabel(0.02, 0.04, 0.94, 0.2, "This is information about the current map", true, login[4]); guiCreateLabel(0.02, 0.04, 0.94, 0.92, "This is help text.", true, login[5]); end; addEvent("loginshow", true); -- listen to those events, which source is 'resourceRoot' addEventHandler("loginshow", resourceRoot, login_show); function login_delete() for i,k in ipairs(login) do if login[i] then guiSetVisible(login[i], false); end; end; end; addEvent("logindelete", true); addEventHandler("logindelete", resourceRoot, login_delete); -- SERVER -- addCommandHandler pass the player's element to function at first argument. (only on server side, check addCommandHandler's syntax on wiki) function LoginPanelShow(Player) -- send this trigger to 'Player', and use 'resourceRoot' as source of the event triggerClientEvent(Player, "loginshow", resourceRoot); end function LoginPanelDelete(Player) triggerClientEvent(Player, "logindelete", resourceRoot); end addCommandHandler("test1", LoginPanelShow); addCommandHandler("test2", LoginPanelDelete); And here is some excellent tutorials: - https://forum.multitheftauto.com/topic/64228-the-ultimate-lua-tutorial/ - https://forum.multitheftauto.com/topic/121619-lua-for-absolute-beginners - https://forum.multitheftauto.com/topic/95654-tut-debugging/ - https://forum.multitheftauto.com/topic/114541-tut-events/ - https://forum.multitheftauto.com/topic/117472-tut-scaling-dx/
  15. Hali, nem tudod sajnos, dxDrawImage-t kell használnod.
  16. Hi @PSWGM9100! I understand that there would be too much, but please upload 3-4 images of the best parts.
  17. - You don't use x, y, z so unnecessary. - sourcePlayer is not defined. and you can use hardcoded localPlayer to get client's element. -- CLIENT addEventHandler("onClientRender", root, function() if isPedOnGround(localPlayer) then setElementHealth(localPlayer, 0) end end)
  18. getResponsiveSize is exists, but you have to move it up, here for example:
  19. Moved to Resources. And please provide more information about your scripts here, not in private.
  20. admin.png is not exists. Make sure about file exists and added to meta.xml.
×
×
  • Create New...