Search the Community
Showing results for tags 'mta'.
-
-- server side Cylinder1 = createMarker(3139.8, -3254.3, 123.22222, "cylinder", 1.0, 0, 255, 255, 255) function TEST(playerhit) if isElementWithinMarker(playerhit, Cylinder1) then outputChatBox("U hit marker", root) end end addEventHandler("onMarkerHit", Cylinder1, TEST) I am surprised because I am sure that everything is fine but when I stick to the "cylinder1" marker, nothing happens, and according to the script it should show me that I hit this marker, but nothing is happening, someone has some idea because it is very strange..
-
-- server side cylinder = createMarker(-712.09100, 967.01917, 12.33547-1, "cylinder", 1.5, 255, 50, 0, 255) setElementData(cylinder, "BoxWithPoints", 0) function TIMER() if getElementData(cylinder, "BoxWithPoints") >= 8 then setElementData(cylinder, "BoxWithPoints", 8) else setElementData(cylinder, "BoxWithPoints", getElementData(cylinder, "BoxWithPoints")+1) end if isElementWithinMarker(source, cylinder) then triggerServerEvent("givePointsToServer", root) PointsServer = getElementData(source, "points") BoxPoints = getElementData(cylinder, "BoxWithPoints") setElementData(source, "points", PointsServer + BoxPoints) setElementData(cylinder, "BoxWithPoints", 0) end end setTimer(TIMER, 3000, 0) -- client side setElementData(getLocalPlayer(), "points", 0) addCommandHandler("ShowMyPoints", function() outputChatBox(tostring(getElementData(getLocalPlayer(), "points")), 255, 255, 0) end) addEvent("givePointsToServer", true) addEventHandler("givePointsToServer", root, function(player) local player = client setElementData(player, "points", getElementData(player, "points")) end) The problem is with the ruler where isElementWithinMarker (source, cylinder) shows me the error that argument 1 got nil, I don't know what to think about it because I checked meta.xml and server side and client side is the correct type, could someone explain why is this happening?
-
what server-side getLocalPlayer looks like?
- 2 replies
-
- getlocalplayer
- scripting
-
(and 3 more)
Tagged with:
-
I would like to know something about ElementData, the most about these two commands {getElementData, setElementData}, could someone help me understand these two things. For example, write a guide that would help me a lot and give me a heart
-
PowergyRPG Polski Serwer RPG! Co oferujemy? - Miła, aktywna, ogarnięta, szybka, doświadczoną administracje - Ciekawe, ogarnięte frakcje - Urozmaicone Prace - Częste eventy! - Częste Aktualizacje - Ładne podmianki - Znajdźki ( prezenty ) - Zwiększone handlingi - Ładne i dopracowane gui! Coś o Nas Witaj! Powergy RPG jest nowym serwerem na platformie MTA. Jako administracja serwera chcemy dla graczy jak najlepiej, dlatego wszystkie błędy, które zobaczymy lub zgłosi nam gracz, rozwiązujemy jak najszybciej! Mamy dużo ciekawych rzeczy dla graczy oraz urozmaiceń, których nie widzieliśmy na innych serwerach! Nie ukrywamy tego, lecz nasz serwer nie jest autorski, ale większość rzeczy próbujemy pisać sami! Jesteś ciekawy jakie rzeczy znajdziesz u nas? Wbijaj bez gadania ?! Social Media Discord: https://discord.gg/w6H66Pa Ip Serwera: mtasa://137.74.6.200:20260 TS3/Mumble: Brak Sloty: 40
-
- mta
- powergyrpg
-
(and 2 more)
Tagged with:
-
Witajcie, chciałbym zaprosić was na nowo powstały serwer DivisionMTA! Myślisz pewnie sobie : kolejny pseudol? Niee, nie wejde. Otóż to, jest to pseudol, ale inny niż wszystkie! Wyróżnia go to, że nie ma na nim mnóstwo podmianek. Postawiliśmy tutaj na optymalizacje dla graczy na słabszych komputerach! Rozgrywka opiera się w mieście Fort Carson, przez co wszystko jez zwięzłe oraz na miejscu! Salony są rozstawione po całym LV jak i LS więc nie ma się o co martwić. A więc co nasz serwer ma do zaoferowania? - Bardzo miłą i zdystansowaną do siebie Administrację! - Jasną i miłą rozgrywkę! - Wiele prac! - Wielką pomoc od Administracji! - Duże zarobki! I wiele wiele więcej! Jeśli spodobał ci się nasz serwer, zajrzyj do nas! Serwer MTA : mtasa://51.83.166.48:20728 Discord : https://discord.gg/AHE5Vq
-
So I have a question, I have a model to import but I would like this object was only visible in a specific dimension. How can I do this?
-
Olá!! Sou novo aqui no site então desculpa se não estou postando na categoria certa desta vez, eu estou com um problema de bug de dinheiro no meu servidor devido o comando /logout, queria saber se alguém poderia me ajudar a solucionar este problema. Agradeço desde já.
-
Üdv mindenkinek Magyarország RolePlay MTA szerver. Voice és Chat RP alapú. NEM GAZDAG RP! DE RENGETEG FIZETÉSI FORMA! Nálunk létrehozhatsz: Vállalkozást, Vásárolhatsz Vállalati részvényt, vagy Alapíthatsz Vállalatot. Ez egy bónusz pénz szerzési lehetőség, és rengeteg rp-s élmény! A szerveren minden megszerezhető! Egyedi rangrendszer, és prefix rendszer várható a szerveren! Tagfelvételünk nyitva áll minden jelentkező számára. Vezetőségünk írásban bármikor elérhető, avagy ha kérdésed van kérdezz és amint van időnk válaszolunk! További információkért látogass el Discordunkra, kérdezz és szerezz információt Discord szerverünkön, ahol a lehető legtöbb mindent megtalálhatsz! Discord link: https://discord.gg/dG4YYcr
-
Hi! I want to sell my drone system Contains: Model Images VIDEO: Use autumn coupon code to get 25% off! Coupon will expire at 30/10/2020 If you want to buy this script, please PM me or email: [email protected] or use this link: BUY HERE Other scripts HERE
-
Serverio IP adresas: 109.230.215.29:22003
-
Okay, so I would like to give M4 to each person from the "Red" team, and to every player from the "Blue" team I would like to give Ak47, How can I do it? -- server side red = createTeam("Red team", 255, 0, 0) blue = createTeam("Blue team", 0, 255, 0) giveWeapon("red team????", 31, 9999) giveWeapon("blue team????", 30, 9999) Something like this is on my mind but I do not know what to put in the "string" red team and blue team...
-
I have another question if it can be done so that people from the red team can shoot other players in the head (in the sense that it would kill other players) -- server side red = createTeam("RED", 255, 0 ,0) blue = createTeam("BLUE" , 0, 255, 0) -- client side function RedTeamHeadShotDamage(player, valuedamage, bodypart) if bodypart==9 then killPed(getLocalPlayer()) else cancelEvent() end end function SetRedTeamHeadShotOnly() local redPlayers = getTeamFromName("BLUE") local teamRed = getPlayersInTeam(redPlayers) for i, v in pairs(teamRed) do addEventHandler("onClientPlayerDamage", v, RedTeamHeadShotDamage) end end SetRedTeamHeadShotOnly() Something I mean, can it work?
-
NEVADA ROLEPLAY 1.2 ¡SEAN TODOS BIENVENIDOS A NEVADA ROLEPLAY, LA NUEVA GENERACIÓN DEL ROL HISPANO! Nevada Roleplay es un servidor de Roleplay, en el idioma español, hecho en base a la GM Americana "Paradise" hecha por mabako, a la cuál han sido agregadas geniales modificaciones de parte de nuestro scripter, Darko. Nevada Roleplay tiene como objetivo ser un espacio sano, libre de toxicidad y de excelente calidad de rol, pues es nuestro deber como servidor ofrecer la mejor de las experiencias a nuestros usuarios. ¿Pero qué tiene de especial Nevada Roleplay? Nevada Roleplay es un servidor especial, tiene buenos sistemas de personalización de tu personaje: ropa personalizada, cabeza de tu elección, accesorios, etc. Tenemos sistemas de casino, porque claro ¡Es el Estado de Nevada, deben haber casinos! También tenemos múltiples facciones con altísima calidad de rol, una comunidad agradable, buenos sistemas y una optimización sumamente avanzada. ¿Qué esperas para unirte a Nevada Roleplay? IP: mtasa://199.127.62.19:22003 Foro: nevadarp.foroactivo.com Discord: https://discord.gg/8aEuQ3N NEVADA ROLEPLAY, LA NUEVA GENERACIÓN DEL ROL HISPANO
-
hola gente, me podrian ayudar con una cosa. Ya he hecho que al pasar por un marker me salga un panel pero debido a un pickup que estado probando pero me toco dejarlo encima del marker para que funcione bien la funcion pero ahora necesito que al pasar la primera vez me aparesca el panel pero al pasar la segunda no aparescan como hago para hacer eso? gracias
-
Como van Gente, soy un poco nuevo en esto de los scripts, ya he logrado hacer un panel de cambio de skin de policial pero me falta una función que con un addCommandHandler se devuelva a la skin que tenia antes el jugador. Si me ayudaran se los agradeciria muchisimo
-
I have a problem with this script will someone help me? function Resource() local res = getResourceFromName("ResourceTest", true) startResource(res) end addCommandHandler("res", Resource)
-
Olá a todos estou querendo abrir uma loja de Script no caso de vendas, Tem alguma coisa ilegal sobre isso? Estou com muita duvida sobre isso!
-
Balkan DayZ[EUROPE]|ACIVE ADMINS|ISLANDS|fb.com/mtabalkandayz[ENGLISH] SERVER STATUS : ONLINE SERVER IP : mtasa://178.63.13.143:22248 Features: Clothing System English Group System Zombie System VIP System Radar u A51 BASES-FREE BASES FOR 5 TEAM MEMBERS+FULL TENT! NO LAG Staffs: Admin: BlueBoy,CROATIAKILLER,JVJV Fb Page:http://fb.com/surviveordiedayz Everyone is welcome!!
-
Hola abro este foro para ver si alguien me puede ayudar mandandome un pack de jobs o algunos en singular para un servidor RPG de mta ya que en internet no hay muchos que funcionen correctamente no importa el idioma en el que esten ya que yo se traducirlos
-
Hey, im Tomixinho and I play MTA PUBG tournaments, you can see my videos there
-
- mta battlegrounds
- argentina
- (and 6 more)
-
-- Client Side Button = guiCreateButton(0.45, 0.54, 0.10, 0.06, "Get Value", true) guiSetProperty(Button, "NormalTextColour", "FFAAAAAA") guiSetVisible(Button, false) EditBox= guiCreateEdit(0.41, 0.45, 0.18, 0.04, " chcesz tego kupić sztuk?", true) guiSetProperty(EditBox, "NormalTextColour", "FFFF0000") guiEditSetMaxLength(EditBox, 3) guiSetVisible(EditBox, false) addEventHandler("onClientGUIClick", Button function() local inputBox = tonumber(guiGetEdit(EditBox)) if inputBox==0 then outputChatBox("U set value input "..inputBox, 255, 255, 0) end end) -- Another Client Side addCommandHandler("TurnOnButton", function() guiSetVisible(Button, true) guiSetVisible(EditBox, true) end) I don't know what's wrong, but when I type the command 'TurnOnButton' I can't click the button and the editBox as if they didn't exist
-
español Hola, inicie un seridor con un amigo y tenemos un problema con los markets, cuando un jugador entra a uno se le aparece el cartel a todos los demas jugadores (Por ejemplo: Un jugador entra al market del job de pizzero a todos los demas jugadores les salta el cartel para tomar el trabajo esten donde esten). Seria genial si alguien nos ayudase ya que si no lo solucionamos nos vamos a ver obligados a cerrar el servidor y no queremos eso, desde ya muchas gracias aqui dejo mi discord: Fede#7027 português Olá, comece um seridor com um amigo e temos um problema com os mercados. Quando um jogador entra em um, o pôster aparece para todos os outros jogadores (por exemplo: Um jogador entra no mercado de pizza para todos os outros jogadores. pule o pôster para aceitar o trabalho onde quer que esteja). Seria ótimo se alguém nos ajudasse, porque se não resolvermos, seremos forçados a fechar o servidor e não queremos isso, muito obrigado aqui deixo minha discórdia: Fede # 7027 english Hello, start a serer with a friend and we have a problem with the markets, when a player enters one, the poster appears to all the other players (For example: A player enters the pizza job market to all the other players skip the poster to take the job wherever they are). It would be great if someone helped us because if we do not solve it we will be forced to close the server and we do not want that, thank you very much here I leave my discord: Fede # 7027
-
Is there a function similar to ToogleControl but with Binds? I mean, there is such a function attached to BindKey (under the "k" key), and I would like to press the "k" function just like in ToggleControl, where we clicked eg left mouse button to shoot
-
Boa noite, É possivel adicionar um spawn de armas/skin dentro de algum interior? Lembrando: O interior está liberado devido um certo mod. Aguardo.