Search the Community

Showing results for tags 'help'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
  • Archive
  • Private Bugtracker

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



About Me





Found 622 results

  1. hello I want to make the player search part wndSetPos = { 'wnd', text = ' Map', width = g_MapSide + 20, controls = { {'img', id='map', src='map.png', width=g_MapSide, height=g_MapSide, onclick=fillInPosition, ondoubleclick=setPosClick}, {'txt', id='x', text='', width=60}, {'txt', id='y', text='', width=60}, {'txt', id='z', text='', width=60}, {'btn', id='close', closeswindow=true}, {'txt', id='search', text=''}, }, oncreate = setPosInit, onclose = closePositionWindow } How can i get the search part here function updatePlayerBlips() if not g_PlayerData then return end local wnd = isWindowOpen(wndSpawnMap) and wndSpawnMap or wndSetPos local mapControl = getControl(wnd, 'map') for elem,player in pairs(g_PlayerData) do if not player.gui.mapBlip then player.gui.mapBlip = guiCreateStaticImage(0, 0, 9, 9, elem == g_Me and 'localplayerblip.png' or 'playerblip.png', false, mapControl) player.gui.mapLabelShadow = guiCreateLabel(0, 0, 100, 14,, false, mapControl) local labelWidth = guiLabelGetTextExtent(player.gui.mapLabelShadow) guiSetSize(player.gui.mapLabelShadow, labelWidth, 14, false) guiSetFont(player.gui.mapLabelShadow, 'default-bold-small') guiLabelSetColor(player.gui.mapLabelShadow, 255, 255, 255) player.gui.mapLabel = guiCreateLabel(0, 0, labelWidth, 14,, false, mapControl) guiSetFont(player.gui.mapLabel, 'default-bold-small') guiLabelSetColor(player.gui.mapLabel, 0, 0, 0) end local x, y = getElementPosition(elem) x = math.floor((x + 3000) * g_MapSide / 6000) - 4 y = math.floor((3000 - y) * g_MapSide / 6000) - 4 guiSetPosition(player.gui.mapBlip, x, y, false) guiSetPosition(player.gui.mapLabelShadow, x + 14, y - 4, false) guiSetPosition(player.gui.mapLabel, x + 13, y - 5, false) end end end please help
  2. hello, I want to create a search section in the map section of the freeroam panel I mean, when you enter the name, you see it in the search area, on the map
  3. Hi, can you help me? I want this animation to start and stop at 5 seconds and at 10 seconds to return the animation function animacion(source) setPedAnimation( source, "ped", "gas_cwr") setTimer(pararanim,5000,1) end addCommandHandler ("toxic", animacion) function pararanim(tp) setPedAnimation(tp,false) setTimer(animacion,3000,1) end addCommandHandler ("parar", pararanim) setPedAnimation( source, "GANGS", "prtial_gngtlkB", 1, false, true, true, true, false ) setTimer(function() setPedAnimation(source, false) end, 1000, 1) Try doing it with timers but not for animation
  4. I want to remove where it is in red Se tiver algum brasileiro responda em portugues obrigado.
  5. Fala galera blz?? Não sei se aqui é a área correta para isso, caso não seja movam pf. Sou novo no fórum e tals. Bom vamos lá.. Queria saber como desativa ou se tem q ativar algo no resource para sumir os "marcadores" do próprio GTA, por exemplo: Pra entrar na casa do CJ, Ammu-nation, Lojas.. Aquelas setas amarelas que entra nos lugares.. Vlw !
  6. UDC


    <?php require "mta_sdk.php"; $mtaServer = new mta( '', 22006); $resource = $mtaServer->getResource ( 'UDCupdates', $mtaServer ); $returns[] = $resource->call('addUpdate', $_POST['name'], $_POST['dev']); ?> ok I use this in the PHP file, don't mind the HTML file since it works fine, now I'll show you my MTA script local sql = executeSQLQuery function createTables () sql("CREATE TABLE IF NOT EXISTS updates (update TEXT, developer TEXT, date TIMESTAMP DEFAULT CURRENT_TIMESTAMP)") end addEventHandler("onClientGUIClick", root, createTables) function addUpdate (text, dev) if (text) then if (dev) then sql("INSERT INTO updates (update, developer) VALUES (?,?)", text, dev) outputChatBox("[Updates] "..text.." ("")",root,255,130,4) return true else return false end else return false end end resource is started and export is added, but the problem is call function in PHP, help please.
  7. Hello, I want to ask you for help. I'm trying to create a gang system but I do not want to use mta's default createTeam. I wanted to use an elementData, but I do not know how to do it. Tell me how to do in elementData. I have one with the default createTeam that is working, I wanted to change this by elementData. function createGang(name, tag, gr, gg, gb) if getTeamFromName(name) then triggerClientEvent(source,"servers",source) outputChatBox("#666666[#B30A0AGang#666666] #FF0000Uma gang com esse nome já existe", source, 255, 255, 255, true) return else if name == "" or name == " " or tag == "" or tag == " " then triggerClientEvent(source,"servers",source) outputChatBox("#666666[#B30A0AGang#666666] #FF0000Você deve completar todos os campos pedidos para criar uma gang.", source, 255, 255, 255, true) else gangCreate = createTeam(name) setPlayerTeam(source, getTeamFromName(name)) setTeamColor(gangCreate, gr, gg, gb) gang = getPlayerTeam(source) setElementData(source, "GangPTT", lider) if not getElementData(gang, "GangPlayer1") then setElementData(gang, "GangPlayer1", getPlayerName(source)) end local r, g, b = getTeamColor (gang) local hex = string.format("#%.2X%.2X%.2X", r, g, b) triggerClientEvent(source,"servers",source) outputChatBox("#666666[#B30A0AGang#666666] #FFFFFFVocê criou a gang #666666[ "..hex..getTeamName(gang).." #666666]#FFFFFF e agora é lider dela.", source, 255, 255, 255, true) end end end addEvent("createGang", true) addEventHandler("createGang", getRootElement(), createGang)
  8. Underload

    need help

    is it possible to find mta 1.3 ? because i need it for a old script for a local roleplay server
  9. Hi, I'm creating a SQL-based currency system script, I put a setTime to generate coins at a certain time for certain players, however, I need to destroy this setTime when the player clears, I already did something to do that, However, when the player clears and setTime is destroyed, everyone's time is destroyed, not just the user who logged out. I need that when certain user is logged off, only his setTime is canceled ... does anyone have any idea what I can do? Starting time: function startFunction(_,thePlayer) tempo = setTimer ( function() ...code... end, 2000, 0 ) end Destroy time: function playerOff(thePlayer) ...code... if isTimer ( tempo ) then killTimer ( tempo ) end end addEventHandler("onPlayerQuit", getRootElement(), playerOff) addEventHandler("onPlayerLogout", getRootElement(), playerOff)
  10. How can ı see my nametag and hidden it with ''N'(bind)' ? NAMETAG.LUA Please, do and share. my = 1 -->ı can see my nametag my = nil --> ı can not see
  11. I'm using guieditor 3.1.3. When I try to do Main Menu > Output after loading GUI code, the Output window doesn't open.
  12. while true do local row = mysql_fetch_assoc(result) local xx = row["x"] local var_1 = 1 local var_2 = 1 outputChatBox(row["x"]) outputChatBox(turfInformation[1][X]) outputChatBox(row["y"]) outputChatBox(turfInformation[1][Y]) outputChatBox(maxZones) if(row["x"] == turfInformation[1][X]) then outputChatBox("Can't create a turf here") end end So, what do we have here? Basicly I want "Can't create a turf here" be sent as a message to the player if the "X" position in my MySQL table equals to the "X" position of turfInformation. This is what prints out in game at the moment: row["x"] = 2634.71 turfInformation[1][X] = 2634.71 row["y"] = -1649.41 turfInformation[1][Y] = -1649.41 So, what's the issue? "Can't create a turf here" never get's printed out. I've tried to take the value "2634.71" and make an if statement that looks like this: if(turfInformation[1][x] == 2634.71) And that works, but that's not what I want, I want to use row["x"] instead. Thank you! EDIT: Here's the query: local result = mysql_query(connection,"SELECT * FROM gang_territories")
  13. Hello, I recently bought a macbook and I really want to play MTA:SA. I have trouble finding a solution to play MTA on a macbook. I found a couple old posts which are outdated and therefore I didn't get it to work properly. I bought GTA:SA on steam, is that is for any help. Does anyone have a solution for this?:) I hope this is the right place to post this topic. Best Regards
  14. ابي مساعده شباب انا مثل حطيت كود الوحة مع كل شي مثل local key = "F9" GUIEditor = { gridlist = {}, window = {} } GUIEditor.window[1] = guiCreateWindow(436, 96, 358, 465, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist[1] = guiCreateGridList(9, 31, 308, 417, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.9) guiSetVisible (GUIEditor.window[1], false) bindKey( key, "down",function() guiSetVisible (GUIEditor.window[1], not guiGetVisible (GUIEditor.window[1]) ) showCursor ( guiGetVisible (GUIEditor.window[1]) ) end) الحين اانا ابي احط changeGridListItemToPlayersName = function ( GridList, Column ) if GridList and Column then if getElementType ( GridList ) == "gui-gridlist" then if guiGridListClear ( GridList ) then for i, v in next, getElementsByType ( "player" ) do local Row = guiGridListAddRow ( GridList ) guiGridListSetItemText ( GridList, Row, Column, getPlayerName ( v ), false, false ); -- Set New Values end; end; end; end; end; ابي احط ذا الكود حق العبين وين احطه في الأخير ما يجي مدري ليه و تحت الكود مباشره ما يجي ابي مساعده
  15. Is there a file or .cfg file i need to copy? and is so, where do i find it?
  16. It is possible to attach GUI with dx element?
  17. What i am trying to make is a character creator system where the stats as age, height and weight must be selected using a scrollbar.The problem is that i can't think of an algorithm to do this Example : at the height scrollbar the player can choose between 150 and 250 cm. I need an algorithm to work with the guiScrollBarGetScrollPositon and transform it in a value between 150 and 250, how can i do this? ( a general formula would help alot )
  18. Hello guy, i have this problem in my server, In a random moment, regardless of the number of players appears and the machine freezes with the MTA using 16GB of RAM (dedicated 16GB). What can it be? [Network] InResultQueue > 200000 msgs. This is due to server overload or script freeze Temporarily suspending incoming sync packets
  19. xRGamingx


    Hi friend, anyone knows of any script that makes the truck loads heavier ?
  20. plz help me i dont know how to add vip to acl take a screen shot and show me what to write and where
  21. Hello there, i'm a windows xp user, i've a wooden PC and to make mta/gta run faster i've used some methods, one of these methods is replacing a tree that called 'tree_hipoly19.dff' with the original one, the modifed file will be hidden in-game, i've been using this method for over a year now and it was working normal, but after the last mta sa update, that modified .dff file is no longer working, but instead the original .dff file is working, the story may be confusing a bit, but this is pretty weird, and not for 'tree_hipoly19.dff' only, also for other objects CONCLUSION: -replaced a .dff file and it was working normal -latest mta update -the modified .dff file is not working anymore i don't know if the latest update doesn't support the modified .dff files anymore, please help me out i really need to fix this. things that might help you : gta3.img < this is the where are the .dff files at IMG tool, TXD WorkShop < these are the softwares i used to replace the .dff file Thanks for reading.
  22. Hello, i'm doing this post today because i need help with this. I've tried everything but i have not succeeded, i want to know how i can center this image under my feets, i mean, under the player, ¡just there! without losing that size ((( x, y, z_ground, 1, 2.5))) in the picture.. This is the script script, i hope u can help me with this pleaaaaaase local imagen = dxCreateTexture( "test.png" ) local activado = { } local players = getElementsByType( 'player' ) function dxDrawImage3D(x,y,z,w,h,m,c,r,...) local lx, ly, lz = x+w, y+h, (z+tonumber(r or 0)) or z return dxDrawMaterialLine3D(x,y,z, lx, ly, lz, m, h, c or white, ...) end addEventHandler( "onClientRender", root, function( ) for i=1, #players do local p = players[i] if activado[ p ] == true then local x, y, z = getElementPosition( p ) local z_ground = getGroundPosition( x, y, z ) dxDrawImage3D( x, y, z_ground, 1, 2.5, imagen, tocolor( 0, 255, 230, 255 ), 0, x, y, z ) end end end ) function removeEffect( player ) if activado[ player ] == true then activado[ player ] = nil end end addEvent( "vip:farvel", true ) addEventHandler( "vip:farvel", getRootElement( ), function( player ) if not activado[ player ] or activado[ player ] == nil then activado[ player ] = true setTimer( removeEffect, 5000, 1, player ) end end ) Thanks, also, i hope you can read this and help me.
  23. Well, this is recent, it was working fine, but now it stopped working, any solution? (arguments are right) no error in debug !
  24. I have this script: dxDrawRectangle(screenW * 0.7549, screenH * 0.6933 - 1 - (33*k), screenW * 0.2347, screenH * 0.0211, tocolor(0, 0, 0, 145), false) dxDrawText(v.text, screenW * 0.7535, screenH * 0.6933 - 1 - (66*k), screenW * 0.9896, screenH * 0.7144, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, true, false) and different resolutions the distance grow, or lessen. Picture: How to fix this problem? I want, that all resulotions distance the same. Thanks the help! And sorry for my very bad english!