Jump to content

Search the Community

Showing results for tags 'help'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • 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
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

  1. how to remove the flickering of a thunderstorm during a storm/rain? как убрать мерцания грозы во время шторма/дождя? I would like to remove this flickering due to the fact that the road is corny not visible and is constantly blinding хотел бы убрать это мерцание из за того что банально не видно дорогу и слепит постояно
  2. Sziasztok! Régebb óta foglalkozom modellezéssel. Elég nagy dologba vágtam fejszét. Kifejezetten most environmentekkel kezdtem el foglalkozni nagyobb körben. Mikor loadolom (replacelem) az objektet akkor teljesen jó, rátölti a textúrát... Amennyiben ha már a collisiont is be akarom tölteni, egyből kifagy a játék... (Nem a scriptel van a gond, gondoltam leírom még mielőtt felveti bárki is. A segítségért nagyon hálás lennék.) Előfordulhat, hogy túl nagy a collision fájl mérete és emiatt? Crash code: Version = 1.5.9-release-21261.0.000 Time = Mon Aug 22 01:15:36 2022 Module = A:\GTA SA\gta_sa.exe Code = 0xC0000005 Offset = 0x0013E01E EAX=3988B980 EBX=00000000 ECX=000000FF EDX=395CEED0 ESI=00ABCC14 EDI=00ABCC14 EBP=00000010 ESP=0177FD38 EIP=FFFFFFFF FLG=00210212 CS=0023 DS=002B SS=002B ES=002B FS=0053 GS=002B Erről a modellről van szó...
  3. HI CAN YOU HELP ME OUT WITH INCREASE A CAR SPEED AND HANDLING
  4. Тонировка отображается но не ставиться после применения настроек. Помогите пожалуйста! Файлы все снизу. Скачать файл Видео
  5. Hello, I am willing to add multiple mods ( .txd .dff ) for example on a ((BMX SA Model : 481)) and I was wondering, how I could accomplish that, because I know that it is possible, another Latvian server had it, but it is currently inactive, and I am trying to make a project of my own, for me and my friends, so we can have fun on our own, so if anyone could help me get that done, I would be highly grateful.. I heard something about shaders, maybe that’s what they had done, if so, could someone explain, walk me through it, on how I could do that? My discord, just in case.. dqlepy#9090 Thanks in advance, for any useful help..
  6. Hello, Multi Theft Auto community, I'm using a Spanish to English translator, I need help. How can I remove the interiors that I don't want to be available on my server? The yellow triangles that make you enter a store or barbershop for example. I await your response, thank you.
  7. Am făcut un sv pe local Host și nu merge sa ma loghez-Stau în login dar nu merge-in consola scrie Error login panel.Ajutați ma
  8. ARRUMEI UM LEVEL PARA COLOCAR MEU SERVIDOR MAIS FICO BUGADO EM ALGUMAS RELUÇAO O TEXTO FICAR MAIS NA RELUÇAO 800X600 NA 1360X768 FICA CERTINHO JA NA 1920X1080 O TEXO ESCRITO LEVEL: FICA MUITO PEQUENO --]] local sx,sy = guiGetScreenSize() local px,py = 1366,768 local x,y = (sx/px),(sy/py) function drawLevel () local levelProgress = (getElementData(localPlayer,"minutes") or 0) dxDrawRectangle(x*1195, y*141, x*202/110*levelProgress, y*13, tocolor(207, 207, 207, 125), false) dxDrawText(" "..(getElementData(localPlayer,"Level") or 0), x*1561, y*4, x*1000, y*292, tocolor(255, 255, 255, 255), x*0.58, "bankgothic","center", "center", false, false, false, false, false) end addEventHandler("onClientRender",getRootElement(),drawLevel) local screenW, screenH = guiGetScreenSize() addEventHandler("onClientRender", root, function() dxDrawText("LEVEL:", screenW * 0.8426, screenH * 0.1816, screenW * 0.9568, screenH * 0.2018, tocolor(255, 255, 255, 255), 0.51, "bankgothic", "center", "center", false, false, false, false, false) end )
  9. Eu tenho um pequeno problema, na hora de entrar no veículo depois de pegar o personagem, o veículo começa a voar, eu preciso de ajuda e se eu sou novo nesse Scripting. Preciso de sua ajuda. function AgarrarSoltar(source, target) local ID = getElementData(target , config['serverInfo']['id']) or 0 local rotpX = 90 local rotpY = 0 local rotpZ = getElementRotation(target) local rotvX,rotvY,rotvZ = getElementRotation(source) local rotX = rotpX - rotvX local rotY = rotpY - rotvY local rotZ = rotpZ - rotvZ local Agarrado = getElementData(target, "SS:Agarrado") or false if Agarrado == false then attachElementToElement(target, source, 0, 0.4 , 0.3 , rotX, rotY, rotZ) setElementData(target,"SS:Agarrado",true) setPedAnimation(source, "CARRY", "crry_prtial", 0, false, false, false, false) setPedAnimation(target, "ped", "CAR_dead_LHS", false, false) exports["CzInventory"]:sendNotification(source, "info", "Agarraste "..removeHex(getPlayerName(target)).." ["..(getElementData(target, config['serverInfo']['id']) or 0).."].") else detachElementFromElement(target, source, 0, 0.4 , 0.3 , rotX, rotY, rotZ) setElementData(target,"SS:Agarrado",false) setPedAnimation(target) exports["CzInventory"]:sendNotification(source, "info", "Soltaste"..removeHex(getPlayerName(target)).." ["..(getElementData(target, config['serverInfo']['id']) or 0).."].") end end addEvent ( "SS:Agarrar", true ) addEventHandler ( "SS:Agarrar", root, AgarrarSoltar)
  10. fikasS

    mysql error

    Hi, I have a little problem! dbPoll failed; The "character names" field has no default value First of all, what is its default value? because this is an outdated mysql that was perfected 5 years ago. dbquery, db_free db_pool functions. Thank you in advance for your help. CODE: local hostname = "127.0.0.1" local username = "...username" local password = ".....pass" local database = "databasename" local results = {} addEventHandler("onResourceStart", resourceRoot, function() dbHandler = dbConnect("mysql","dbname=".. database ..";host="..hostname, username, password, "autoreconnect=1") if not dbHandler then outputDebugString("#1 failed connect") cancelEvent(true) else outputDebugString("#2 succesful connect") end end) function query_free(q,poll) local this = #results + 1 results[this] = dbQuery(dbHandler, q) if poll then local result, num_affected_rows, last_insert_id = dbPoll(results[this], -1) if result == nil then dbFree(results[this]) return this, nil elseif result == false then dbFree(results[this]) return this, nil else dbFree(results[this]) return this, tonumber(last_insert_id) end end dbFree(results[this]) return this end function getConnection() return dbHandler end
  11. I have a script that I am trying to code. But when the text is written somewhere in the box, I want it to go down. I don't want the text written in the white area to overflow. Screenshot: https://ibb.co/sWq5PdQ
  12. Brohx

    Mods

    ¿Cómo instalo mods en mi servidor?
  13. Hi, I set up an mta server on a virtual server, but all players ping over 100. I pinged my virtual server using the speed test site and the result was 11. And I also tested my own ping and got ping 8 What should I do, the firewall and antivirus server are also turned on. Virtual server information 16 GB RAM 4 CORE
  14. Olá, meu objetivo com este script é desativar algumas "binds" presentes no jogo quando o player entrar no server, e depois, reativa-las quando o player sair.. . Entre tanto, não consegui faze-lo.. Desde já obrigado pela a ajuda! function DesativarComandosJogo (key, keyState, command) unbindKey (localPlayer, "v", down, change_camera) unbindKey (localPlayer, "e", down, next_weapon) unbindKey (localPlayer, "num_enter", down, next_weapon) unbindKey (localPlayer, "q", down, previous_weapon) unbindKey (localPlayer, "num_dec", down, previous_weapon) unbindKey (localPlayer, "e", down, vehicle_look_left ) unbindKey (localPlayer, "q", down, vehicle_look_right ) unbindKey (localPlayer, "mouse3", down, vehicle_look_behind ) end addEventHandler("onClientPlayerJoin", getRootElement(), DesativarComandosJogo) function ReativarComandosJogo (key, keyState, command) bindKey (localPlayer, "v", down, change_camera) bindKey (localPlayer, "e", down, next_weapon) bindKey (localPlayer, "num_enter", down, next_weapon) bindKey (localPlayer, "q", down, previous_weapon) bindKey (localPlayer, "num_dec", down, previous_weapon) bindKey (localPlayer, "e", down, vehicle_look_left ) bindKey (localPlayer, "q", down, vehicle_look_right ) bindKey (localPlayer, "mouse3", down, vehicle_look_behind ) end addEventHandler("onClientPlayerExit", getRootElement(), ReativarComandosJogo)
  15. Olá, meu objetivo com este script é simplesmente desligar todos os veículos que estão no server quando o script for iniciado, não somente o do player local, mas de todos no server.. Entre tanto, não consegui faze-lo.. Desde já obrigado pela a ajuda! function resetarVeiculos () for i,v in pairs(getElementsByType("vehicle")) do if i and getVehicleEngineState (i) == true then setVehicleEngineState (i, false ) setVehicleOverrideLights (i, 1) else return false end end end addEventHandler("onResourceStart", resourceRoot, resetarVeiculos)
  16. Hello guys. I want to make a script for my mta server. The Player have hunger and thirst, I want to make a script what kills the player if the players hunger or thirst went down 0. I show you my script. setTimer( function() local hunger = getElementData(localPlayer, "Player:Hunger") if (hunger > 0) then setElementData(localPlayer, "Player:Hunger", hunger - 2) end local thirst = getElementData(localPlayer, "Player:Thirst") if (thirst > 0) then setElementData(localPlayer, "Player:Thirst", thirst - 3) end end , 150000,0) function ehenhalt ( localPlayer ) if (hunger < 0) then killPed ( localPlayer) end addCommandHandler ( "kill", ehenhalt ) Please help me, god bless yall.
  17. Ayuda cuando intento inciar un mapeo me aparece (start cancelled by script) ayuda porfavor
  18. function onPlayerJoin () setPedWalkingStyle( thePlayer, 121) end addEventHandler('onPlayerJoin', root, onPlayerJoin) Ajudem me
  19. Hi , I wanted to create a scroll for rectangles that i have inserted into a table. I tried to avoid rendertargets Does anyone have idea of how i can make that scroll so it acctually works. Or maybe someone correct me because i might have made the whole function just wrong local przecho = { {1000.79, 1069.15, 11.07-1,"CODELV",981.18, 1070.89, 10.81-0.98} } local oknoprzecho = false local data = nil local gridlisto = {} for _,v in ipairs(przecho) do local markerekPrzecho = createMarker(v[1],v[2],v[3],"cylinder",1.0,255,255,255,255) local markerOdbior = createMarker(v[5],v[6],v[7],"cylinder",2.0,255,255,255,255) addEventHandler("onClientMarkerHit",markerekPrzecho,function(plr) if plr == localPlayer then oknoprzecho = true showCursor(true) data = getElementData(localPlayer,"veh:list") showVehicles(748, 375, 416, 37) end end) addEventHandler("onClientMarkerHit",markerOdbior,function() end) end function showVehicles(x,y,z,h) local offset = 0 for k,v in pairs(gridlisto) do gridlisto[k]=nil end for k,v in ipairs(data) do table.insert(gridlisto,{x=x,y=y+offset,z=z,h=h,model=v.model}) offset = offset + 50 end print(#gridlisto) end --dxDrawRectangle(732, 321, 450, 294, tocolor(255, 255, 255, 255), true) addEventHandler("onClientRender", root,function() if oknoprzecho then dxDrawRectangle(561, 207, 798, 666, tocolor(32, 32, 32, 255), false) dxDrawRectangle(1290, 236, 41, 34, tocolor(255, 0, 0, 255), false) for i,v in ipairs(gridlisto) do dxDrawRectangle(v.x,v.y,v.z,v.h,tocolor(255,255,255,255)) dxDrawText(v.model, v.x, v.y, v.z, v.h, tocolor(0, 0, 0, 255), 1.00, "default", "left", "top", false, false, false, false, false) end end end) addEventHandler("onClientClick",root,function(btn,state) if btn == "left" and state == "down" then if oknoprzecho then if isMouseIn(1290, 236, 41, 34) then oknoprzecho = false showCursor(false) end for k,v in ipairs(gridlisto) do if isMouseIn(v.x, v.y, v.z, v.h) then outputChatBox(v.model) end end end end end) function isMouseIn( x, y, width, height ) if ( not isCursorShowing( ) ) then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) return ( ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) ) end
  20. Galera to fazendo um sistema de painel q vc digita no painel tipo 255, 0, 0 dentro de um carro e seta a cor vermelha no carro q e do rgb 255, 0, 0 e etc. mas da forma que achei que era possivel ao abrir o painel e digitar a cor em rgb eu fiz uma função que na teoria era pra pegar oq foi digitado na editbox e setar oq foi digitado na editbox como cor do carro usando setVehicleColor so q n aparece nada e n seta cor no carro mais se o carro ta vermelho e coloca tipo 255, 0, 0 na editbox e da ok a cor sempre muda pra preto espero q de para entender function SetarCor (playerSource, getMsg) --local mensagem = tonumber(getMsg) local uVehicle = getPedOccupiedVehicle( playerSource ) if isPedInVehicle( playerSource ) then if uVehicle then -- if mensagem == "Vermelho" then setVehicleColor( uVehicle, tonumber(getMsg)) end end --end end addEvent("SetarCor", true) addEventHandler("SetarCor", getRootElement(), SetarCor) PARTE DO CLIENT function rgbtrigger (button, state) if painel == true then if button == "left" and state == "down" then if isCursorOnElement(screenW * 0.6384, screenH * 0.5885, screenW * 0.7379, screenH * 0.6185) then local getMsg = tostring(getElementData(msgstaff, "CMT_Txt")) removeEventHandler("onClientRender", root, dx) triggerServerEvent("SetarCor", getLocalPlayer(), localPlayer, getMsg) painel = false showCursor(false) end end end end addEventHandler("onClientClick", root, rgbtrigger)
  21. Hello, this is my problem: I made a cigarette system for my server but I've been testing it and I found only 1 problem, when the player "spams" the command "/smoke" the part where the object it's deleted doesn't work corectly and DO NOT delete the object. How could I solve this? The part where the system deletes the object: setPedAnimation(thePlayer, "-", "-",false,false,false,false) local cancelsmoke = setTimer(function() exports.pAttach:detach(smoking,thePlayer) destroyElement(smoking) iprint("Destroyed") end, 2500, 1) If the player puts the command it works, the bug only happens when the player spam the command
  22. I can't find any tutorial about something like this but I know it's possible because I searched if this question was made before in the forum and yes, I saw some codes and explanation from users and mods, but it doesn't work for me, because I'm using mysql and phpmyadmin, the examples doesn't match with my project, so I was wondering if someone could help me to understand how to save the data from the player's weapon and ammo... this is what I tried first: ---------this is inside of a function that saves all the player's info-------- local weapon1 = getPedWeapon (source) local weapon = getWeaponNameFromID (weapon) local ammo = getPedTotalAmmo(source) --------the info it's send to the table (this was simplified)----------- local sendInfo = exports.mysql:_Query("UPDATE characters SET weapon=?, ammo=? WHERE account=?", weapon, ammo, account) Since i've started, many problems as "getPedWeapons a nill value" appeared in the console, also "expected number, got boolean", etc. If there is a way to make a system like this without the getaccountdata/setaccountdata... I would like to know how to make it. I'm not asking for a full code, just some of knowlegde
  23. Well, it's too late to delete it, so if a mod or admin see this, please delete this or move it, I solved the problem
  24. I've been trying to save the position of the player's character and it saves... but in a new table, not in the main one where its the account's name, the character's name and the rest. -> This is what happens<- This is the code I'm using for the "character money, position, and health" // i translated some concepts to english so you can understand easly what I'm trying to make: (server-side) function saveDataCharacter() local x, y, z = getElementPosition(source) local money = getPlayerMoney(source) local health = getElementHealth(source) local sendInfo = exports.mysql:_Exec("INSERT INTO characters (x,y,z, money, health) VALUES (?,?,?,?,?)", x, y, z, money, health) if (sendInfo) then iprint("Data saved") else iprint("Error saving") end end end addEventHandler("onPlayerQuit", getRootElement(), saveDataCharacter)
×
×
  • Create New...