-
Posts
1,143 -
Joined
-
Last visited
-
Days Won
42
Everything posted by Patrick
-
Wrong language and section, moved to Portuguese section.
-
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.
-
What is the error in debugscript? But one end and ) is missing at the end. addEventHandler("onClientBrowserCreated", theBrowser, function() loadBrowserURL(source, page) end)
-
Change back camera's target to localPlayer, with setCameraTarget.
-
With performancebrowser, from web. Or you can make your own resource, with getPerformanceStats.
-
Szerver lista kitiltás: lehetséges? Megoldás?
Patrick replied to KrisT's topic in Hungarian / Magyar
Igen, fura. Elméletileg levetettem, ~1 órán belül meg kell jelenjen. Én azért egy szerver restartot csinálnék. -
Szerver lista kitiltás: lehetséges? Megoldás?
Patrick replied to KrisT's topic in Hungarian / Magyar
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!) -
Szerver lista kitiltás: lehetséges? Megoldás?
Patrick replied to KrisT's topic in Hungarian / Magyar
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. -
Szerver lista kitiltás: lehetséges? Megoldás?
Patrick replied to KrisT's topic in Hungarian / Magyar
Okés, megkérdezem hogy feketelistás-e és majd írok. -
Szerver lista kitiltás: lehetséges? Megoldás?
Patrick replied to KrisT's topic in Hungarian / Magyar
@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. -
Szerver lista kitiltás: lehetséges? Megoldás?
Patrick replied to KrisT's topic in Hungarian / Magyar
@KrisTfut a szerver? és 2203 a port, nem 22003? -
Szerver lista kitiltás: lehetséges? Megoldás?
Patrick replied to KrisT's topic in Hungarian / Magyar
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? -
Wrong language, moved to Portuguese section.
- 1 reply
-
- 1
-
-
Moved to Spanish section.
-
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/
-
Hali, nem tudod sajnos, dxDrawImage-t kell használnod.
-
Hi @PSWGM9100! I understand that there would be too much, but please upload 3-4 images of the best parts.
- 1 reply
-
- 1
-
-
- 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)
-
- 2 replies
-
- loginpanel
- gta
-
(and 2 more)
Tagged with:
-
Alguem me ajuda nesse script garagem BGO?
Patrick replied to Tronerboy's topic in Programação em Lua
Wrong language, moved to Portuguese section. -
Moved to Resources. And please provide more information about your scripts here, not in private.
-
Yes, possible with fetchRemote.
-
admin.png is not exists. Make sure about file exists and added to meta.xml.