Leaderboard
Popular Content
Showing content with the highest reputation on 04/04/20 in Posts
-
2 points
-
About Us: Welcome to San Andreas United Gaming (SAUG) Server Information: Server Owner: Tando/FireWall/Nox Server Forum : saugrpg.com Server Discord : https://discord.gg/fwSTUhu Server Verison : 4.0 FB Group : https://www.facebook.com/groups/141559259848558/ STAUTS : OPENED Server Record: Server Record : +35 Server Record gift : VIP / Money / events Server System: HUD: UCP: Inventory: HelpPanel: Phone: SkinShop: Ammunation: Jobs: Spawners: Lottery: Login: Bus: SAUG Updates: Regards SAUG Staff Team1 point
-
Project trains This resource creates multiple trains driving around the map and make them drive automatic. It makes San Andreas a little bit more alive. You can set-up how much trains are created, how fast they go, minimal/maximal amount of trainscarts they are pulling and some more. Versions Version 1.0.0 Serverside time synced trains for multiplayer Admin panel settings Version 2.0.0 Uncompiled Better optimised than previous versions. CPU (3,5-3,9 GHz) 4 trains +/- 1.22% usage 40 trains +/- 7.05% usage Overkill Cleaned up a lot of the old code (I wrote this in 2015.. , never the less it is still ugly :C) Added some custom train-cart designs. Fixed all known bugs. Trains won't stop, even in this version. But you can try to make that yourself... Improved bandwidth You can design your own traincarts in the map editor, see documentation after clicking on the lazy download link Bugs: GTA spawn bug: Incorrect train spawn, see documentation. Repository Lazy <you> transport Armed to the teeth Admin panel settings Building your own traincarts with the map editor Download here - project trains 2.0.01 point
-
Hello, My serial is : 6E743AB82E19B5A77D5D962ED39B3CE4 Reason why i get ban is BOT DEV 20 days, i dont know why i have this ban... if i do something wrong please tell me Im so much love MTA this game was awansome! i do everything1 point
-
Thank you for posting about this bug. I think you can fix this by, instead of setting the indicator intensity to 0, set the indicator light intensity to a 0.2 or something close to that. Then you also have to add fog effect as well as ambient lighting of GTA:SA so that the texture looks as if it were rendered by GTA:SA. I will look into it tomorrow.1 point
-
Teste : local GUIEditor = { button = {}, gridlist = {}, } function BuySkin() --/> Criar Marker & Ped bincoB = createMarker(217.5, -98, 1006, "arrow", 1.5, 255, 0, 0) setElementInterior(bincoB, 15) vendedora = createPed(12, 209, -99, 1005, 180) setElementInterior(vendedora, 15) addEventHandler("onClientMarkerHit", bincoB, ShowSkins) --/> Movido --/> Painel GUI Painel = guiCreateWindow(838, 320, 375, 331, "PAGUE MENOS", false) guiWindowSetSizable(Painel, false) guiSetAlpha(Painel, 0.92) guiSetProperty(Painel, "CaptionColour", "FFFEEB16") guiSetVisible(Painel, false) sair = guiCreateButton(269, 288, 92, 33, "Sair", false, Painel) guiSetProperty(sair, "NormalTextColour", "FF39EB3D") GUIEditor.button[4] = guiCreateButton(9, 288, 97, 33, "Comprar", false, Painel) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FF39EB3D") addEventHandler("onClientGUIClick", sair, exibir) --/> Movido GUIEditor.gridlist[3] = guiCreateGridList(9, 27, 352, 257, false, Painel) guiGridListAddColumn(GUIEditor.gridlist[3], "Skins", 0.3) guiGridListAddColumn(GUIEditor.gridlist[3], "ID", 0.3) guiGridListAddColumn(GUIEditor.gridlist[3], "Preço", 0.3) for i = 1, 2 do guiGridListAddRow(GUIEditor.gridlist[3]) end guiGridListSetItemText(GUIEditor.gridlist[3], 0, 1, "skin1", false, false) guiGridListSetItemText(GUIEditor.gridlist[3], 0, 2, "-", false, false) guiGridListSetItemText(GUIEditor.gridlist[3], 0, 3, "-", false, false) guiGridListSetItemText(GUIEditor.gridlist[3], 1, 1, "-", false, false) guiGridListSetItemText(GUIEditor.gridlist[3], 1, 2, "-", false, false) guiGridListSetItemText(GUIEditor.gridlist[3], 1, 3, "-", false, false) end addEventHandler("onClientResourceStart", resourceRoot, BuySkin) function ShowSkins ( player, Dimensao ) if isElement(player) and getElementType(player) == "player" then exibir( ) end end function exibir ( ) guiSetVisible(Painel, not guiGetVisible(Painel)) showCursor(guiGetVisible(Painel)) end1 point
-
Hello iwalidza, I was hesistant to respond because I have no experience in the MTA implementation of web services but I think you want to read this wiki article: https://wiki.multitheftauto.com/wiki/Resource_Web_Access It contains helpful examples on how to create a Lua-based HTML interface.1 point
-
Hello PeeQ, do you know about the difference between server-side and client-side scripts? It looks like your first script is a server-side script because you are using the server-side "onMarkerHit" event. Is it intentional that you want to create server-side peds and markers? I am going to assume that it is, so let's fix your script! What iwalidza tried to do is put both code onto the client-side. But that user forgot to use the client-side onClientMarkerHit event instead of the server-side onMarkerHit. Please test your code next time, iwalidza. In order to synchronize data between server and client you have to use MTA event functions. We want to create a remote client-side event called "onClientShowGUI" and put our GUI code into an event handler of that event. Then inside of the server-side onMarkerHit event... addEventHandler("onMarkerHit", binco1b, function(hitElement) if (getElementType(hitElement) == "player") then triggerClientEvent(hitElement, "onClientShowGUI", root); end end ); I recommend you to read up on MTA events to catch up on good MTA Lua scripting1 point
-
Mostre o código aqui. Sobre o erro, 'lgnResult' deveria ser uma tabela ou string, mas está retornando false por algum motivo. @MouraTv1 point
-
1 point
-
1 point
-
<meta> <script src="client.Lua" type="client" /> <script src="sever.Lua" type="server" /> </meta> irmão tenta por assim1 point
-
Mande o meta.xml então. Mande também o script inteiro que está dando erro. Pois o erro que vc apontou não está nessa parte do código.1 point
-
No server-side, troque sua função tagPM por essa: function tagPM (thePlayer) local login = getAccountName (getPlayerAccount (thePlayer)) if isObjectInACLGroup ("user."..login, aclGetGroup ("Dono PMESP")) then triggerClientEvent (thePlayer, "PMESPtag", thePlayer) else outputChatBox ("Acesso negado.", thePlayer, 255, 0, 0) end end addCommandHandler ("tagpm", tagPM) E apague as 4 primeiras linhas do server-side, pois não estão sendo usadas. No client-side, troque a função Abrir, por essa: function abrir () if painelPMESP then removeEventHandler ("onClientRender", root, PMESPtagg) guiSetVisible (gridlist, false) showCursor (false) else addEventHandler ("onClientRender", root, PMESPtagg) showCursor (true) guiSetVisible(gridlist, true) end painelPMESP = not painelPMESP end addEvent ("PMESPtag", true) addEventHandler ("PMESPtag", root, abrir) E na função PMESPtag, adicione mais um g no nome dela pra ficar PMESPtagg pois o nome da função está em conflito com o evento "PMESPtag".1 point
-
1 point
-
n tinha visto é alguma expressão de codigo externo, o seu console também n ta achando1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
local functions = { outputText = function ( ... ) outputChatBox ( ... ) end, } functions.outputText ( "Hello", root, 255, 255, 255, true )1 point
-
This happens because your internet may be overused if you're downloading or interacting with the internet by any manner just stop or if you're sharing your internet with someone else just ask them to pause their activity for a moment.1 point
-
I will somewhere this week publish a new version of this resource. Because I wanted to finish it at-least. Uncompiled Better optimised than previous versions. CPU (3,5-3,9 GHz) 4 trains +/- 1.22% usage 40 trains +/- 7.05% usage Overkill Cleaned up a lot of the old code (I wrote this in 2015.. , never the less it is still ugly :C) Added some custom train-cart designs. Fixed all known bugs. Trains won't stop, even in this version. But you can try to make that yourself... If you want to test it out, before I put it on the community, free feel to send me a message. But in return I did like to receive some feedback.1 point
-
Please translate your thread so that you can receive the appropriate help. If not please make use of the Portuguese language board: https://forum.multitheftauto.com/forum/97-portuguese-português/1 point
-
I made a video to show how its working, Im not sure if is the same effect you trying to do the part the changes the position while resizing is something like: addEventHandler("onClientGUIScroll", root, function(element) setObjectScale(roda,guiScrollBarGetScrollPosition(element)/10) attachElements(roda,getPedOccupiedVehicle(localPlayer),rodax,roday,rodaz+getElementDistanceFromCentreOfMassToBaseOfModel(roda)*getObjectScale(roda)-getElementDistanceFromCentreOfMassToBaseOfModel(roda)) end) with roda being the wheel object and rodax,roday,rodaz the attachelements offsets, to make the wheel object rotate with the real wheel I made a onclienprerender event getting the car z rotation and the wheel rotations: function rodarot() local vrotx,vroty,vrotz=getElementRotation(getPedOccupiedVehicle(localPlayer)) local rodarx,rodary,rodarz=getVehicleComponentRotation(getPedOccupiedVehicle(localPlayer),"wheel_rf_dummy") setElementRotation(roda,rodarx,rodary,rodarz+vrotz) end this code is not optimized nor checking for warnings/errors, just an example for use in a proper code1 point
-
I tested with: attachElements(wheel,getPedOccupiedVehicle(localPlayer),wheelx,wheely,whellz+getElementDistanceFromCentreOfMassToBaseOfModel(whell)*getObjectScale(whell)-getElementDistanceFromCentreOfMassToBaseOfModel(whell)) which means: position z of attached wheel + half the radius of the wheel multiplied by wheel scale + half the radius of the wheel the object wheel stayed in ground while resizing with the scrollbar, I will do some more testing regarding the rotations and soon I send you the example code1 point
-
Illegal roleplay rules are now live so if you're interested in illegal roleplay it is strongly advised to read the thread on our forums.1 point
-
1 point
-
Server's economy concept thread is now live on our forums!1 point
-
شرح بعض الوضائف التي تم اضافتها حديثا في لعبة MULTI THEFT AUTO: SAN os.clock() الوقت المستخدم من قبل اللعبة (CPU) تقوم هذه الوظيفة بإعادة رقم من وحدة المعالجة المركزية على سبيل المثال local x = os.clock() ---- كمتغير لحفض وقت المستخدم من الوحة المركزية (x) وضع print(string.format("elapsed time: %.2f\n",x/360 )) --- (x) طباعة في (الدي بق) قيمة المتغير --[[OUT PUT elapsed time: 23.46 ]] os.date(format [, time]]) تقوم هذه الوظيفة بإرجاع سلسة او جدول يحتوي على التاريخ و الوقت ، منسق و وفقا لتنسيق السلسلة المحددة _______________ | | | TABLE TIME | |_______________| | KEY | VALUE | |_______|______ | | hour | 23 | | min | 42 | | wday | 07 | | day | 07 | | month | 03 | | year | 2020 | | sec | 57 | | yday | 67 | |_______________| ex 1 : for k, v in pairs(os.date("!*t")) do outputConsole(k .." : ".. v) end -- OR table.foreach(os.date("*t"),print) --[[ OUTPUT hour : 22 min : 53 wday : 7 day : 7 month : 3 year : 2020 sec : 54 yday : 67 ex 2 : print("(1) ==>",os.date()) --- (2) print("(2) ==>",os.date("%d.%m.%Y")) --- (1) --[[OUT PUT : (1) ==> Sat Mar 7 23:59:53 2020 (2) ==> 07.03.2020 os.difftime(t2, t1) (t1) و (t2) تقوم هذه الوظيفة بحساب الفرق بالثواني بين ex : t1 = os.time() --- make time system with seconds -- wait a little while then type.... os.difftime(os.time(), t1) --- OUTPUT : 31 os.difftime(os.time(), t1) --- OUTPUT : 38 والسلام عليكم ورحمة الله تعالى وبركته ان شاء الله يكون واضح و مفهوم بالتوفيق (:PiS1 point
-
1 point
-
Open freecam_server.lua inside freecam resource. At the bottom, add the following code: function enableFreecam (player) if (not isPlayerFreecamEnabled (player)) then local x, y, z = getElementPosition (player) setPlayerFreecamEnabled (player, x, y, z) else setPlayerFreecamDisabled (player) end end addCommandHandler ('freecam', enableFreecam) save the file and update archive if it's zipped.1 point
