Search the Community
Showing results for tags 'list'.
-
This is where I keep a list of all the free & open source MTA resources/projects I've created and made available to the community. Join my Discord community where I post updates of all my projects! https://discord.gg/eUK7HcnT2J Click the images to access each project's landing page. All resources are available on community.mtasa.com (unless otherwise specificed). Other releases: IPL Tools: GTA:SA & SAMP .IDE Search Tool: https://github.com/Fernando-A-Rocha/mta-ide-search I hope you find my contributions useful. Suggestions are always welcome as well as criticism. Enjoy!
- 3 replies
-
- 7
-
- free
- open source
-
(and 1 more)
Tagged with:
-
Este es el código que he hecho hasta ahora... AreaGuerra = { 1, 1577.6806640625, 663.0947265625, 180, 120, , 0, 0, 0, 1698.1025390625, 679.1884765625, 14.822175979614 } function tables1 () executeSQLQuery("CREATE TABLE IF NOT EXISTS Gang_truf (ID INTEGER, X REAL, Y REAL, W REAL, H REAL, Gang STRING, R, G, B, sX REAL, sY REAL, sZ REAL)") for i, tables in ipairs(AreaGuerra) do local ID, X, Y, W, H, Gang, R, G, B, sX, sY, sZ = tables[1], tables[2], tables[3], tables[4], tables[5], tables[6], tables[7], tables[8], tables[9], tables[10], tables[11], tables[12] executeSQLQuery("insert into Gang_truf(ID, X, Y, W, H, Gang, R, G, B, sX, sY, sZ) values(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", ID, X, Y, W, H, Gang, R, G, B, sX, sY, sZ) end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), tables1)
- 2 replies
-
- myslq
- mysql_help
-
(and 3 more)
Tagged with:
-
Hello, I had a small question about the possibility to have my server in the top 20. There is a option to pay 12 dollar to promote your server, however, when i want to do it, it sais there is a waiting list and my server is on nr 942. Is this still active or is this function something from the past? Gr. Hazy.
-
Ai Galera da uma força no meu 1 server de MTA ! da uma passadinha la e de aquela moral PCC -ON | CV- ON | EB- ON | CHOQUE- ON Sistema de Voz ''Z'' 198.50.195.141:22173
-
Hola, estoy tratando de crear una 'dxList' en donde automáticamente se agreguen 'ROWS', usualmente usaba Dx combinado con GUI pero me dieron ganas de crear una especie de gridListDx sin usar DGS, por el momento solo he agregado jugadores a un solo row, como logro que se detecte que ya existe un jugador en esa row y se cree otra un poco mas abajo ? Y = 336 function DX() dxDrawRectangle(561, 326, 223, 320, tocolor(0, 0, 0, 180), false) dxDrawRectangle(561, 336, 223, 30, tocolor(42, 42, 42, 180), false) dxDrawRectangle(561, 296, 223, 30, tocolor(42, 42, 42, 180), false) for k, v in ipairs( getElementsByType( "player" ) ) do JUGADOR = getPlayerName( v ) if getPlayerName( v ) == JUGADOR then dxDrawText( JUGADOR, 561, Y, 784, 365, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) else end end end addEventHandler( "onClientRender", root, DX )
-
Hi .. I've made a vending machine mod and I'm trying to make it shows up on marker in XML design, I already took an example of what I need, the bank_system has one what I did is copying the xml server file in that mod and edit it to make it right, well its confusing to me because I'm new at this, I pasted the whole code just in case, The problem is might be in Xmlserver.lua, exactly right here: function bankInit( ) local xml_root = xmlLoadFile( "bar.locations.xml" ) local banks = 0 while( xmlFindChild( xml_root, "bank", banks ) ) do local markerSize local tempID = banks+1 banksInfo[ tempID ] = { } local bank_node = xmlFindChild( xml_root, "bank", banks ) banksInfo[ tempID ].name = xmlNodeGetAttribute( bank_node, "name" ) banksInfo[ tempID ].useBlip = xmlNodeGetAttribute( bank_node, "blip" ) or true local bank_loc = xmlFindChild( bank_node, "location", 0 ) banksInfo[ tempID ].posX = tonumber( xmlNodeGetAttribute( bank_loc, "posX" ) ) banksInfo[ tempID ].posY = tonumber( xmlNodeGetAttribute( bank_loc, "posY" ) ) banksInfo[ tempID ].posZ = tonumber( xmlNodeGetAttribute( bank_loc, "posZ" ) ) banksInfo[ tempID ].interior = tonumber( xmlNodeGetAttribute( bank_loc, "interior" ) ) or 0; markerSize = tonumber( xmlNodeGetAttribute( bank_loc, "markerSize" ) ) or 2 banksInfo[ tempID ].marker = createMarker( banksInfo[ tempID ].posX, banksInfo[ tempID ].posY, banksInfo[ tempID ].posZ-.9, "cylinder", markerSize, 250, 0, 0, 100 ) setElementInterior( banksInfo[ tempID ].marker, banksInfo[ tempID ].interior ); if xmlNodeGetAttribute( bank_loc, "ATM" ) == "true" then local rot = tonumber( xmlNodeGetAttribute( bank_loc, "ATMRot" ) ) or 0.0 local x, y, z = banksInfo[ tempID ].posX, banksInfo[ tempID ].posY, banksInfo[ tempID ].posZ x = x + math.sin( math.rad( rot ) ) * .6 y = y + math.cos( math.rad( rot ) ) * .6 banksInfo[ tempID ].ATM = createObject( 2942, x, y, z-.35, 0, 0, (360-rot) ) setElementInterior( banksInfo[ tempID ].ATM, tonumber( xmlNodeGetAttribute( bank_loc, "interior" ) ) or 0 ) setElementParent( banksInfo[ tempID ].ATM, banksInfo[ tempID ].marker ) end banks = banks + 1 end <banks> <bank name="Western Onion ATM" > <location posX="2630.6667480469" posY="1655.393046875" posZ="11.0234375" ATM="true" interior="0" ATMRot="180.0" markerSize="1" /> </bank> </banks> I did a few small edits to make it work, but I actually can't detect the problem and why this is not working, Any help is appreciated .
-
Hello Ladies Today i wanna suggest to add favorites list into Map Editor Object choose! as its hard to remember all needed objects Ids and be able to add object to that list when its needed or at least use Most used objects list to save time as many times when you find object you like for first time you dont keep its ID when you start other map! so i believe its needed for the mapping community or at least to help make mapping much easyer! Vote +1 if you like this suggestion! and cya
- 6 replies
-
- 4
-
- map editor
- favourits
- (and 4 more)
-
Hi guys! I need help with translation for my small project about Multi Theft Auto and other games. More precisely, i need to check the translation, how it is correct, and what are the errors. http://seegaming.com/ I would be very grateful for the help and suggestions for translation. Thank you
-
- multi theft auto
- monitoring
-
(and 2 more)
Tagged with:
-
Hello community, I have been trying to create a list which is updated every second (based onClientRender event and made of dx) and Includes the names of the online players ingame, this list probably shows random sorting for players, while I want it to sort them by their current money balance. I retrieve the online players list by getElementsByType function.. Anyway, any ideas?