Search the Community

Showing results for tags 'mta'.



More search options

  • 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
    • Open Source Contributors
    • Suggestions
  • General MTA
    • News
    • Media
    • Site/Forum/IRC/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • community.mtasa.com
    • Scripting
    • Maps
    • Resources
    • Other Creations
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash
  • Private Bugtracker

Found 266 results

  1. PHP SDK

    Hello guys. I'm trying to use the PHP SDK from MTA: SA on my site but I can not. What I want to do is get the basic information from a server as a number of players online, whether it is password protected, or no password, whether online or offline. I just can not find any documentation to help me. Can someone help me?
  2. Code: Website: http://www.nfssa.com IP: 178.33.54.30:20256 Slots: 350 Discord: https://discord.gg/QA7sXce A Need For Speed: San Andreas valójában NFS az MTA-ban. Ez egy olyan játékmód ami a NFS UG/UG2 alapján készült. Ez itt a garázsod. Erről a helyről tudsz a versenyekre jelentkezni,szabad módban bejárhatod a várost,tuningolhatod/testreszabhatod az autódat,talákozhatsz a barátaiddal illetve a többi játékossal, lecserélheted a kocsidat bármelyikre amelyiket már megvetted,nézd meg a statisztikádat és a helyezésedet és más emberek/barátaid helyézéseit,nézd meg a kocsid jelenlegi állását,kihívásaidat/napi kihívásaidat. A Need For Speed: San Andreas-ban 5 féle verseny található: A Sprint versenyek egyszerü egykörös versenyek ahol ponttól pontig tart a verseny. Az győz aki elsőnek halad át a célvonalon A Circuit versenyek hasonlóak a Sprint versenyekhez csak több körösek A Drift rendszer a saját script rendszerünk szerint működik. Teljesen új irányítás,pontszorzó és kritikus zónák. A Drag rendszer teljesen új. Ugyan olyan mint a UG/UG2-ben. Drag-ban manuális a sebesség váltás a + al fel illetve a - al le tudsz váltani. A Drag lényege, hogy a legjobb pillanatban váltsunk. Válthatsz: korán,jókor,tökéletesen,későn. Törekedj arra hogy mindig a lehetőleg legjobban válts az az tökéletesen. Street-X versenyek rövid versenyek Drift pályákon ahol nem használhatsz nitrót. A Szabad módban tuningolhatod/testreszabhatod az autódat,talákozhatsz a barátaiddal illetve a többi játékossal. 5 különböző tuning bolt/műhely van: kaszni bolt,festő műhely,tuning műhely,kiegészítő bolt,autó kereskedés. Kaszni Bolt Itt testreszabhatod a kocsid kaszniját. Leválthatod a lökhárítód,tehetsz rá spoilert,leválthatod a felniket. Hogy feloldj dolgokat mint például a lökhárítót,testcsomagokat,spoilereket szükséged lesz Body pontokra. Ezeket a pontokat véletlenszerűen kapsz versenyek után. Festő Műhely Itt testreszabhatod a kocsid kinézetét. Megváltoztathatod a kocsid színét,felnik színét,rakhatsz rá matricákat illetve fóliákat (Ezek mind ingyenesek). Tuning Bolt Itt növelheted a kocsid teljesítményét. 3 különböző féle tuningcsomag van: motor, kezelhetőség, gyorsulás. Minden csomagnak 3 szintje van: Utcai, Verseny, Profi. Akkor növelheted a teljesítményed miután elég reputation-t az az Hírnév Pontot szereztél (az első utcai csomaghoz nem szükséges Hírnév). Kiegészítő Bolt Itt tehetsz a kocsidra neont, leváthatod a lámpáid színét, ablakok színét illetve a sebességmérőd és annak színét. Autó Kereskedés Itt megveheted az alap illetve a Hírnév pontból feloldott kocsikat. Úgy mehetsz vissza a garázsodba ha elmész a Garázshoz . Ha megakarod változtatni a kezdőhelyedet elmehetsz egy másik Garázshoz és legközelebb onnan fogsz indulni. Az Előrehaladás a reputation-ön az az a Hírnévpontokon alapszik. Hírnévpontokat bármilyen versenyben szerezhetsz. Következő Autó ez a Sáv mutatja, hogy mennyi hírnév kell még, hogy felold az adott kocsit. Sáv belső ez a sáv azt mutatja hogy mennyi hírnév kell hogy felold a következő teljesítmény csomagot. Kétféle különböző feladat tipus létezik: GGlobális és Napi. Globális a feladatok egyszerűek amiket a versenyek során illetve szabad módban teljesíthetsz. Minden globális feladatért Task point az az Feladat Pont jár. Napi ezek a feladatok naponta csak egyszer teljesíthetőek valamint jutalmul Vinyl Pontot az az Fólia Pontot kapsz. Jutalmak itt feloldhatsz dolgokat Feladat Pont és Fólia Pont ból. Minden Feladat Pont beváltható a következőkre: Kártya,2 Kaszni Pont,Véletlenszerű Sebességmérő,1000$,vagy egy Fóliára. Mi van a kártyákkal? Nos a kártyák különböző dolgokat oldanak fel minden autódra: Festés Tipusokat: Metál,Matt. 6 Féle felnit, fényes és villogó neonokat, sötét és gyöngyház ablakokat, fényes lámpákat, egyéb fóliákat, tető nyílásokat vagy carbon részeket.Fólia Pontok Beválthatod őket Fóliákra. Az autók különböző osztályokra vannak beosztva. Jelenleg 6 osztály van: E, D, C, B, V és U. Ezek az autók találhatóak az osztályokban: E: Intruder, Bravura, Primo, Manana, Washington D: Vincent, Emperor, Previon, Cadrona, Fortune C: Sentinel, Uranus, Blista Compact, Euros, Flash B: ZR-130, Sultan, Jester, Elegy V: Hermes, Broadway, Hustler U: Futo, Buggy, Monroe, Mamba E-től V-ig Osztály Hírnévpontokkal elérhető. Az U Osztály csak különleges módon érhető el mégozzá autórészek gyűjtésével. A szerveren egy különleges feloldó rendszer van az U Osztály autóihoz. Hogy felold őket meg kell találnod 10 alkatrészt hogy felold ezeket az autókat. 50 különböző lelőhelyük van minden egyes autónak ami minden játékosnak teljesen véletlenszerű. Megtalálhatod az alkatrészeket a térképen amit a Különleges Autók fülön találsz és bizonyos kijelőlt pontokon vannak. Előrehaladás és Jutalmak. Web felhasználói panel egy teljesen új funkció. hozzákötheted a játékbéli accountodat/fiókodat a weboldalon lévő accountoddal/fiókkal hogy hozzájuss néhány exta tartalomhoz. megnézheted a versenyzőid statisztikáit,barátaid statisztikáit és a ranksorolásokat is. A játékbéli garázsban feltöltheted a kocsid fotóját amit megnézhetsz később a veboldalon. valamint megnézheted más emberek garázsait,megnézheted az autóikat illetve az előrehaladásukat is. Egy új funkció bemutatása - Kezdő Bónusz. ez a funkció segíteni fogja az új játékosokat Hírnévvel és Pénzel($). Valamint Csökkentettük a szükséges Hívrnévpontot minden autónál, hogy könnyebben elérhetőek legyenek mindenkinek hogy ne keljen túlontúl sokat játszania érte. Hogy a szervert életbe tudjuk tartani létrehoztunk egy szolgáltatást a Prémium Accountot. Jelenleg 2 módja van hogy Prémium Accountot vásárolj: Megveheted SMS-ben illetve Paypal-on keresztül,vagy megkaphatod mint jutalom szerver eseményeken/Event-eken amiket mi szervezünk . A Prémiumos felhasználók ezeket a bónuszokat élvezhetik: Hozzáadhatod a saját zene számaidat a lejátszási listához Bármennyi autód lehet a garázsodban Bármennyi versenyzőt kreálhatsz Segítség az autódarabok gyűjtésében a különleges autókhoz (U osztály) Testreszabható név szín Megvátoztathatod a versenyződ nevét illetve kinézetét (7 naponta 1x) +6 Fólia réteg(több matricát illetve fóliát tehetsz az autódra) +10% Hírnévpont(RP) és Pénz bónusz a versenyek után Mikor eladod a kocsidat a kocsi értékének 70% a helyett 85% ot kapsz Privát üzenet beállítások (spammerek blokkolása stb.) Találkozzunk Need For Speed: San Andreas..on Ezek a leírások több mint egy évesek,azóta rengeteget fejlődött a szerver,bármi kérdésetek lenne írjatok nyugodtan.
  3. [Rel] Lunix Phone Green [SmartPhone]

    Hello. Scince one year I want to publish this smartphone here. There is awesome smart with some base functions, what appeared in previous version. But customizing in settings now removed to make system style more interesting and minimalistic. Also removed lockscreen, because it was useless. What can you do basically with this phone? - Chatting with another players on the server, and send them stickers - Listen music by URL or your local, and switch timeline of the track (progressbar clickable) - Calculate something. Now calculator has history of calculations. - With application "Passport" you can see some information about you. Created for RP modes, but I dont know nothing about RP, and created it just for fun. - In settings you can change desktop image, change System Language [NEW], and read information about developers. - When phone updating, admins can check for updates phone on the air in system settings. Its available in "About" menu, on bottom of app - green text with current version as build. Of course, this resource has API for developers. With it you can: - Create your own applications for phone - Edit some phone settings - Add your own stickers for messenger - Add your own desktop images (276x445px) - Add your own system translations. In file "language.lua" you can find example and there you can add in table your prefered languages. - Manage notifications and etc. There are some pictures of system: Download: GitHub I would like to apologize about my code. Sometimes this is not readable, because it was written about year ago, when I was at school . I wont to optimize this working code, bcs I'm too lazy New Video: Demo (2016): Functions, what you can use to modify your system:
  4. I need a scripter for my Roleplay server / server scripts %85 finished just have some small bugs. I want staff and scripter.Req: - Must know scripting.Contact : Forum: www.ngcmta.comSkype : candasnetwork Facebook: www.facebook.com/candas67
  5. Just a question

    Hello , I have a question . How to get this coordinates in mta san andreas ? - mx, my, mz, tarx, tary, tarz , rot
  6. 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.
  7. when i driveing the car, then the exhaust fire. where can i download this script?
  8. 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?
  9. 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 -
  10. 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...) :).
  11. 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.
  12. Hello everybody! I want to offer you a new language for writing scripts for MTA: SA. By the tags in the topic, you've already seen that it's Puthon 3. Many will say that Python 3 is bad for scripting, but it's not! It is similar to lua but has a wider OOP, and has the ability to connect modules. In the Internet very little material on lua, it is available but only in English, and what to do to the Russian community? The Russian segment in the MTA is very large, and lua materials are very small. Of course, the small amount of materials on the Internet for lua is not the reason for switching to Python 3. I understand that I will have to rewrite all functions from scratch, but this can prolong the life of the MTA. Python 3 is not one language that can be used as scripting under MTA: SA, there is also a wonderful language JavaScript v5. Many multiplayer use it as a language for writing scripts. This is just my opinion. I just suggested that the idea is not bad. Decide for you, dear multiplayer developers. Oh, sorry for my bad English!
  13. 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)
  14. 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
  15. 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?
  16. ___________________________________________ 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
  17. Presiso de um Scripter Para MTA Urgente se alguem estiver interessado ai me contate via PM vlw ai
  18. How i can check if is a admin?

    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 )
  19. Somos una empresa que desde 2009 esta brindando su servicios a la comunidad Gamer. Empezamos de a poco como toda empresa y fuimos creciendo a medida que la gente iba confiando en nosotros. Hoy en día contamos con grandes variedades de servicios para nuestros clientes desde GameHostings, Dedicados, Servicios web y hasta Licencias de Paneles, emuladores, etc. Caos Host ofrece los siguientes servicios Web Hosting (todos los precios son mensuales) Planes: Deluxe (El mas basico) $3.95USD Profesional $5.25USD Enterprise $6.49USD Gold $11.95USD Game Hostings (todos los precios son mensuales) - MTA Desde $1.50USD (MYSQL/Anti DDOS/Panel TC Admin 2.0) - SAMP Desde $1.50USD (MYSQL/Anti DDOS/Panel TC Admin 2.0) - Minecraft desde $1.50USD (Panel TC Admin 2.0) - Minecraft desde $2.50USD (Panel Multicraft) - Rust desde $1.50USD (Panel TC Admin 2.0) - Garry's Mod desde $1.50USD (Panel TC Admin 2.0/Steam Update) - Counter Strike todas las Versiones(CSGO,1.6,Source,ConditionZero) desde $1.50USD (Panel TC Admin 2.0/Steam Update) - Arma 3 desde $1.50USD (Panel TC Admin 2.0/Steam Update) - Day Of Defeat desde $1.50USD (Panel TC Admin 2.0/Steam Update) - Descubrí y Encontra Tu Servicio Ideal en CaosHost.com - Dedicados - VPS - Reseller Hosting - Lisencias - Radio ShoutCast - Dominios Métodos De Pago Para Todos Los Paises * Paypal * Western Union *Rapipago/Pagofacil *PaymentWall *Oxxo y Bancomer Mexico *Transf. Bancaria Website Oficial: www.caoshost.com Fanpage Oficial: https://www.facebook.com/profile.php?id=166099326772516&ref=br_rs
  20. 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?
  21. 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?
  22. Nesesito Script Roleplay

    Alguien me pasaría script De servidores Roleplay? es para abrir un server RP
  23. 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..
  24. 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!
  25. 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.