Jump to content

Search the Community

Showing results for tags 'mta', ' error' or ' connect'.

  • 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. when i driveing the car, then the exhaust fire. where can i download this script?
  2. So. I was going to play MTA:SA but when i connected to a server, it disconnected me and said this "You were kicked by AC #4 8DA6-0500.", I tried restarting the game, my PC, validating local files. But nothing worked. I checked that i shouldn't have any mods or trainers from others than the servers own mods. Can someone help me with this problem..
  3. Guest

    Just a question

    Hello , I have a question . How to get this coordinates in mta san andreas ? - mx, my, mz, tarx, tary, tarz , rot
  4. Witam, mam problem z Gtasa i mtasa. Moje problemy są, nie mogę ruszać myszka w mta jeśli coś zmieniam to mi crashuje, a gtasa udało mi się naprawić w połowie, ale mam czarny ekran. Grę mam z wydania Premium games od cenegi. Prosze o pomoc. #Edit1 Mam Laptop msi. Gtx 940mx z procesorem i7 6700Hq 2,60 ghz i 8 gb ram.
  5. i have this code: setTimer(function() local arfolyam = math.random(200,5130) outputChatBox("Jelenlegi árfolyam: "..arfolyam) end, 500, 0) GUIEditor.window[1] = guiCreateWindow(0.35, 0.31, 0.31, 0.28, "Aranykereskedés", true) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(0.02, 0.59, 0.95, 0.14, "Az arany jelenlegi árfolyama: "..arfolyam, true, GUIEditor.window[1]) but i get this error in debugscript 3: attempt to concatenate global 'arfolyam' ( a nil value) what wrong? how to fix this?
  6. Rage Gaming Society is a multi-roam server that was and still underdevelopment since 2016. It was never published or officially launched yet but It will as soon as it is ready. The development team consists of only me currently but the process has not stopped and will continue in a stable pace. HOPEFULLY The server currently includes all of the main scripts needed in addition to some other secondary scripts that improve the game playing. But, It is yet - as I mentioned before - not ready to be launched because I am looking to launch it with high quality and with the least number of bugs and glitches so everyone can enjoy it from the beginning. - Resources -
  7. Guest

    Map Editor not working properly

    Greetings community, My Map Editor started throw a error in console but when I connect to server it is all loaded up but I am missing that bottom left bar and editor wont load any map so I cant edit map or create new ones. So then I saw error in console "ERROR: edf\edf.lua:220: editor_main: couldn't load edf file" But I dont make changes to edf file... So I dont know why it start throwing that error. Can someone help me with this? Thanks and have a good day or night (Idk what time it is in your country...) :).
  8. The question is the same as the title: how to get width and height of a vehicle component?I dont think that there is any way to do it.
  9. i got this error, but the script working fine... -.- bad argument #1 to 'len' (string expected, got boolean) how to fix this? code: function currentSongName() local radio_title = getElementData(resourceRoot, "radio.title") if string.len(radio_title) >= x*0.0625 then radio_title = string.sub(radio_title, 1, 80)..".." end for i, shading in pairs ( offsetShadings ) do dxDrawText("Radio: "..radio_title, xD+shading[1], yD+shading[2], xD, yD+textHeight, tocolor ( 0, 0, 0, 255 ), scale, font, "left", "center", false, false, true, true) end dxDrawText("Radio: #ffffff"..radio_title, xD, yD, xD, yD+textHeight, tocolor ( 70, 215, 0, 255 ), scale, font, "left", "center", false, false, true, true) end addEventHandler('onClientRender', root, currentSongName)
  10. Hello MTA community, I am not sure if you are aware about this but UAE players will no longer be able to play on MTA servers unless VPN is used. (some different cities in UAE are able to play but after 10min of waiting or so however with noticeable timeouts and teleports). After extensive research and discussing with my ISP (Etisalat) on phone, the conclusion is that any games that has VOIP will be banned (port 80 is banned as well) and we will not be able to play it.However there's a chance in which a game developer/owner has to agree to certain conditions of UAE in order to attain the license from TRA than we can play without VPN! Similar cases:1. Skype was banned before however later on unbanned because they got TRA license.2. Rocket League is banned. (Thankfully they talked with TRA and got license a great thanks to all gamers who supported us on this thread) We can't play on Europe servers, only UAE servers but np.3. Paladins is banned. (nothing happened here so we gotta use VPN).Recent cases:https://www.reddit.com/r/dubai/comme...banning_games/https://www.reddit.com/r/dubai/comme...at_gaming_ban/ NEWS: https://www.thenational.ae/business/technology/uae-gamers-voice-anger-as-chat-app-blocked-by-etisalat-1.612629 *With all humbleness I request the MTA developers or owner to talk to TRA (LIVE CHAT) and somehow find a solution and get TRA license. Telecommunication Regulatory Authority (TRA) in UAE said "You have to take licenses to allow the VOIP in your app". Best Regards, 3R.Kaziko#007<~ 3R Social Manager
  11. I created a Brown Streak mod. And the dff&txd working fine, but the .col does not working. I got a warning in debugscript 3: mod.lua:14: Bad 'number' pointer @ engineReplaceCOL'(2) This is the mod.lua code: function replaceModel() local txd colsok = engineLoadCOL ( "v43.col" ) engineReplaceCOL ( colsok, 538) txd = engineLoadTXD ( "v43.txd" ) engineImportTXD ( txd, 538 ) dff = engineLoadDFF ( "v43.dff" ) engineReplaceModel ( dff, 538 ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) addCommandHandler ( "reloadcar", replaceModel ) What wrong? How to fix this?
  12. ___________________________________________ Information Street Wars - Currently being the only Polish server "Team Deathmatch" The server will only function on the Multi Theft Auto Platform. It is not a "Role Play Game, Role Play, or Play" is a newly created server based on Author Gamemod. On the server we have a lot of ideas and we try to add them as often as possible. The purpose of the RCON Administration is to create something "new" on the Polish and English MTA scene. This server is based on quite a famous server "Endless War". Seeing players who write about the return of this server has given me an idea to create this project. The main goal on the server will not be just monetization. The purpose of this server is based on Killing, Taking Territory, Harnessing, New Ranging and more ... The server also has Author Maps, scripts and innovative Systems. Administration RCON - BoKu ( Chief Scripter, Mapper, Originator ) - Mr.Krzychu ( Originator ) - Kamyrdol32 ( Scripter ) - Dizzel ( Secondary Maping ) Administrators - There is No Moderators - There is No Obviously, the Server Team will expand immediately after server startup, by recruiting the Forum. It will not be "First up", it will be the person who wrote the application aesthetically and well describing himself and his experience. The server team will be on Very High level. Street Gangs Grove Street Set of Weapons: - Ak-47 - Rifle - Mac-10 - Chainsaw Ballas Set of Weapons: - Ak-47 - Deagle - Sawed-Off - Basketball Aztecs Set of Weapons: - Ak-47 - Deagle - Sniper - Knife Policja Set of Weapons: - M4 - USP - Nightstick - Tear gas Vagos Set of Weapons: - Ak-47 - Deagle - Sniper - Knife Mafia Set of Weapons: - Ak-47 - UMP - Sniper - Catana What are we planning to add? We plan to add a lot of innovative and different things. We are planning to do, among others, Artifact, Bank Assault, Assault. New Modernized Graphics, Capture Territory, Picking Harnesses, and various Gangsters work systems. Currently, there is a system of vehicles, tuning and cabins. Ideas will come out in time. The server is up to date. Server Presentation Login Panel http://imgur.com/a/ByUZM Team Choice It allows us to select up to 6 Teams described above http://imgur.com/a/BOe6I Cinema This is an Authorized Cinema allowing you to Watch various Seans. http://imgur.com/a/pOlww TAB system It shows us - Group, Rank and how much we have Kills, Death, K / D. http://imgur.com/a/YQP1e Strip Club It is located next to the Vagos base. We plan to add different "ladies" and bartenders to it http://imgur.com/a/lqtEb The gym It is located next to Grove Base, at this time we have no idea how to add it. At this time it is for 'decorations'. http://imgur.com/a/kKLxb Automated Responder System It depends on the respiratory system in the base. Every car is standard from GTA Ganges: SA http://imgur.com/a/z8T1O Gang Maps Each map is different, made in Map Editor by me. http://imgur.com/a/GeYuV Drug Carriage Work The work involves the transportation of Drugs, from the "Old Base" to the Base of All Other Gangs http://imgur.com/a/6apb8 Ammunition Dump Jobs The job is to drop Ammunition from LS Airport, to the Base of All Other Gangs http://imgur.com/a/xs1Wr Artifact Artifact every 5 minutes gives us - Kase, Exp'a and various weapons. After taking the Artifact, we automatically add a new skin. http://imgur.com/a/ezAtL GUI examples This is just a GUI quad from the server, each text has a color that is "taken" from the gang. http://imgur.com/a/TBpQA Additional Information IP Server - mtasa: //87.98.236.108: 20524 Server Name - [TDM] Street Wars - sW @ ServerProject.eu Slots - x / 40 Gamemode - Gang Wars [TDM] Start Server - 15.08.2017 Forum - http://streetwars.mtasa.eu Sorry for my english but I'm a Poland and I'm using an interpreter
  13. Presiso de um Scripter Para MTA Urgente se alguem estiver interessado ai me contate via PM vlw ai
  14. In this code, i want to check if is a admin?, because if is a admin i want to be: "[Admin][Global]" function globalMessage(thePlayer, cmd, ...) local message = table.concat ( { ... }, " " ); local name = getPlayerName(thePlayer); for _,v in ipairs(getElementsByType("player")) do outputChatBox("#FF0000[GLOBAL] #FFFFFF"..name..": #FFFFFF"..message,v, 255, 255, 255, true) --00FF00 end end addCommandHandler("global", globalMessage); addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function() for index,player in pairs(getElementsByType("player")) do bindKey(player,"b", "down", "chatbox", "global"); end end ) addEventHandler("onPlayerJoin", getRootElement(), function() bindKey(source, "b", "down", "chatbox", "global"); end )
  15. local movingOffsetX, movingOffsetY = 0, 0 local isMoving = false bindKey('m', 'down', function() showCursor(not isCursorShowing()); end ) function drawRadar() showPlayerHudComponent("radar", false) if disableGTASAhealth then showPlayerHudComponent("health", false) end if disableGTASAarmor then showPlayerHudComponent("armour", false) end if disableGTASAoxygen then showPlayerHudComponent("breath", false) end if (not isPlayerMapVisible()) then if (isCursorShowing() and isMoving) then local cursorX, cursorY = getCursorPosition(); cursorX = cursorX * sx; cursorY = cursorY * sy; xFactor = cursorX - movingOffsetX; yFactor = cursorY - movingOffsetY; end local mW, mH = dxGetMaterialSize(rt) local x, y = getElementPosition(localPlayer) local X, Y = mW/2 -(x/(6000/worldW)), mH/2 +(y/(6000/worldH)) local camX,camY,camZ = getElementRotation(getCamera()) dxSetRenderTarget(rt, true) if alwaysRenderMap or getElementInterior(localPlayer) == 0 then dxDrawRectangle(xFactor, yFactor, worldW, worldH, 0xFF5E656B) dxDrawImage(X - worldW/2, mH/5 + (Y - worldH/2), worldW, worldH, "image/world.jpg", camZ, (x/(6000/worldW)), -(y/(6000/worldH)), tocolor(255, 255, 255, 255)) end dxSetRenderTarget() dxDrawRectangle((10)*xFactor, sy-((200+10))*yFactor, (300)*xFactor, (184)*yFactor, tocolor(0, 0, 0, 175)) dxDrawImage((10+5)*xFactor, sy-((200+5))*yFactor, (300-10)*xFactor, (175)*yFactor, rt, 0, 0, 0, tocolor(255, 255, 255, 255)) local rx, ry, rz = getElementRotation(localPlayer) local lB = (15)*xFactor local rB = (15+290)*xFactor local tB = sy-(205)*yFactor local bB = tB + (175)*yFactor local cX, cY = (rB+lB)/2, (tB+bB)/2 +(35)*yFactor local toLeft, toTop, toRight, toBottom = cX-lB, cY-tB, rB-cX, bB-cY for k, v in ipairs(getElementsByType("blip")) do local bx, by = getElementPosition(v) local actualDist = getDistanceBetweenPoints2D(x, y, bx, by) local maxDist = getBlipVisibleDistance(v) if actualDist <= maxDist and getElementDimension(v)==getElementDimension(localPlayer) and getElementInterior(v)==getElementInterior(localPlayer) then local dist = actualDist/(6000/((worldW+worldH)/2)) local rot = findRotation(bx, by, x, y)-camZ local bpx, bpy = getPointFromDistanceRotation(cX, cY, math.min(dist, math.sqrt(toTop^2 + toRight^2)), rot) local bpx = math.max(lB, math.min(rB, bpx)) local bpy = math.max(tB, math.min(bB, bpy)) local bid = getElementData(v, "customIcon") or getBlipIcon(v) local _, _, _, bcA = getBlipColor(v) local bcR, bcG, bcB = 255, 255, 255 if getBlipIcon(v) == 0 then bcR, bcG, bcB = getBlipColor(v) end local bS = getBlipSize(v) dxDrawImage(bpx -(blip*bS)*xFactor/2, bpy -(blip*bS)*yFactor/2, (blip*bS)*xFactor, (blip*bS)*yFactor, "image/blip/"..bid..".png", 0, 0, 0, tocolor(bcR, bcG, bcB, bcA)) end end if renderNorthBlip then local rot = -camZ+180 local bpx, bpy = getPointFromDistanceRotation(cX, cY, math.sqrt(toTop^2 + toRight^2), rot) --get position local bpx = math.max(lB, math.min(rB, bpx)) local bpy = math.max(tB, math.min(bB, bpy)) --cap position to screen local dist = getDistanceBetweenPoints2D(cX, cY, bpx, bpy) --get distance to the capped position local bpx, bpy = getPointFromDistanceRotation(cX, cY, dist, rot) --re-calculate position based on new distance if bpx and bpy then --if position was obtained successfully local bpx = math.max(lB, math.min(rB, bpx)) local bpy = math.max(tB, math.min(bB, bpy)) --cap position just in case dxDrawImage(bpx -(blip*2)/2, bpy -(blip*2)/2, blip*2, blip*2, "image/blip/4.png", 0, 0, 0) --draw north (4) blip end end dxDrawImage(cX -(blip*2)*xFactor/2, cY -(blip*2)*yFactor/2, (blip*2)*xFactor, (blip*2)*yFactor, "image/player.png", camZ-rz, 0, 0) end end addEventHandler("onClientRender", root, drawRadar) addEventHandler('onClientClick', getRootElement(), function(button, state, cursorX, cursorY) if (not isPlayerMapVisible()) then local cursorX, cursorY = getCursorPosition(); if (button == 'left' and state == 'down') then if (cursorX >= xFactor and cursorX <= xFactor + worldW and cursorY >= yFactor and cursorY <= yFactor + worldH) then isMoving = true; movingOffsetX = cursorX - xFactor; movingOffsetY = cursorY - yFactor; end else isMoving = false; end end end ) No errors/warnings in debugscript 3, what the problem with this?
  16. now the radar "move" but... not the way I want it bug video: this is the code: local movingOffsetX, movingOffsetY = 0, 0 local isMoving = false bindKey('m', 'down', function() showCursor(not isCursorShowing()); end ) function drawRadar() showPlayerHudComponent("radar", false) if disableGTASAhealth then showPlayerHudComponent("health", false) end if disableGTASAarmor then showPlayerHudComponent("armour", false) end if disableGTASAoxygen then showPlayerHudComponent("breath", false) end if (not isPlayerMapVisible()) then if (isCursorShowing() and isMoving) then local cursorX, cursorY = getCursorPosition(); cursorX = cursorX * sx; cursorY = cursorY * sy; xFactor = cursorX - movingOffsetX; yFactor = cursorY - movingOffsetY; end local mW, mH = dxGetMaterialSize(rt) local x, y = getElementPosition(localPlayer) local X, Y = mW/2 -(x/(6000/worldW)), mH/2 +(y/(6000/worldH)) local camX,camY,camZ = getElementRotation(getCamera()) dxSetRenderTarget(rt, true) if alwaysRenderMap or getElementInterior(localPlayer) == 0 then dxDrawRectangle(xFactor, yFactor, worldW, worldH, 0xFF5E656B) dxDrawImage(X - worldW/2, mH/5 + (Y - worldH/2), worldW, worldH, "image/world.jpg", camZ, (x/(6000/worldW)), -(y/(6000/worldH)), tocolor(255, 255, 255, 255)) end dxSetRenderTarget() dxDrawRectangle((10)*xFactor, sy-((200+10))*yFactor, (300)*xFactor, (184)*yFactor, tocolor(0, 0, 0, 175)) dxDrawImage((10+5)*xFactor, sy-((200+5))*yFactor, (300-10)*xFactor, (175)*yFactor, rt, 0, 0, 0, tocolor(255, 255, 255, 255)) local rx, ry, rz = getElementRotation(localPlayer) local lB = (15)*xFactor local rB = (15+290)*xFactor local tB = sy-(205)*yFactor local bB = tB + (175)*yFactor local cX, cY = (rB+lB)/2, (tB+bB)/2 +(35)*yFactor local toLeft, toTop, toRight, toBottom = cX-lB, cY-tB, rB-cX, bB-cY for k, v in ipairs(getElementsByType("blip")) do local bx, by = getElementPosition(v) local actualDist = getDistanceBetweenPoints2D(x, y, bx, by) local maxDist = getBlipVisibleDistance(v) if actualDist <= maxDist and getElementDimension(v)==getElementDimension(localPlayer) and getElementInterior(v)==getElementInterior(localPlayer) then local dist = actualDist/(6000/((worldW+worldH)/2)) local rot = findRotation(bx, by, x, y)-camZ local bpx, bpy = getPointFromDistanceRotation(cX, cY, math.min(dist, math.sqrt(toTop^2 + toRight^2)), rot) local bpx = math.max(lB, math.min(rB, bpx)) local bpy = math.max(tB, math.min(bB, bpy)) local bid = getElementData(v, "customIcon") or getBlipIcon(v) local _, _, _, bcA = getBlipColor(v) local bcR, bcG, bcB = 255, 255, 255 if getBlipIcon(v) == 0 then bcR, bcG, bcB = getBlipColor(v) end local bS = getBlipSize(v) dxDrawImage(bpx -(blip*bS)*xFactor/2, bpy -(blip*bS)*yFactor/2, (blip*bS)*xFactor, (blip*bS)*yFactor, "image/blip/"..bid..".png", 0, 0, 0, tocolor(bcR, bcG, bcB, bcA)) end end if renderNorthBlip then local rot = -camZ+180 local bpx, bpy = getPointFromDistanceRotation(cX, cY, math.sqrt(toTop^2 + toRight^2), rot) --get position local bpx = math.max(lB, math.min(rB, bpx)) local bpy = math.max(tB, math.min(bB, bpy)) --cap position to screen local dist = getDistanceBetweenPoints2D(cX, cY, bpx, bpy) --get distance to the capped position local bpx, bpy = getPointFromDistanceRotation(cX, cY, dist, rot) --re-calculate position based on new distance if bpx and bpy then --if position was obtained successfully local bpx = math.max(lB, math.min(rB, bpx)) local bpy = math.max(tB, math.min(bB, bpy)) --cap position just in case dxDrawImage(bpx -(blip*2)/2, bpy -(blip*2)/2, blip*2, blip*2, "image/blip/4.png", 0, 0, 0) --draw north (4) blip end end dxDrawImage(cX -(blip*2)*xFactor/2, cY -(blip*2)*yFactor/2, (blip*2)*xFactor, (blip*2)*yFactor, "image/player.png", camZ-rz, 0, 0) end end addEventHandler("onClientRender", root, drawRadar) addEventHandler('onClientClick', getRootElement(), function(button, state, cursorX, cursorY) if (not isPlayerMapVisible()) then if (button == 'left' and state == 'down') then if (cursorX >= xFactor and cursorX <= xFactor + worldW and cursorY >= yFactor and cursorY <= yFactor + worldH) then isMoving = true; movingOffsetX = cursorX - xFactor; movingOffsetY = cursorY - yFactor; end else isMoving = false; end end end ) how to fix this bug?
  17. Alguien me pasaría script De servidores Roleplay? es para abrir un server RP
  18. local movingOffsetX, movingOffsetY = 0, 0 local isMoving = false bindKey('m', 'down', function() showCursor(not isCursorShowing()); end ) function drawRadar() showPlayerHudComponent("radar", false) if disableGTASAhealth then showPlayerHudComponent("health", false) end if disableGTASAarmor then showPlayerHudComponent("armour", false) end if disableGTASAoxygen then showPlayerHudComponent("breath", false) end if (not isPlayerMapVisible()) then if (isCursorShowing() and isMoving) then local cursorX, cursorY = getCursorPosition(); cursorX = cursorX * sx; cursorY = cursorY * sy; xFactor = cursorX - movingOffsetX; yFactor = cursorY - movingOffsetY; end local mW, mH = dxGetMaterialSize(rt) local x, y = getElementPosition(localPlayer) local X, Y = mW/2 -(x/(6000/worldW)), mH/2 +(y/(6000/worldH)) local camX,camY,camZ = getElementRotation(getCamera()) dxSetRenderTarget(rt, true) if alwaysRenderMap or getElementInterior(localPlayer) == 0 then dxDrawRectangle(xFactor, yFactor, worldW, worldH, 0xFF5E656B) dxDrawImage(X - worldW/2, mH/5 + (Y - worldH/2), worldW, worldH, "image/world.jpg", camZ, (x/(6000/worldW)), -(y/(6000/worldH)), tocolor(255, 255, 255, 255)) end dxSetRenderTarget() dxDrawRectangle((10)*xFactor, sy-((200+10))*yFactor, (300)*xFactor, (184)*yFactor, tocolor(0, 0, 0, 175)) dxDrawImage((10+5)*xFactor, sy-((200+5))*yFactor, (300-10)*xFactor, (175)*yFactor, rt, 0, 0, 0, tocolor(255, 255, 255, 255)) local rx, ry, rz = getElementRotation(localPlayer) local lB = (15)*xFactor local rB = (15+290)*xFactor local tB = sy-(205)*yFactor local bB = tB + (175)*yFactor local cX, cY = (rB+lB)/2, (tB+bB)/2 +(35)*yFactor local toLeft, toTop, toRight, toBottom = cX-lB, cY-tB, rB-cX, bB-cY for k, v in ipairs(getElementsByType("blip")) do local bx, by = getElementPosition(v) local actualDist = getDistanceBetweenPoints2D(x, y, bx, by) local maxDist = getBlipVisibleDistance(v) if actualDist <= maxDist and getElementDimension(v)==getElementDimension(localPlayer) and getElementInterior(v)==getElementInterior(localPlayer) then local dist = actualDist/(6000/((worldW+worldH)/2)) local rot = findRotation(bx, by, x, y)-camZ local bpx, bpy = getPointFromDistanceRotation(cX, cY, math.min(dist, math.sqrt(toTop^2 + toRight^2)), rot) local bpx = math.max(lB, math.min(rB, bpx)) local bpy = math.max(tB, math.min(bB, bpy)) local bid = getElementData(v, "customIcon") or getBlipIcon(v) local _, _, _, bcA = getBlipColor(v) local bcR, bcG, bcB = 255, 255, 255 if getBlipIcon(v) == 0 then bcR, bcG, bcB = getBlipColor(v) end local bS = getBlipSize(v) dxDrawImage(bpx -(blip*bS)*xFactor/2, bpy -(blip*bS)*yFactor/2, (blip*bS)*xFactor, (blip*bS)*yFactor, "image/blip/"..bid..".png", 0, 0, 0, tocolor(bcR, bcG, bcB, bcA)) end end if renderNorthBlip then local rot = -camZ+180 local bpx, bpy = getPointFromDistanceRotation(cX, cY, math.sqrt(toTop^2 + toRight^2), rot) --get position local bpx = math.max(lB, math.min(rB, bpx)) local bpy = math.max(tB, math.min(bB, bpy)) --cap position to screen local dist = getDistanceBetweenPoints2D(cX, cY, bpx, bpy) --get distance to the capped position local bpx, bpy = getPointFromDistanceRotation(cX, cY, dist, rot) --re-calculate position based on new distance if bpx and bpy then --if position was obtained successfully local bpx = math.max(lB, math.min(rB, bpx)) local bpy = math.max(tB, math.min(bB, bpy)) --cap position just in case dxDrawImage(bpx -(blip*2)/2, bpy -(blip*2)/2, blip*2, blip*2, "image/blip/4.png", 0, 0, 0) --draw north (4) blip end end dxDrawImage(cX -(blip*2)*xFactor/2, cY -(blip*2)*yFactor/2, (blip*2)*xFactor, (blip*2)*yFactor, "image/player.png", camZ-rz, 0, 0) end end addEventHandler("onClientRender", root, drawRadar) addEventHandler('onClientClick', getRootElement(), function(button, state, cursorX, cursorY) if (not isPlayerMapVisible()) then local cursorX, cursorY = getCursorPosition(); if (button == 'left' and state == 'down') then if (cursorX >= xFactor and cursorX <= xFactor + worldW and cursorY >= yFactor and cursorY <= yFactor + worldH) then isMoving = true; movingOffsetX = cursorX - xFactor; movingOffsetY = cursorY - yFactor; end else isMoving = false; end end end ) why not move the radar? i do not get errors/warnings in debugscript 3 and i don't know what wrong..
  19. I downloaded this radar: https://community.multitheftauto.com/index.php?p=resources&s=details&id=10673 And how can i make this movable? For example, i press F5 button on my keyboard, and the radar become movable, and when i press F5 again, the radar again can not be moved. How to? Sorry, for my very-very bad english!
  20. Alguem Pode Me Ajudar ? function AirNewQuit (source) if (veh[source]) and isElement(veh[source]) then setElementVisibleTo ( AirNew77744, source, false ) destroyElement (veh[source]) outputChatBox ("#ffffff[ #FFA136Trabalho #ffffff] - #FFFFFFVoce Saiu Do Veiculo E Perdeu O Emprego", source ,0,0,0,true) else end end addEventHandler ( "onVehicleExit", getRootElement(), AirNewQuit ) --- Quando O Jogador Sai Do Veiculo ( Funcionando ) addEventHandler ( "onPlayerWasted", getRootElement(), AirNewQuit ) --- Quando O Jogador Morre ( Nao Funciona ) addEventHandler ( "onPlayerQuit", getRootElement(), AirNewQuit ) --- Quando O Jogador Quita Do Servidor ( Nao Funciona ) Queria Saber Porque As Duas Ultimas Linhas Nao Funcionam, Se Alguem Puder Me Ajudar Ficaria AGRADECIDO.
  21. http://imgur.com/a/og3e5 this is the problem, how to fix this? code: local screenW, screenH = guiGetScreenSize() addEventHandler("onClientRender", root, function() local x, y, z = getElementPosition(localPlayer) local location = getZoneName ( x, y, z ) dxDrawImage(screenW * 0.0076, screenH * 0.7300, screenW * 0.2194, screenH * 0.2422, "mapbg.png", 360, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawText(location, screenW * 0.0965, screenH * 0.7370, screenW * 0.2250, screenH * 0.7567, tocolor(118, 224, 90, 255), 1.00, "default-bold", "left", "center", false, false, true, false, false) end ) addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function () setPlayerHudComponentVisible( "area_name", false ) end) local sx, sy = guiGetScreenSize() local rt = dxCreateRenderTarget(290, 175) local xFactor, yFactor = sx/1366, sy/768 local yFactor = xFactor function findRotation(x1,y1,x2,y2) local t = -math.deg(math.atan2(x2-x1,y2-y1)) if t < 0 then t = t + 360 end; return t; end function getPointFromDistanceRotation(x, y, dist, angle) local a = math.rad(90 - angle); local dx = math.cos(a) * dist; local dy = math.sin(a) * dist; return x+dx, y+dy; end function drawRadar() showPlayerHudComponent("radar", false) if disableGTASAhealth then showPlayerHudComponent("health", false) end if disableGTASAarmor then showPlayerHudComponent("armour", false) end if disableGTASAoxygen then showPlayerHudComponent("breath", false) end if (not isPlayerMapVisible()) then local mW, mH = dxGetMaterialSize(rt) local x, y = getElementPosition(localPlayer) local X, Y = mW/2 -(x/(6000/worldW)), mH/2 +(y/(6000/worldH)) local camX,camY,camZ = getElementRotation(getCamera()) dxSetRenderTarget(rt, true) if alwaysRenderMap or getElementInterior(localPlayer) == 0 then dxDrawRectangle(0, 0, mW, mH, 0xFF5E656B) dxDrawImage(X - worldW/2, mH/5 + (Y - worldH/2), worldW, worldH, "image/world.jpg", camZ, (x/(6000/worldW)), -(y/(6000/worldH)), tocolor(255, 255, 255, 255)) end dxSetRenderTarget() -- dxDrawRectangle((10)*xFactor, sy-((200+10))*yFactor, (300)*xFactor, (200)*yFactor, tocolor(0, 0, 0, 175)) dxDrawImage((10+5)*xFactor, sy-((200+5))*yFactor, (300-10)*xFactor, (175)*yFactor, rt, 0, 0, 0, tocolor(255, 255, 255, 255)) (this not the full code)
  22. Preciso de ajuda nesse script. Ele mostra o blip mostrando o local da base, so aparece quem esta no "Group" so que nao da certo, nao sei o que estou fazendo de errado BaseBlibs = {} setTimer(function() groupNames = getElementData(source,"Group") if BaseBlibs[player] then for i,blip in pairs(BaseBlibs[player])do destroyElement(blip) end BaseBlibs[player] = false end if not BaseBlibs[player] then BaseBlibs[player] = {} end local ownerAccount = getAccountName(getPlayerAccount(source)) local baseName = getBaseNameFromOwnerAccount(ownerAccount) local baseExpired,day,month,year,daysRemaining,maxautos,maxaircrafts = isBaseExpired(baseName) local colshapeb = getBaseColshape(baseName) if not groupNames and isElement(groupNames) then return end BaseBlibs = {} if colshapeb and isElement(colshapeb) then local players = getElementsWithinColShape(colshapeb,"player") for i, player in pairs(players) do if groupNames == getElementData(player,"Group") then BaseBlibs = createBlipAttachedTo(baseCol,52,2,255,255,255,255,0,99999,player) table.insert(blipss[player],blipp) end end end end,1000,0)
  23. So, i want to create a dead system, and i need 1 thing, and that is: cancelling the camera shake effect when the player dies.. And i want to reanimate the player when i use SetElementHealth(...) I already tried setCameraTarget() but not worked.. Thanks in advance.
  24. (sry for my bad english) Hi everyone! In my script when I write the command into game chatbox (/makeveh "myID" "CarModelName" "Faction" "R, G, B") i get this Error message to server console: ERROR: mta_vehicle\sourceS.lua:263: attempt to compare boolean with number. The code is: addCommandHandler("makeveh", function(player, _, ownerID, modelID, faction, r, g, b) if getElementData(player, "acc:admin") >= 7 then <--LINE 263 if not modelID or not tonumber(ownerID) then outputChatBox(rovid .. " /makeveh [Név/ID] [Model] [Frakció] [R] [G] ", player, 0, 0, 0, true) return end target, targetName = exports.mta_main:findPlayer(player, ownerID) if not target then return else ownerID = getElementData(target, "char:id") end if not tonumber(faction) then faction = 0 end if not tonumber(r) then r = 0 end if not tonumber(g) then g = 0 end if not tonumber(b) then b = 0 end r = tonumber(r) g = tonumber(g) b = tonumber(b) local vehname = tonumber(modelID) if not vehname then vehname = getVehicleModelFromName(modelID) end if not vehname then outputChatBox(rovid .. " Hibás jármű név vagy id", player, 0, 0, 0, true) return end local x, y, z = getElementPosition(target) local insertQuery = dbQuery(con, "INSERT INTO vehicle SET model=?, owner=?, pos=?, color=?, faction=?, rendszam=?", vehname, ownerID, toJSON({x,y,z}), toJSON({r,g,b}), faction, "modify") local insertResult, _, insertID = dbPoll(insertQuery, -1) if insertResult then addVehicle(ownerID, vehname, x, y, z, insertID, r, g, b, faction) exports.mta_item:giveItem(target, 34, insertID, 1, 0) exports.mta_admin:outputDeveloperMessage("#7cc576"..player:getData("char:anick").." #fffffflétrehozott egy járművet (ID: "..insertID.." Tulaj: "..targetName:gsub("_", " ")..")") dbFree(insertQuery) end end end)
  25. .AdventureTime Yo! Chciałbym wam przedstawić projekt .AdventureTime Co gdzie i jak? więc tak na początek respimy się na spawnie waluta na serwerze to PLN zarobki małe ceny aut dostosowane do zarobków więc gra szybko nam się nie znudzi. Gra toczy się w San Fierro miasta pilnują frakcje SFPD,SFFD,SFMC oraz TSF. Co do slotów są one dynamiczne narazie do 25 graczy z czasem i przyrostem graczy zostaną powiększone. Po za SF/LV/LS Tych głownych miast zostało dodane nowe maisto VW które znajduje się na oceanie jedyne dostanie się tam liniami lotniczymi lub własną łodzią przeznaczone tylko dla kont PREMIUM$. Frakcje na serwerze: Tak jak wyżej wspomniałem SFPD - San Fierro Police Departament SFFD - San Fierro Fire Departament SFMC - San Fierro Medical Center TSF - Transprot San Fierro ================== W planach ================== SFAT - San Fierro Air Transport Kilka Zdjęć z gry : Baza taxi,psp Postój dla karetek oraz nosze trójkąt grafika ich zostanie zmieniona Prywatny parking dla SAPD Komis auta na zamówienie Urząd Przechowywalnia z pojazdem UNIKAT Zmienianym co tydzień Wkrótce dodamy możliwość kupna tego pojazdu Tor prawo jazdy dla Kat. A,B Spawn Interior Urzędu Wkrótce więcej ss typu ScoreBoard/hud/licznik itp ten HUD który teraz widzicie będzie zmieniony na lepszy ładniejszy. Pozostałe INFORMACJE: Nazwa : .AdventureTime Sloty : 25 (dynamiczne) ip : mtasa://188.68.249.251:20528 Ts3 : W trakcie Prac Forum : http://adventuretime.y0.pl (narazie darmowe planujemy przejść na płatne ) START SERWERA 14.07.17 GODZINA 16:30 Administracja : Właściciel : SamsungPLL - Główny Założyciel skrypty, mała grafika, Opieka in-game Rcon : Pelikan* - Maper Serwera, Opiekun Forum/ts, Opieka in-game Administrator Moderator PS : Szukam dobrego grafika i sponsora wynagrodzenie Ranga i konto premium
×
×
  • Create New...