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. i want change the needle color if speed >= 240, but does not working how to fix this? what wrong? no error(s)/warning(s)
  2. i created a dx panel, and i created some onClientClick event for this panel. but when i hide the panel, the onClientClick events are working.. how to fix this?
  3. entao eu baixei um script que tem traficante e eu gostaria que quando fizesse a entrega, a pessoa ficasse procurada, todavia nao sei fazer isso alguem pode me ajudar?
  4. Hello. I want create a dx timer which when the player disconnect, and connect again to the server then not reset the timer. Sorry for my bad english :c
  5. I do not speak English very well so sorry if you have some mistakes. Hello Community, beauty? A while ago I joined a RPG server and I came across a very cool Mod, it removes the "ports" of the buildings and leaves open in the style GTA V or GTA VC and I found it very interesting, I tried to do something like editing. Col But it didn't get the same I wanted to know how you do this or you have to download, I thank you from now on Print of how is the Mod https://prntscr.com/h97t3f
  6. function ccv (thePlayer) local accountname = getAccountName (getPlayerAccount(thePlayer)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "Admin" ) ) then setTimer(function() ve1 = createVehicle ( 535, -2220.98706, -129.69173, 35.32031 ) ma1 = createMarker ( -2221.09668, -129.61031, 33.88103, "cylinder", 7.5, 255, 255, 0, 5 ) end, 1000, 1) end end addCommandHandler("ccvp", ccv) function marker1() destroyElement(ve1) destroyElement(ma1) end addEventHandler( "onMarkerHit", ma1, marker1) when i walk into the marker, nothing happens
  7. Hi yesterday i buy server on pukawka.pl and when i try to pass scripts its ok buy my plugins dont working becose i have on console : ERROR:problem with resource :fallout ; failed to link to freecam ERROR:problem with resource :webbrowser ; failed to link to msgbox
  8. Hello MTA Team,so i put my router to defaults and lost my port forward,now i port forwarded again but when i start my MTA Server console says that all ports are closed.Please help me i cant fix it its very annoying. Thank you
  9. Não sei quase nada de scripts Eu quero fazer que quando um jogar matar o outro recebera 6 nives de procurado function client_kill_ped(ped, killer, body_part) if not ped or not isElement(ped) or isPedDead(ped) or getPedOccupiedVehicle(ped) then return end if not killer or not getElementType( attacker ) == "player" ) then end local px,py,pz = getElementPosition(ped) local kx,ky,kz = getElementPosition(killer) if getDistanceBetweenPoints3D(px,py,pz, kx,ky,kz) > 10 then return end killPed(ped, killer, 255, body_part, false) setWl(killer, 6.0, 60, "Você cometeu o crime de assassinato") US: I know almost nothing about scripts I want to do that when one player kills the other he receives 6 levels of wanted
  10. Hey! l Dark# help me race mode xiti race mode remove votemap and nos mode https://mega.nz/#!VL53RIaL!_vRXR9Iq0NadHgjBhsrHs5qdrAsUqtXd14z-qWp9GCc
  11. Excuse me if my English is wrong I need to create a Rank but I do not get what I want, I managed to create a table and insert values in it, and with a command leaves them from the largest to the smallest, the problem is that I want to enter the name of the player beyond the values and do not know how to get the values and the name together List = {} function ShowRank (source) setElementData (source,"WalkinG",15) setElementData (source,"WG",10) setElementData (source,"AL-KinG",5) for _,player in ipairs (getElementsByType ("player")) do Value = getElementData (player,"WalkinG") Value2 = getElementData (player,"WG") Value3 = getElementData (player,"AL-KinG") table.insert (List,Value) table.insert (List,Value2) table.insert (List,Value3) end end addCommandHandler ("renk",ShowRank) function ShowList () for i=1,3 do ordenaLista (List) outputChatBox (List[i]) end end addCommandHandler ("rank",ShowList) function ordenaLista (lista) for rodada=1,#lista do for i,valor in ipairs (lista) do if lista[i]<lista[rodada] then local seguravalorantigo = lista[rodada] lista[rodada] = lista[i] lista[i] = seguravalorantigo end end end end
  12. Preciso de ajuda, ninguem consegue se registrar no meu servidor antes conseguiam agora não conseguem mais o painel de login está na acl de admin e mesmo assim não da da um help ai
  13. MrStein

    Help me

    I wanted to make a script of hunger and thirst and sleep, so I can not find the functions help me My channel https://www.youtube.com/channel/UCmUZW_3JCmvTH7PxxhQYFTw?view_as=subscriber
  14. i had SHUTDOWNED server by a mistake But i did not know to start it and i cant access to FTP with browser( Can access with FILEZILLA) Plz help me for Start the shut downed server. PLZ PLZ sorry for my english
  15. I downloaded this script ( https://community.multitheftauto.com/index.php?p=resources&s=details&id=12899 ) from the community. But i want make this only available for admins. How to make this? (Sorry for my very bad english:/)
  16. Working on a First Person Shooter gamemode, and i found a bug. The event onClientPreRender causes some delay at attachElements. Can somebody reproduce attachElements maths for me?
  17. So. i have little problem with client side. Console and debugmonitor3 dosen't say anything. Server Side: local onDuty = {} addCommandHandler('duty',function(player,cmd) local accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup('user.'..accName,aclGetGroup('Admin')) then if not onDuty[player] or onDuty[player] == false then onDuty[player] = true outputChatBox("#F10404[ADMINISTRATOR] #FF8B00 "..getPlayerName(player)..' #04F42Cis now on duty!', getRootElement(), 255, 255, 255, true) triggerClientEvent(player,"onDuty",getRootElement()) timer1 = setTimer(function() setElementAlpha(player, 0) setElementData(player,'brokenbone',false) setElementData(player,'bleeding',false) setElementData(player,'pain',false) setElementData(player,'cold',false) setElementData(player,'temperature',36.5) setElementData(player,'blood',12000) setElementData(player,'food',100) setElementData(player,'thirst',75) end,50,0) else onDuty[player] = false setElementAlpha(player, 255) outputChatBox("#F10404[ADMINISTRATOR] #FF8B00 "..getPlayerName(player)..' #3600FF is now off duty!', getRootElement(), 255, 255, 255, true) if isTimer(timer1) then killTimer(timer1) end end end end) Client Side: addEvent ( "onDuty", true ) function duty() if getElementData(source,"duty") == true then timer = setTimer ( function() setElementData(source,"onDuty",true) local x, y, z = getElementPosition(source ) local playerName = getPlayerName(source ) local theText = dxDraw3DText( "Admin On Duty [NO DM]", x, y, z+1,05,"default",255,0,0,200) setTimer ( function() destroyElement(theText) end, 59, 1) end, 60, 0 ) else if isTimer(timer) then killTimer(timer) end setElementData(source,"duty",true) end end addEventHandler ( "onDuty", root, duty) Do anyone have solution?
  18. i have this played time script: and i want add to this a command, which the admins can add more hours for anyone, how to make this command??
  19. Hi Everyone! I got a problem on A Need For Speed server! I can't hear custom server sounds/music. How could I fix this? I already tried to unistall and re-install both the game and MTA but this problem seems to be persistent. Do anyone know a solution? Many Thanks for your support!
  20. XML

    [Question] Arrow

    hello i'm making an arrow that follows the front of the rectangle. but the problem is, it's working fine to me and it follows the front of it with no problems but the other players not seeing the arrow in the right position they see it in another position. Code: local screenW, screenH = guiGetScreenSize () addEventHandler ("onClientRender", root, function () local veh = getPedOccupiedVehicle (localPlayer) if (veh) then local hp = math.floor (getElementHealth (veh) / 10) local calcule_hp = (screenW * 0.9114) + (hp / 100 * screenW * 0.0805) - (screenW - 2995 * 0.9070 / 2) dxDrawRectangle (screenW * 0.9114, screenH * 0.9323, hp / 100 * screenW * 0.0805, screenH * 0.0117, tocolor (7, 247, 142, 209), false) dxDrawText ("HP: " .. hp .. "%", screenW * 0.8638, screenH * 0.9310, screenW * 0.8997, screenH * 0.9505, tocolor (7, 247, 142, 255), 1.00, "default", "center", "top", false, false, false, false, false) dxDrawImage (calcule_hp, screenH * 0.9206, screenW * 0.0095, screenH * 0.0117, "Images/arrow.png", 0, 0, 0, tocolor (255, 255, 255, 255), false) end end ) So any help please ?
  21. code: addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function() exports [ "scoreboard" ]:addScoreboardColumn ( "Jármű:", 3 ) end ) setTimer ( function ( ) local players = getElementsByType "player" for k, v in ipairs ( players ) do if ( isPedInVehicle(v) ) then local vehicle = getPedOccupiedVehicle(v) local carname = getVehicleName(vehicle) setElementData ( v, "Jármű:", tostring(carname) ) else setElementData ( v, "Jármű:", "Nincs") end end end, 2500, 0 ) and i get this error: ERROR: Loading script failed: xy/xy.lua:1: unexpected symbol near '?' how to fix this?
  22. DEYMONS

    ERRO CD29

    I will enter the server and at the time of downloading the server files (map) of error cd29 and not low HELP
  23. Hi! I have a problem with my DX script. I made a DX screen that gets the items in a table and display it on the rectangle The problem is, it's multiplying everything that is related with the text. This is how the issue looks in game, look at the rectangle with the texts, it's multiplying everything! And here is my code: ------------------------------------------------------- local itemList = { {"Wooden Wall"}, {"Wooden Doorway"}, {"Wooden Window"}, {"Wooden Floor"}, {"Wooden Floorport"}, {"Wooden Stairs"}, {"Wooden Fence"}, {"Wooden Door"}, {"Wooden Gate"}, {"Metal Wall"}, {"Metal Doorway"}, {"Metal Window"}, {"Metal Floor"}, {"Metal Floorport"}, {"Metal Stairs"}, {"Metal Fence"}, {"Metal Door"}, {"Metal Gate"}, {"Concrete Wall"}, {"Concrete Doorway"}, {"Concrete Window"}, {"Concrete Floor"}, {"Concrete Floorport"}, {"Concrete Stairs"}, {"Concrete Fence"}, {"Reinforced Door"}, {"Reinforced Gate"}, } ------------------------------------------------------- function returnTableCount (tab) count = 1 if ( getLocalPlayer() ) then for i,item in ipairs(tab) do if ( item ) then count = count + 1 end end return count end return false end ------------------------------------------------------- local totalRows = returnTableCount(itemList) local iRows = totalRows local iVisibleRows = 20 local iCurrentCell = 0 ------------------------------------------------------- local screenWidth,screenHeight = guiGetScreenSize() local screenW, screenH = guiGetScreenSize() local sx,sy = guiGetScreenSize() local px,py = 1366,768 local x,y = (sx/px), (sy/py) ------------------------------------------------------- function isCursorOverRectangle(x,y,w,h) if isCursorShowing() then local mx,my = getCursorPosition() cursorx,cursory = mx*px,my*py if cursorx > x and cursorx < x + w and cursory > y and cursory < y + h then return true end end return false end function drawInventory () if ( getElementData(getLocalPlayer(),"viewingInv") ) then titleTable = dxDrawRectangle(x*050, y*040, x*350, y*45, tocolor(0, 77, 126, 170), false) titleText = dxDrawText("Building",x*060, y*055, x*250, y*30,tocolor(255,255,255, 255)) mainTable = dxDrawRectangle(x*050, y*090, x*350, y*640, tocolor(0, 0, 0, 170), false) for i,item in ipairs(itemList) do for ki = iCurrentCell, iVisibleRows+iCurrentCell-1 do visibleI = ki - iCurrentCell dxDrawRectangle(x*050+x*350, y*090+y*640/iRows*iCurrentCell, 5, y*640/iRows*iVisibleRows) itemBackground = dxDrawRectangle(x*060, y*100+visibleI*31, x*200, y*30, tocolor(0, 0, 0, 200), false) itemText = dxDrawText(item[1],x*070, y*107+visibleI*31, x*250, y*30,tocolor(255,255,255, 255)) --Problem is here :C useBackground = dxDrawRectangle(x*265, y*100+visibleI*31, x*60, y*30, tocolor(0, 0, 0, 200), false) useText = dxDrawText("Text",x*282, y*107+visibleI*31, x*250, y*30,tocolor(255,255,255, 255)) dropBackground = dxDrawRectangle(x*330, y*100+visibleI*31, x*60, y*30, tocolor(0, 0, 0, 200), false) dropText = dxDrawText("Text",x*347, y*107+visibleI*31, x*250, y*30,tocolor(255,255,255, 255)) if isCursorOverRectangle(x*060, y*100+visibleI*31, x*200, y*30) or isCursorOverRectangle(x*265, y*100+visibleI*31, x*60, y*30) or isCursorOverRectangle(x*330, y*100+visibleI*31, x*60, y*30) then dxDrawRectangle(x*060, y*100+visibleI*31, x*200, y*30, tocolor(0, 77, 126,20)) dxDrawRectangle(x*265, y*100+visibleI*31, x*60, y*30, tocolor(0, 77, 126,20)) dxDrawRectangle(x*330, y*100+visibleI*31, x*60, y*30, tocolor(0, 77, 126,20)) end end end end end addEventHandler("onClientRender",getRootElement(),drawInventory) function rustCraftScrollUp () if ( getElementData(getLocalPlayer(),"viewingInv") ) then if isCursorOverRectangle(x*050, y*090, x*350, y*640) then iCurrentCell = iCurrentCell - 1 if iCurrentCell < 0 then iCurrentCell = 0 end end end end bindKey("mouse_wheel_up","down",rustCraftScrollUp) function rustCraftScrollDown () if ( getElementData(getLocalPlayer(),"viewingInv") ) then if isCursorOverRectangle(x*050, y*090, x*350, y*640) then iCurrentCell = iCurrentCell + 1 if iCurrentCell > iRows-iVisibleRows then iCurrentCell = iRows-iVisibleRows end end end end bindKey("mouse_wheel_down","down",rustCraftScrollDown) function showInventory () if ( getElementData(getLocalPlayer(),"viewingInv") ) then setElementData(getLocalPlayer(),"viewingInv",false) showCursor(false) showChat(true) else setElementData(getLocalPlayer(),"viewingInv",true) showCursor(true) showChat(false) end end bindKey("k","down",showInventory) How can I get the items in that table 'itemList' and put it in the screen that the dxGridList works without multiplying those stuff? I hope you guys undestand my problem :v pls help
  24. Hoping that they are well, it turns out that I have a problem with my script, I want to make it work counting the players in an area and not the server to start the game. It gives me the global attempt to call countPlayersInRange (a nil value). function chekin( player )--CHECK INICIO local alive = countPlayersInRange(4754.6508789063, -2038.6687011719, 2.3671875, 40) if alive >= 8 and royale == false then -- mudar para 3 outputChatBox ( "#FFFFFF[ROYALE]:#FF0000INICIANDO PARTIDA BATTLE ROYALE", root, 0, 255, 0, true ) counter() elseif alive == 1 and royale == false then outputChatBox ("#FFFFFF[ROYALE]:#FF0000FALTA 7 JUGADORES", root, 255, 0, 0, true) elseif alive == 2 and royale == false then outputChatBox ("#FFFFFF[ROYALE]:#FF0000FALTA 6 JUGADORES", root, 255, 0, 0, true) elseif alive == 3 and royale == false then outputChatBox ("#FFFFFF[ROYALE]:#FF0000FALTA 5 JUGADOR", root, 255, 0, 0, true) elseif alive == 4 and royale == false then outputChatBox ("#FFFFFF[ROYALE]:#FF0000FALTA 4 JUGADORES", root, 255, 0, 0, true) elseif alive == 5 and royale == false then outputChatBox ("#FFFFFF[ROYALE]:#FF0000FALTA 3 JUGADOR", root, 255, 0, 0, true) elseif alive == 6 and royale == false then outputChatBox ("#FFFFFF[ROYALE]:#FF0000FALTA 2 JUGADORES", root, 255, 0, 0, true) elseif alive == 7 and royale == false then outputChatBox ("#FFFFFF[ROYALE]:#FF0000FALTA 1 JUGADOR", root, 255, 0, 0, true) end end If you could explain why this error occurs and how to solve it would be very helpful, thanks!
×
×
  • Create New...