Search the Community

Showing results for tags 'server'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


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

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



About Me





Found 209 results

  1. Im working on a roleplay server and I always test the resources in local host server, however I have just noticed today that the freshly added resources are not even running on the server, only the older ones. Ive tried to start them with command but the server just cant find 'em while they are clearly there.. Currently there are maybe 20 resources running on the server.. The only thing what came to my mind was maybe there is a limitation of usable resorces for local servers..
  2. Ai Galera da uma força no meu 1 server de MTA ! da uma passadinha la e de aquela moral PCC -ON | CV- ON | EB- ON | CHOQUE- ON Sistema de Voz ''Z''
  3. Hello! Weeks ago I got some MTA:SA server. First of all - the name is Polish - because it was meant to be Polish server which would be Freeroam/Play. Now - changed it to RACE - and here it is! This server is a classic race server [race with checkpoints] [not DM/DD]. There are alot of maps from racing community members/self-made maps. Scripts are from most racing servers - it contain for example: - carhide - carfade - race_nos2 [you can type /nos nfs or /nos hybrid to change your nitro] and lot of other things to come! There are also alot of maps [not only maps from the current MTA release, and not downloaded maps from community.mtasa site] which you can play, make toptimes and other things! If you have a team, we can add it! Tell the admins! We will also have some events. As i'm known in the racing community, the upcoming event is an Enduro Event - on 10.01.2020. Enduro map - is a long map, mainly like from 100-1000 cp's or 100-300 cp's [you know, long races]. The goal is, to like in normal race, win - but you can get special prize for it - moderator, or other thing [we are still thinking]. Pro racers will also attend here, it has been announced on some of their team Discord channels. This server doesen't have lot of scripts. Just because it's very, very similar to popular racing servers nowadays. It's for doing racing Funwars/Clanwars also! You might learn some PRO racing, before this advertisement here, some pros are already playing on the server, so you can learn racing tips for them. The server now [before the advertisement] is active.e We had avearge of 5 players [without advertisement here] on the server - so hope it gets bigger! Join in! mtasa:// Thank you, and see you there!
  4. All Credits Goes to First developer team in PTPM This is the Protect the Prime Minister server created earlier by the ptpm open source project. What is the PTPM Protect the Prime Minister(PTPM) is a team based gamemode that promotes teamwork and strategy over the conventional deathmatch tactics. It was first created in SA-MP in mid 2006 and ran as a successful server for several years, but later migrated and was reimplemented in the more powerful Multi Theft Auto engine. The aim for the Good Guys is to protect the (PM) for the duration of the round. The aim for the Bad Guysis to kill the PM before the end of the round. General PTPM gameplay can be thought of as an open world attack and defend. Often, the Good Guys will choose a location in the map to defend and the Bad Guys will assault it and attempt to kill the protected Prime Minister. If the PM leaves the hideout and heads out into the roads, the Bad Guys will hunt him down while the Good Guys attempt to keep them away. Rounds usually last for 15 minutes, depending on the map. You can see the time left on the timer in the top center of the screen. The round will end if one of the following happens: The round timer reaches 0:00 Prime Minister is Killed Once the round is over you will be able to vote on the next map, and after a short transition period the new map will begin. How to play The game has several character classes Prime Minister Bodyguards Police Terrorists Psychopaths All classes in the same team spawn in the same "base". Within each team the different classes have different weapons, and some classes have special "abilities" that will help their teammates. You can chat privately with your teammates by pressing Maps There are many maps in the PTPM mode, each with different locations and features, requiring tactics to be varied depending on which map is being played. Some are very close quarters and play out like a traditional TDM mode, while others are larger open worlds with more options for strategies. Within the map you are blocked from going too far away by the map boundaries, shown as red lines on the F11 map or on the radar Objectives Some maps also have a series of objectives for the PM to complete, marked on the map by red blips. In these maps, rather than simply staying alive the PM must complete all the objectives within the round time or he will lose. The current objective will be shown on the radar as a red blip and announced on the screen. Unlike tasks, no information about the time needed to complete the objective will be shown to the Terrorists so they must act fast to stop the PM. once an objective is completed, an additional3 minutes will be added to the round timer and the next objective will activate. Pickups Most maps will have weapon and armour pickups hidden around the world. These are often different to the weapons that you spawn with, and allow you to gain an advantage that you would not otherwise have. Some weapons are good for specific purposes and will help to counter well coordinated enemies. For example, Grenades are good against large groups of players, especially inside interior buildings. Sniper riflesare good against a PM that is well defended in a hideout, that cannot be assaulted easily in the normal way. ome maps contain Heavy Weapon pickups (minigun, rocket launcher) as well as regular weapons. These are usually heavily limited by long respawn timers and well hidden. They will offer a significant advantage to anyone that can find them. Safe Zones Some maps have Safe Zones represented by blue blips on the map and blue markers in the world. Dangerous vehicles cannot enter the safe zone (e.g. Hydras, Tanks), so they can be used to keep away from their powerful weapons. However, safe zones are hard to defend on the ground and will act as a focus point for Terrorist attacks. Teams Prime minister - The Prime Minister is the primary class in PTPM. He is the VIP that all the other Good Guys (Bodyguards and Police) must protect, and the Bad Guys (Terrorists) must kill. He has very little firepower and relies on the protection of his loyal team. To play the Prime Minister well you will need a strong knowledge of the map, knowing good hideout locations and how best to escape and avoid Terrorist attacks. You will need to be a good communicator, and you should instruct your team in where you will be going, what you will be doing and how they can best protect you. Body Guards - his is the primary protection force for the Prime Minister. Bodyguards should stick close to the Prime Minister wherever he goes, riding in the same car if possible, and be willing to put themselves in danger to protect the Prime Minister's life. They are not well suited for hunting down Terrorists, and will often have a less substantial weapon loadout. Police - This is the primary attack force for the Prime Minister. The Police are more heavily armed than the Bodyguards and should assault Terrorists as they come close, chasing them down and ensuring they do not make it through to the Prime Minister. If the Prime Minister has laid out instructions for the round, such as defending a particular hideout, the Police are the ones that should act on those instructions. Terrorist - The Terrorists have only a single goal: kill the Prime Minister before the time runs out. They should work closely with the other terrorists to co-ordinate their attacks to achieve maximum impact. If the Prime Minister is defending a location on the map, Terrorists should think carefully about how best to assault. Often, hideouts used by the PM will have back entrances or weak spots that can be exploited if the Good Guys are distracted. If they are defending well, Terrorists should group together and assault as a team to ensure they can break through the defensive lines. Phychopath - Psychopaths have no team and no loyalty. They will attack anyone. Beware Clases Each team within PTPM has multiple classes (characters) that you can choose from. Each class will usually have a unique weapon loadout and a unique skin, while some will additionally have unique abilities. Medics - Most maps have a single Medic class per team, with special abilities allowing them to heal other players, and regenerate their own health. Usually they will spawn with less weaponry than standard classes, so they will need extra protection from their team. Medics have a slightly paler colour so you can identify them on the radar and in the chat.To heal another player walk up to them and type /heal This will transfer some health from the medic onto the target player. Medics will automatically passively heal nearby teammates that are hurt at a rate of 1hp/second. While inside an Ambulance, the passive healing rate is increased to 2hp/second for anybody else inside or very close by. When a medic has lost some health, they will slowly regenerate at a rate of 2hp/second. By coordinating with another medic and healing each other, medics can regenerate all their health very quickly. Maps There are many maps in the PTPM mode, each with different locations and features, requiring tactics to be varied depending on which map is being played. Each map is designed to have a unique feature, distinct from all the others. Current Map List Los Santos Los Santos with Hydras San Fierro Las Venturas Las Venturas with Objectives Area 51 Countryside Desert Factory Mt. Chiliad Bayside Air Assault Join the server IP- Teasmepak 3 - We Are eUNLOCK TEAM
  5. Eu Gostaria de saber como faço a compra da TopList para meu servidor, no site da TopList diz que tem 313 servidores na minha frente, eu tenho que esperar a minha vez para chegar um email para mim efetuar a compra?
  6. Hey guys! Is there any method to make a free mta server? If you can help me, comment down!
  7. então pessoal tento editar a acl do server até consigo porém logo em seguida quando atualizo o filezilla ele some e só consigo ficar com o nome da minha host no console, alguém pode me ajudar por favor?
  8. ♦ Server Name -> → uV|~ [ DM - Deathmatch ] 7/24 International Server. ♣ Server IP ♦ → mtasa:// ♦ ♣ Admins → uV|~ zfR* → uV|~ Arif|G| → S O O N ♦
  9. [Merkez] [/ img] → uV | ~ [DM - Deathmatch] 7/24 Uluslararası Sunucu. ♣ [İmg] [/ img] → mtasa: // 22743 ♦ [İmg] [/ img] → uV | ~ zfR * → uV | ~ Arif | G | [İmg] [/ img] → Farkı bizimle yaşayın [İmg] [/ img] → Çok Yakında ♦ [İmg] [/ img] → Kaliteli [DM] Mapler İle Sizlerleyiz .. [İmg] [/ img] [İmg] [/ img]
  10. ENGLISH: Hello, I need scripters to help me develop the servers in my community, there are 4 servers that will be hosted on December 25, for that reason I need a scripter to help me with the servers. I hope to have your help! SPANISH: Hola, necesito scripters que me ayuden a desarrollar los servidores de mi comunidad, son 4 servidores que se hostearan el 25 de diciembre, por esa razon es que necesito scripter que me ayuden con los servidores. Espero contar con su ayuda, gracias! Help Plis!
  11. No errors / warnings in debugscript 3... then what wrong in this script? Client: requestBrowserDomains({""}) local browser = createBrowser( 1, 1, false ) local currentSound = {} addEvent( 'Play' , true ) addEventHandler( 'Play' , root , function( link ) local vehicle = getPedOccupiedVehicle ( source ) local x, y, z = getElementPosition(vehicle) currentSound[source] = playSound3D( link, x, y, z ) attachElements(currentSound[source],vehicle) setSoundMaxDistance(currentSound[source],30) setSoundVolume(currentSound[source],50) end ) function fetch(_,url) if url and url ~= "" then fetchRemote(""..url, callback) end end addCommandHandler("p",fetch) function callback(data, error) if (error ~= 0) then return outputChatBox(error) end if (data == "ERROR") then return outputChatBox("data error") end local data = fromJSON("[""]") if (data) then outputChatBox("Title: " outputChatBox("Length: " outputChatBox("Link: " loadBrowserURL( browser, ) end end addEventHandler( "onClientBrowserNavigate", browser, function( link ) if not link:find("") then triggerServerEvent( 'play' , localPlayer , link ) -- trigger the event when the script actially gets the playable link! end end ) server: addEvent( 'play' , true ) addEventHandler( 'play' , root , function( link ) triggerClientEvent( root , 'Play' , client , link ) end )
  12. Olá Pessoal, como fazer para clicar em um veículo e receber no chat uma localização da roda dele? Já tenho a ideia de como usar o getVehicleComponentPosition (algo do lado do cliente), mas como identificar ou veicular o que estou tentando ver no OnElementClicked é do lado Server? function rodadireita (source) local vehicle = --Queria por aqui o veiculo que estou clicando x, y, z = getVehicleComponentPosition ( vehicle , "wheel_rf_dummy", "world") outputChatBox ( "Cordenadas:"..x..", "..y..", "..z, 255, 255, 255, true ) end
  13. Tem como usar o setVehicleComponentScale para aumentar peças do veiculo para todos os players?Tem que usar triggerClientEvent?Tentei usar mas n consegui,n sei usar essa função
  14. Estou querendo fazer um script que quando clico no carro,me mostre as coordenadas da roda,mas a função getVehicleComponentPosition é somente do lado client e não sei jogar elas pro lado serve
  15. ARCS ROLEPLAY Öncelikle Merhabalar, Arcs RolePlay Projesi 2017 Yılında Başlanmış Olup Hazırlanması 2 Sene Sürmüştür. Nihayet Betasını (V0.1) 12.05.2019 Tarihinde Çıkarmayı Başardık. Arcs RolePlay Projesinde Hedeflerimiz Oyuncularımız İle Beraber,Haksızlık Söz Konusu Olmadan Devam Etmektir. Bu Projenin Geliştirilmesini Oyuncularımız Ve Uzman Ekibimiz İle Beraber Yürüterek Daha İyi Yerlere Geleceğini Umuyoruz, 7/24 Aktif Admin-GM İle Hizmetiniz De Olacığız Ve Siz İle Büyüyeceğiz. ArcsRoleplay Diğer Server'lardan Yanısıra Kendi Başına Bir Oyun Haline Geldi Grafik , Araç , Harita Modlarımız Optimizasyon Yaptığımız İçin Fps'ininz Diğer Serverlardan Daha Yüksek de Tutulacaktır Bu Sayede RolePlay'in Tadını Müthiş Ötesi Grafiklerimiz İle Deneyimleyeceksiniz GTA 5 GRAFİKLERİNE KAFA ATMAYA HAZIRMISINIZ Server Açılış Tarihimiz 6.6.2019 Tarihinde Gerçekleşecektir Açılışımıza Özel Vip Hediyelerimiz Olacaktır Ve Giriş 100.000 TL İle Başlayacaksınız Admin Ve GM Olacak Ekip Arkadaşları Arıyoruz Bu Ekipde Bende Olmak İsterim Veya Bende Sizi Takip Ediyim Gelişmelerinizi Diyen Var İse Discord Sunucumuza Bekleriz. #ARCSRPGTEAM İletişim: <==Discord=> <=Facebook=> Sunucu'muzdan Kareler Resimlerin Çoğaltılması Kullanılması Kesinlikle Yasaktır. © Copyright 2019 Resimler'de Herhangi Bir Efekt Yoktur Oyun İçinden Çekilen Orjinal Resimlerdir.
  16. estou querendo colocar uns 10 lugares diferentes para spawnar o carro addEvent("WarpMyVehicle", true) addEventHandler("WarpMyVehicle", root, function(id) if not isPedInVehicle (source) then if getElementInterior(source) == 0 then if getPlayerMoney(source) >= tonumber(3500) then local vehicle = getVehicleByID(id) if isElement(vehicle) then takePlayerMoney ( source, 3500 ) local x, y, z = getElementPosition(source) setElementPosition(vehicle, 1649.334, -1079.972, 23.898) outputMessage ("#c1c1c1O seu veiculo #00FF66"..(customCarNames[getElementModel(vehicle)] or getVehicleNameFromModel(getElementModel(vehicle))).." #c1c1c1foi entregue a você.", source, 38, 122, 216, true) else outputMessage("#c1c1c1O seu veiculo não está spawnado.", source, 38, 122, 216, true) end else outputMessage("#c1c1c1Você não tem os meios de se teletransportar para o veiculo.", source, 38, 122, 216, true) end else outputMessage("#c1c1c1Você só poderá mudar de veiculo se sair do atual.", source, 38, 122, 216, true) end else outputMessage("#c1c1c1Nós não podemos dirigir seu veiculo. Por favor, sair do outro veiculo.", source, 38, 122, 216, true) end end)
  17. Boa noite, Estou iniciando um servidor e quero mudar isso, vejo que na tela de busca de outros servidores da para alterar o nome "play" que aparece em modo de jogo do lado direito, para colocar as Siglas do server por exemplo. Não é o modo de jogo dentro do server, é o que aparece ao procurar um servidor! Teriam como me ajudar?
  18. Gostaria de substituir o som de ignição do motor, já fiz um script em que o player consegue ligar de desligar o motor do veículo apertando determinado botão, mas gostaria de colocar um som para que todos aqueles que estiverem perto do carro do player consigam escutar o som da partida. Segue o link de download do som abaixo: Não sei qual código utilizar, se puderem me ajudar agradeço!
  19. Quero criar uma função com que eu resgate o veiculo, preciso de uma função que ao clicar o carro sera teletransportado para um local definido só fiz o local aonde irá clicar: Button_VS_Warp_s = guiCreateStaticImage(381, 98, 166, 25, "images/button_standard.png", false, Window_VS) Button_VS_Warp_o = guiCreateStaticImage(381, 98, 166, 25, "images/button_mouse.png", false, Window_VS) Button_VS_Warp = guiCreateLabel(381, 98, 166, 25, "Resgatar", false, Window_VS) guiSetFont(Button_VS_Warp, "default-bold-small") guiLabelSetColor(Button_VS_Warp, 255, 255, 255) guiLabelSetVerticalAlign(Button_VS_Warp, "center") guiLabelSetHorizontalAlign(Button_VS_Warp, "center") aqui o carro trás até mim, porem não quero que irá até o player elseif source == Button_VS_Warp then if not isInColExport () then triggerServerEvent("WarpMyVehicle", localPlayer, ID)
  20. SkinPickup = createPickup(1481.1931152344,-1758.419921875,17.53125, 3, 1275, 000) MarkerTeste = createMarker(1481.1931152344,-1758.419921875,16.53125, "cylinder", 1.5, 255,255,255,50) setElementVisibleTo ( MarkerTeste, root, false ) function MarkerVisible (source) local account = getPlayerAccount(source) if getAccountData(account, "FirstTime") then -- aconta true if not isElementVisibleTo ( MarkerTeste, source ) then -- ñ está visível setElementVisibleTo ( MarkerTeste, source, true ) else setElementVisibleTo(MarkerTeste, source, false) end end end addEventHandler("onResourceStart", root, MarkerVisible) Gostaria que apenas aqueles players que estão com a variável, "getAccountData(account, "FirstTime") then" (line7) possam ver o marker e o pickup. Não sei o que fiz de errado, alguém pode me ajudar, por favor ? Desde já agradeço!
  21. não consigo remover isso do chat quando alguem morre!
  22. estou tentando colocar uma função para que o carro vá para um local em 'Resgatar' Button_VS_Warp_s = guiCreateStaticImage(381, 98, 166, 25, "images/button_standard.png", false, Window_VS) Button_VS_Warp_o = guiCreateStaticImage(381, 98, 166, 25, "images/button_mouse.png", false, Window_VS) Button_VS_Warp = guiCreateLabel(381, 98, 166, 25, "Resgatar", false, Window_VS) guiSetFont(Button_VS_Warp, "default-bold-small") guiLabelSetColor(Button_VS_Warp, 255, 255, 255) guiLabelSetVerticalAlign(Button_VS_Warp, "center") guiLabelSetHorizontalAlign(Button_VS_Warp, "center") -- guiSetFont(Button_VS_Warp_info, "default-bold-small") -- guiLabelSetColor(Button_VS_Warp_info, 255, 255, 255) -- guiLabelSetVerticalAlign(Button_VS_Warp_info, "center") -- guiLabelSetHorizontalAlign(Button_VS_Warp_info, "center") --Button_VS_Warp_info Button_VS_bp_s = guiCreateStaticImage(381, 133, 166, 25, "images/button_standard.png", false, Window_VS) Button_VS_bp_o = guiCreateStaticImage(381, 133, 166, 25, "images/button_mouse.png", false, Window_VS) Button_VS_bp = guiCreateLabel(381, 133, 166, 25, "Localizar / Desmarcar", false, Window_VS) guiSetFont(Button_VS_bp, "default-bold-small") guiLabelSetColor(Button_VS_bp, 255, 255, 255) guiLabelSetVerticalAlign(Button_VS_bp, "center") guiLabelSetHorizontalAlign(Button_VS_bp, "center") -- guiSetFont(Button_VS_Fix_info, "default-bold-small") -- guiLabelSetColor(Button_VS_Fix_info, 255, 255, 255) -- guiLabelSetVerticalAlign(Button_VS_Fix_info, "center") -- guiLabelSetHorizontalAlign(Button_VS_Fix_info, "center") Button_VS_lk_s = guiCreateStaticImage(381, 168, 166, 25, "images/button_standard.png", false, Window_VS) Button_VS_lk_o = guiCreateStaticImage(381, 168, 166, 25, "images/button_mouse.png", false, Window_VS) Button_VS_lk = guiCreateLabel(381, 168, 166, 25, "Aberto - Fechado", false, Window_VS) guiSetFont(Button_VS_lk, "default-bold-small") guiLabelSetColor(Button_VS_lk, 255, 255, 255) guiLabelSetVerticalAlign(Button_VS_lk, "center") guiLabelSetHorizontalAlign(Button_VS_lk, "center") Button_VS_sl_s = guiCreateStaticImage(381, 203, 166, 25, "images/button_standard.png", false, Window_VS) Button_VS_sl_o = guiCreateStaticImage(381, 203, 166, 25, "images/button_mouse.png", false, Window_VS) Button_VS_sl = guiCreateLabel(381, 203, 166, 25, "Vender Veiculo", false, Window_VS) guiSetFont(Button_VS_sl, "default-bold-small") guiLabelSetColor(Button_VS_sl, 255, 255, 255) guiLabelSetVerticalAlign(Button_VS_sl, "center") guiLabelSetHorizontalAlign(Button_VS_sl, "center") Button_VS_give_s = guiCreateStaticImage(381, 238, 166, 25, "images/button_standard.png", false, Window_VS) Button_VS_give_o = guiCreateStaticImage(381, 238, 166, 25, "images/button_mouse.png", false, Window_VS) Button_VS_give = guiCreateLabel(381, 238, 166, 25, "Vender Para o Jogador", false, Window_VS) guiSetFont(Button_VS_give, "default-bold-small") guiLabelSetColor(Button_VS_give, 255, 255, 255) guiLabelSetVerticalAlign(Button_VS_give, "center") guiLabelSetHorizontalAlign(Button_VS_give, "center") adLabel = guiCreateLabel(130, 269, 296, 24, "Loja De carros", false, Window_VS) -------------- Nome do seu servidor guiSetFont(adLabel, "default-bold-small") guiLabelSetHorizontalAlign(adLabel, "center", false) guiLabelSetVerticalAlign(adLabel, "center") guiSetVisible(Button_VS_sn_o,false)-- guiSetVisible(Button_VS_dy_o,false)-- guiSetVisible(Button_VS_Warp_o,false) guiSetVisible(Button_VS_Warp_info,false) guiSetVisible(Button_VS_Fix_o,false) guiSetVisible(Button_VS_Fix_info,false) guiSetVisible(Button_VS_lk_o,false) guiSetVisible(Button_VS_sl_o,false) guiSetVisible(Button_VS_give_o,false) --Button_VS_Warp_info --Button_VS_Fix_info Window_CHK = guiCreateWindow(screX/2-155,screY/2-60,310,120,"Vender Veiculo!",false) guiSetVisible(Window_CHK, false) guiSetProperty(Window_CHK, "AlwaysOnTop", "true") guiWindowSetSizable(Window_CHK, false) Label_CHK = guiCreateLabel(21,28,266,36,"",false,Window_CHK) guiLabelSetColor(Label_CHK, 38, 122, 216) guiLabelSetHorizontalAlign(Label_CHK,"center",true) Button_CHK_Y = guiCreateButton(17,73,129,36,"Deseja Vender?",false,Window_CHK) Button_CHK_N = guiCreateButton(161,73,129,36,"Cancelar",false,Window_CHK) function updateGridList() local data = getElementData(localPlayer, "VehicleInfo") if data then local rw, cl = guiGridListGetSelectedItem(Grid_VS) guiGridListClear(Grid_VS) for i, data in ipairs (data) do local carName = customCarNames[ data['Model'] ] or getVehicleNameFromModel(data["Model"]) local ID = data["ID"] local Cost = data["Cost"] local HP = math.floor(data["HP"]) local PreCost = math.ceil(Cost*.9*HP/100/10) local row = guiGridListAddRow(Grid_VS) guiGridListSetItemText(Grid_VS, row, 1, carName, false, true) guiGridListSetItemData(Grid_VS, row, 1, ID) guiGridListSetItemText(Grid_VS, row, 2, PreCost, false, true) guiGridListSetItemText(Grid_VS, row, 3, HP.." HP", false, true) end guiGridListSetSelectedItem(Grid_VS, rw, cl) end end bindKey("F7", "down", function() if getElementInterior(localPlayer) == 0 and getElementDimension(localPlayer) == 0 then if getElementData(localPlayer, "MissionWarProtection") and getElementData(localPlayer, "MissionProtection")then return end guiSetVisible(Window_VS, not guiGetVisible(Window_VS)) guiSetVisible (Window_CHK, false) showCursor(guiGetVisible(Window_VS)) end end) triggerServerEvent("onOpenGui", localPlayer) addEventHandler("onClientElementDataChange", root, function(dd) if getElementType(source) == "player" and source == localPlayer and dd == "VehicleInfo" then local data = getElementData(source, dd) if data then updateGridList() end end end) function WINDOW_CLICK_VEHICLE (button, state, absoluteX, absoluteY) local id = guiGridListGetSelectedItem(Grid_VS) local ID = guiGridListGetItemData(Grid_VS, id, 1) if source == Button_VS_close then guiSetVisible(Window_VS, false) showCursor(false) end if (source == Grid_VS) then if id == -1 and idd then guiGridListSetSelectedItem(Grid_VS, idd, 1) return false else idd = guiGridListGetSelectedItem(Grid_VS) end elseif id == -1 then elseif (source == Button_VS_sn) then if not isInColExport () then triggerServerEvent("SpawnMyVehicle", localPlayer, ID) end elseif (source == Button_VS_dy) then triggerServerEvent("DestroyMyVehicle", localPlayer, ID) elseif (source == Button_VS_lt) then triggerServerEvent("LightsMyVehicle", localPlayer, ID) elseif (source == Button_VS_bp) then triggerServerEvent("BlipMyVehicle", localPlayer, ID) elseif (source == Button_VS_lk) then triggerServerEvent("LockMyVehicle", localPlayer, ID) elseif (source == Button_VS_sl) then guiSetVisible(Window_CHK, true) local carName = guiGridListGetItemText(Grid_VS, guiGridListGetSelectedItem(Grid_VS), 1) local carprice = guiGridListGetItemText(Grid_VS, guiGridListGetSelectedItem(Grid_VS), 2) guiSetText(Label_CHK, 'Você deseja realmente vender seu "'..carName..'" por $'..carprice) elseif source == Button_VS_give then createPlayersList(id) elseif source == Button_CHK_Y then triggerServerEvent("SellMyVehicle", localPlayer, ID) guiSetVisible(Window_VS, false) guiSetVisible(Window_CHK, false) showCursor(false) elseif source == Button_CHK_N then guiSetVisible (Window_CHK, false) elseif source == Button_VS_Spc then if getElementInterior(localPlayer) == 0 then if getElementData(localPlayer,"Stats") < 2 then SpecVehicle(ID) end end elseif source == Button_VS_Fix then triggerServerEvent("FixMyVehicle", localPlayer, ID) elseif source == Button_VS_Warp then if not isInColExport () then triggerServerEvent("WarpMyVehicle", localPlayer, ID) end elseif source == Button_PLS_Y then local row = guiGridListGetSelectedItem ( playerList_PLS ) if row and row ~= -1 then -- if guiGridListGetItemText ( playerList_PLS, row, 1 ) == getPlayerName ( localPlayer ) then -- return true -- end if (tonumber(guiGetText (edit_PLS_price)) or 0) >= 0 then outputMessage ( "#c1c1c1Esperar uma resposta do jogador.", 10, 250, 10,true ) invitations_send = true triggerServerEvent ( 'inviteToBuyCarSended', localPlayer, guiGridListGetItemText ( playerList_PLS, row, 1 ), guiGetText (edit_PLS_price) or 0, guiGridListGetItemText(Grid_VS, id, 1), guiGridListGetItemData(Grid_VS, id, 1) ) destroyElement ( Window_PLS ) end end elseif source == Button_PLS_N then destroyElement ( Window_PLS) end end addEventHandler("onClientGUIClick", resourceRoot, WINDOW_CLICK_VEHICLE)
  23. Vim deixar aqui meu servidor de Roleplay , da uma passada lá tenho certeza que vão gostar, tmj ..... ts3 : server : mtasa://
  24. local vehicleElements = {} allVeh = {510} local pickupTable = { {1086.1798095703,-1801.6898193359,13.601690292358}, } function createPickupOnServerStart () for i, cor in ipairs (pickupTable) do local pickup = createPickup(cor[1], cor[2], cor[3], 3, 1274, 0) setElementData(pickup, "pickupArenda", true) end end addEventHandler("onResourceStart", getResourceRootElement( getThisResource() ), createPickupOnServerStart) function onResourceStop (veh) if isTimer(vehicleElements[veh]) then killTimer(vehicleElements[veh]) end --vehicleElements[veh] = destroyElement(veh) end addEventHandler("onResourceStop", getResourceRootElement( getThisResource() ), onResourceStop) function onPickupHit (hit) if not getElementData(source, "pickupArenda") or getElementType(hit) ~= "player" and not isPedInVehicle(hit) then return end triggerClientEvent(hit, "changeArendaMenuState", hit) end addEventHandler("onPickupHit", getRootElement(), onPickupHit) function onPlayerUseCustomPickup() if getPlayerMoney(source) >= 500 then local x, y, z = getElementPosition(source) local veh = createVehicle(allVeh[math.random(1,#allVeh)], x, y, z) setElementData(veh, "starter_pack", true) setElementData(veh, "owner", source) warpPedIntoVehicle(source, veh) takePlayerMoney(source, 500) outputChatBox("Bicicleta alugada, bom uso!.", source, 0, 255, 0) else outputChatBox("Para alugar uma bicicleta você precisa de >> 500 $$ <<.", source, 255, 0, 0) end end addEvent("onPlayerUseCustomPickup", true) addEventHandler("onPlayerUseCustomPickup", getRootElement(), onPlayerUseCustomPickup) function onPlayerVehicleEnter (veh, seat) if getElementData(veh, "starter_pack") == true and seat == 0 then if isTimer(vehicleElements[veh]) then killTimer(vehicleElements[veh]) end end end addEventHandler("onPlayerVehicleEnter", getRootElement(), onPlayerVehicleEnter) function onPlayerVehicleExit (veh, seat) if getElementData(veh, "starter_pack") == true and seat == 0 then if isTimer(vehicleElements[veh]) then killTimer(vehicleElements[veh]) end vehicleElements[veh] = setTimer(destroyElement, 300000, 1, veh) end end addEventHandler("onPlayerVehicleExit", getRootElement(), onPlayerVehicleExit) function onVehicleStartEnter (player, seat) if getElementData(source, "starter_pack") == true and seat == 0 then local owner = getElementData(source, "owner") if owner ~= player then cancelEvent() outputChatBox("Você não é dono desta bicicleta, alugue sua bike para poder usá-la.", player, 255, 0, 0) end end end addEventHandler("onVehicleStartEnter", getRootElement(), onVehicleStartEnter) This is the script to rent bike to a player. The bike is destroyed after 5 minutes, it's ok. But i need to do something that when player is arrasted, die, logout, exit of game the bike be destroyed too. function DestroyVeiculo (veh, seat) if getElementData(veh, "starter_pack") == true and seat == 0 then if isTimer(vehicleElements[veh]) then killTimer(vehicleElements[veh]) end --vehicleElements[veh] = setTimer(destroyElement, 300000, 1, veh) vehicleElements[veh] = destroyElement(veh) end end addEventHandler ("onPlayerLogout", getRootElement(), DestroyVeiculo) addEventHandler ("onPlayerQuit", getRootElement(), DestroyVeiculo) addEventHandler ("onPlayerWasted", getRootElement(), DestroyVeiculo) addEventHandler ("onPlayerBan", getRootElement(), DestroyVeiculo) addEventHandler ("onPlayerDie", getRootElement(), DestroyVeiculo) I tried to do it the way above, but not sucess. Someone can help me ? Thanks!
  25. Sorry by my english. I need to get a value with the whole number of weapons the player has. (Whole Number from player's weapon). I'm trying to do this, but with no sucess: function getPedWeapons(ped) local playerWeapons = {} if ped and isElement(ped) and getElementType(ped) == "ped" or getElementType(ped) == "player" then for i=2,9 do local wep = getPedWeapon(ped,i) if wep and wep ~= 0 then table.insert(playerWeapons,wep) end end else return false end return playerWeapons end function SaberArmas (player) outputChatBox("Armas (Caso tenha armas elas serão listadas abaixo!)",player,255,0,0) for i,wep in ipairs(getPedWeapons(player)) do outputChatBox("Você tem: " .. getWeaponNameFromID(wep),player,0,255,0) end end addEventHandler("onMarkerHit", MarkerInfo, SaberArmas) The script is making a list not a Whole Number. Someone can help me ?