Jump to content

Search the Community

Showing results for tags 'client'.

  • 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. Hello. I have a global mod, really global. It has close to 65.000 models, so I have to use limitadjuster fastman92. I need to adapt an AIT client so that players can play my modification online. By type MTA Province (Google) I disabled the .asi file check https://imgur.com/a/EafjFOO изменив .asi на .ass(:D) изменил еще этот файл, заменив false на true https://imgur.com/a/aTp5S9s. I compiled the MTA, it worked, the MTA turns on, and does not pay attention to the .asi files in the game folder. The MTA starts up and works, I started the local server, and I'll try to connect, but my game is minimized, and after 10 seconds it flies. It starts proxy_sa, I started it not with the help of MTA, but just from the game folder, I got an error, there was a shortage of .dll files, I threw them from the AIT folder to the GTA folder, it worked. Proxy_sa was turned on. But still when connecting to the server through the client, the game is minimized, and after 10 seconds it turns off, in dispatching tasks, it is written that proxy_sa does not respond. Also on the server, I allowed players to use the modified gta3.img, and also removed the / maps and the rest from the verification of the data. But with all this, it does not work properly. Help me, please.
  2. Hi guys! Help me make the save. player walking style? ---------------Определить языкАзербайджанскийАлбанскийАмхарскийАнглийскийАрабскийАрмянскийАфрикаансБаскскийБелорусскийБенгальскийБирманскийБолгарскийБоснийскийВаллийскийВенгерскийВьетнамскийГавайскийГаитянскийГалисийскийГреческийГрузинскийГуджаратиГэльскийДатскийЗападнофризскийЗулуИвритИгбоИдишИндонезийскийИрландскийИсландскийИспанскийИтальянскийЙорубаКазахскийКаннадаКаталанскийКиргизскийКитайский (традиционный)Китайский (упрощенный)КорейскийКорсиканскийКосаКурдскийКхмерскийЛаосскийЛатинскийЛатышскийЛитовскийЛюксембургскийМакедонскийМалагасийскийМалайскийМалаяламМальтийскийМаориМаратхиМонгольскийНемецкийНепальскийНидерландскийНорвежскийНьянджаПанджабиПерсидскийПольскийПортугальскийПуштуРумынскийРусскийСамоанскийСебуанскийСербскийСингальскийСиндхиСловацкийСловенскийСомалиСуахилиСунданскийТаджикскийТайскийТамильскийТелугуТурецкийУзбекскийУкраинскийУрдуФилиппинскийФинскийФранцузскийХаусаХиндиХмонгХорватскийЧешскийШведскийШонаЭсперантоЭстонскийЮжный сотоЯванскийЯпонский Hi guys! How do I save a player's fighting style? Save and Load player's fighting style on (onPlayerLogin, onPlayerQuit, onPlayerLogout, onPlayerWasted). Please help me! I will be grateful to YOU! :)
  3. How to disable all components of the CEF browser ? Give me a separate MTA client with a fully deactivated CEF please.
  4. Guest

    Client و Server

    السلام عليكم اعرف انو Client هو على جهاز اللاعب Server ينطبق على السيرفر بس انا الحين ملخبط لنو كل مود اسويه مش عارف ايش احطه في الميتا سيرفر ولا كلينت و مش عارف كمان متى اعمل ملفين للمود client + server على سبيل المثال المود هذا local vipVehicles = { [520] = true; } addEventHandler("onPlayerCommand", root, function(cmd) if cmd == "cv" then local p = {getElementPosition(source)} for _,vehicle in ipairs(getElementsByType("vehicle")) do if vipVehicles[getElementModel(vehicle)] then local v = {getElementPosition(vehicle)} if getDistanceBetweenPoints3D(p[1], p[2], p[3], v[1], v[2], v[3]) < 10 then if not isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("VIP")) then destroyElement(vehicle) outputChatBox("● You must be VIP to spawn this vehicle", source, 255, 0, 0) end end end end end end ) هو مود ما يخلي اللاعب ينزل طائرة و هو مو فيب طب مش المفروض بيكون كلينت؟ لما غيرته في الميتا الى سيرفر صار شغال؟ احد يشرحلي
  5. Hello there. Me and my friend tried to make a script that makes a spoiler on a vehicle moving. If the vehicle is going above 100km/h the spoiler will change its position. We are using setVehicleComponentPosition. The problem is that only the player who's driving the car can see it moving. Is there any way that it will be visible for everybody on the server?
  6. Guest

    Client + server.lua

    Hello there I wanted to ask you guys when i must do client.lua and server.lua because theres resources with them both and theres resources with server.lua only
  7. Jaysds1

    Client Not Starting

    Hey all, It's been awhile since I've been here lol Anyways; I am running linux and I've been testing little stuff to get GTA running and I ended up running it with steam, now I'm trying to get MTA running with it and I came to a conclusion that I don't know any extra requirements to use for it. Using PlayOnLinux(Use of WINE): GTA:SA Works (Steam Version) Installation of MTA:SA complete Start of MTA:SA fails (https://pastebin.mtasa.com/324878746) Additional Info (https://imgur.com/a/SFqCtht)
  8. local level = 0 function render (player, level) level = getElementData player, "LEVEL") or 0 dxDrawText("level ".. level, 110 - 1, 717 - 1, 381 - 1, 754 - 1, tocolor(0, 0, 0, 255), 1.30, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText("level ".. level, 110 + 1, 717 - 1, 381 + 1, 754 - 1, tocolor(0, 0, 0, 255), 1.30, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText("level ".. level, 110 - 1, 717 + 1, 381 - 1, 754 + 1, tocolor(0, 0, 0, 255), 1.30, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText("level ".. level, 110 + 1, 717 + 1, 381 + 1, 754 + 1, tocolor(0, 0, 0, 255), 1.30, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText("level ".. level, 110, 717, 381, 754, tocolor(255, 255, 255, 255), 1.30, "bankgothic", "left", "top", false, false, false, false, false) end addEventHandler("onClientRender", root, render) can someone pls tell me whats wrong with this script pls and yes i am a bit new to scripting in lua
  9. I made an script that make staffs can open an panel by using /dm then choose a player and type a message then send it... But my problem is i don't know how to trigger this to put this code in server side outputChatBox(msg, selectedplayer, 255, 255, 255, true) I mean to send the message to selected player only... client variables: msg = guiGetText(editbox) selectedplayer = guiGridListGetSelectedItem(gridlist) Help pls
  10. So, I really love to play with MTA, but one day I couldn't launch it, and a little window popped up saying: "GTA: San Andreas may not have launched correctly. Do you want to terminate it?" I have Win10, and I reinstalled both the GTA and the MTA. I don't know what to do, please help!
  11. Gente Gostaria de saber como adiciono priv acl por marker Ex: O player entra no marker mais não conseguir abrir o painel que está no marker
  12. As the title, what is the default login system for default server? I deleted all resource load from mtaserver.conf but still /login /register works.. Thanks.
  13. Hello, I'm trying to pass my server side settings defined in my meta.xml to the client. However, when passing the table of XML data to the client, the data does not persist. Here's my server side code: addEvent("onClientRequestResourceSettings", true) addEventHandler("onClientRequestResourceSettings", resourceRoot, function() local xml = xmlLoadFile("meta.xml") local settingsNode = xmlFindChild(xml, "settings", 0) if(settingsNode) then local settings = xmlNodeGetChildren(settingsNode) triggerClientEvent(client, "onServerProvideResourceSettings", resourceRoot, settings) end xmlUnloadFile(xml) end ) That above event is called client side when the resource starts. Here's the client side code: addEvent("onServerProvideResourceSettings", true) addEventHandler("onServerProvideResourceSettings", resourceRoot, function(theSettings) iprint("Settings provided: "..inspect(theSettings)) --Output: "Settings provided: { }" end ) However my settings table is not being passed to the client. When printing the output, it appears to be an empty table. I'm aware there is a limitation of passing xml data to the client, however as this is in fact a table data type, I wouldn't of thought there would be an issue? Can anyone point me in the right direction, or perhaps provide some better solutions for passing settings data from the meta.xml to the client? Cheers.
  14. Hello, I'm asking if it's possible to set MTA window to "always on top" state. I tried to use multiple programs to do it (Autohotkey and some minor programs, like Always On Top Maker) but no one of them seem to work specifically for MTA, on other windows they do it fine. I tried it on multiple resolutions, too (1280x720x32, 960x540x32 and 1366x768x16).
  15. Hello! I want to restart a resource if someone bought eg: phone but not at everyone, just want to restart resource the one person who bought the phone (so client-side maybe?!) It is possible?
  16. This is the code: And i get this warnings: bad argument @ 'stopSound' [expected sound at argument 1, got nil] and bad argument @ 'detachElement' [expected element at argument 1, got nil] .. -.- how to fix this?
  17. I tried triggering, but does not working :c How to get my account name in client side?
  18. i created a dx panel, and i created some onClientClick event for this panel. but when i hide the panel, the onClientClick events are working.. how to fix this?
  19. Hi .. I'm wondering about the server side and the client side, what's the difference between them in code ? for my case, I am using bone_attach mod and attached a case to the localPlayer, whats the difference if I wrote it in client side, or server side ? will it show up to the people If I attached it in the client side ?, Please provide me with information as much as possible. Thanks in Advance
  20. MrDadosz

    MTA GUI crashing

    Hello. One of our players has crashes when server shows GUI for him. He updated MTA to newest nightly, reinstalled game, MTADiag: https://pastebin.mtasa.com/313816765 Video:
  21. Hey, MTA forum. I just started playing MTA:SA again on my new PC. When I joined a race, one map loaded where i could see nothing but purple fog. I assumed it was just part of the map or perhaps that one was bugged. No other maps had that problem. Later, I joined a freeroam server. There were no issues. I left that one for the default MTA:SA server. It was fine for a few minutes, and then suddenly, everything is covered in dark green fog. What the hell? I don't see anyone complaining, so I assume it's only on my end. Anyone ever have this problem? If so, know how to fix it? Ty! <3
  22. Hi believe this rs what happens is that the effects are only seen on the side of the user osea client and the others can not see it I would like to help me to turn it server side x, y, z = getElementPosition(player) fx2 = createEffect("flame", x, y, z-1000) fx3 = createEffect("flame", x, y, z-1000) fx4 = createEffect("flame", x, y, z-1000) function fire() setEffectDensity(fx2, 2) setEffectSpeed(fx2, 1) setObjectScale ( fx2, 0.5) attachElements (fx,localPlayer, 0, 0, 5 ) setWeaponProperty(8, "damage", 100) end addCommandHandler("fire", fire) function disableMinigunOnSwitch ( player, prevSlot, newSlot ) if getPedWeapon(player(),newSlot) == 8 then --if the switched weapon is the minigun exports.bone_attach:attachElementToBone(fx2,player,12,0,0,0.1,0,0,0) exports.bone_attach:attachElementToBone(fx3,player,12,-1,0,0.1,0,0,0) exports.bone_attach:attachElementToBone(fx4,player,12,-0.5,0,0.1,0,0,0) else --if it isnt the minigun exports.bone_attach:detachElementFromBone(fx) exports.bone_attach:detachElementFromBone(fx2) exports.bone_attach:detachElementFromBone(fx3) exports.bone_attach:detachElementFromBone(fx4) setElementPosition ( fx2, x, y, z-1000 ) setElementPosition ( fx3, x, y, z-1000 ) setElementPosition ( fx4, x, y, z-1000 ) end end addEventHandler ( "onClientPlayerWeaponSwitch", getRootElement(), disableMinigunOnSwitch ) function stopMinigunDamage ( attacker, weapon, bodypart ) if ( weapon == 8 ) then --if the weapon used was the minigun createFire(x, y, z, 2) --cancel the event end end addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), stopMinigunDamage )
  23. Hola ando necesitando ayuda con un script, el mismo es el de la clasica Killcam (https://community.multitheftauto.com/index.php?p=resources&s=details&id=5362) pero le quise agregar una seguridad para cuando el jugador que recibe el disparo (Reciever) se desconecte, el mismo sea baneado. Pero no logro hacerlo, he hecho esto: Client (completo con mi codigo): function movecamera() x, y, z = getElementPosition(camobj) th, tj, tk = getElementPosition(tarobj) setCameraMatrix(x, y, z, th, tj, tk) end function shotfunc() if alpha <= 255 and alpha > 0 then alpha = alpha - 1 dxDrawText(text, 576, 544, 778, 601, tocolor(255, 200, 0, alpha), 2, "sans", "center", "top", false, false, false) end end addEventHandler("onClientRender", root, shotfunc) text = " " alpha = 0 function goodguy1() dxDrawLine3D(th, tj, tk, th + (hx - th - (hx - th + 0.2)), tj + (hy - tj - (hy - tj + 0.2)), tk + (hz - tk - (hz - tk + 0.2)), tocolor(64, 64, 64, 255)) end function goodguy2() dxDrawLine3D(tv, tb, tn, tv + (hx - tv - (hx - tv + 0.2)), tb + (hy - tb - (hy - tb + 0.2)), tn + (hz - tn - (hz - tn + 0.2)), tocolor(64, 64, 64, 255)) end function movereciever() tv, tb, tn = getElementPosition(target) h, j, k = getElementPosition(localPlayer) setCameraMatrix(h + 5, j + 5, k + 5, tv, tb, tn) end function killcam(tz, tx, tc, hjx, hjy, hjz, bodypart, moving, reciever, weapon) addEventHandler ( "OnClientChatMessage", getRootElement(), function() cancelEvent() end ) addEventHandler ( "OnClientConsole", getRootElement(), function() cancelEvent() end ) setGameSpeed(0.05) camobj = createObject(327, tz + 2.5, tx + 2.5, tc + 2.5) tarobj = createObject(327, tz, tx, tc) setElementData(localPlayer,"killca",true) setElementAlpha(camobj, 0) setElementAlpha(tarobj, 0) moveObject(camobj, 4000, hjx + 5, hjy + 5, hjz + 5) if bodypart == 9 then moveObject(tarobj, 5000, hjx, hjy, hjz + 1) else moveObject(tarobj, 5000, hjx, hjy, hjz) end hx = hjx hy = hjy hz = hjz addEventHandler("onClientRender", root, movecamera) addEventHandler("onClientRender", root, goodguy1) addEventHandler("onClientPlayerQuit", reciever, function () if getElementData(reciever,"killca") == true then playerToBan = getPlayerName(reciever) triggerServerEvent("banPlayer", getLocalPlayer(), playerToBan) end end) function killz() triggerServerEvent("onKillCamFinish", root, localPlayer, reciever, weapon) fxAddBlood(hjx, hjy, hjz, 0, 0, 0, 5, 1) setElementData(localPlayer,"killca",true) removeEventHandler("onClientRender", root, goodguy1) setGameSpeed(0.2) end setTimer(killz, 5000, 1) if bodypart == 3 then if moving then text = "KILL EN MOVIMIENTO" else text = "KILL" end elseif bodypart == 4 then if moving then text = "Kill en movimiento! ¡Le diste en los testiculos a "..getPlayerName(reciever):gsub("#%x%x%x%x%x%x", "").."" else text = "¡Le diste en los testiculos a "..getPlayerName(reciever):gsub("#%x%x%x%x%x%x", "").."!" end elseif bodypart == 9 then if moving then text = "HEADSHOT en movimiento a "..getPlayerName(reciever):gsub("#%x%x%x%x%x%x", "") else text = "HEADSHOT a "..getPlayerName(reciever):gsub("#%x%x%x%x%x%x", "") end end function setnormalcam() removeEventHandler("onClientRender", root, movecamera) setCameraTarget(localPlayer) destroyElement(camobj) setGameSpeed(1.2) setElementData(localPlayer,"killca",false) alpha = 255 end setTimer(setnormalcam, 6000, 1) end addEvent("onSniperHeadshot", true) addEventHandler("onSniperHeadshot", root, killcam) function recievehs(shx, shy, shz, hitx, hity, hitz) setGameSpeed(0.05) setElementData(localPlayer,"killca",true) target = createObject(327, shx, shy, shz) setElementAlpha(target, 0) moveObject(target, 5000, hitx, hity, hitz) hx = hitx hy = hity hz = hitz addEventHandler("onClientRender", root, movereciever) addEventHandler("onClientRender", root, goodguy2) function gods() removeEventHandler("onClientRender", root, goodguy2) setGameSpeed(0.2) setElementData(localPlayer,"killca",true) end setTimer(gods, 5000, 1) function endcam() removeEventHandler("onClientRender", root, movereciever) destroyElement(target) setCameraTarget(localPlayer) setGameSpeed(1.2) setElementData(localPlayer,"killca",false) end setTimer(endcam, 6000, 1) end addEvent("onRecieveSniperHeadshot", true) addEventHandler("onRecieveSniperHeadshot", root, recievehs) function bloodhead(weapon, ammo, ammoclip, hx, hy, hz, hitelement, sx, sy, sz) if weapon == 34 then a = hx s = hy d = hz function bloods() fxAddBlood(a, s, d, 0, 0, 0, 5, 1) end setTimer(fxAddBlood, 3500, 1) end end addEventHandler("onClientWeaponFire", root, bloodhead) function godci () if getElementData(localPlayer,"killca") == true then cancelEvent() end end addEventHandler("onClientPlayerDamage",root,godci) Aqui solo el codigo que agregue yo para que entiendan mejor y no tengan que buscar: addEventHandler("onClientPlayerQuit", reciever, function () if getElementData(reciever,"killca") == true then playerToBan = getPlayerName(reciever) triggerServerEvent("banPlayer", getLocalPlayer(), playerToBan) end end) Server: function banPlr(who) local targetPlayer = getPlayerFromName ( who ) banPlayer(targetPlayer,false,false,true,root,"Salir de Killcam",14400) outputChatBox ( "#FE2E2E[LPM.KCProtection] "..who.."#FE2E2E ha sido baneado por salir de Killcam (4 horas).", root, 255, 0, 0, true ) outputDebugString ("Jugador "..who.." baneado correctamente por salir de Killcam.") end addEvent("banPlayer", true) addEventHandler("banPlayer", getRootElement(), banPlr) El otro server esta compilado por eso no lo agrego, pero la killcam funciona. El problema esta en el getPlayerFromName, cuando quiero banear al jugador dice que espera recibir el Player, pero recibe un boolean y no se por que, si yo le estoy pasando el string correctamente (ya que en el ChatBox y el DebugString se imprimen correctamente). Espero puedan ayudarme, muchas gracias
  24. local screenW, screenH = guiGetScreenSize() function ahudd() dxDrawImage(screenW * 0.8424, screenH * 0.6289, screenW * 0.1194, screenH * 0.0256, "nbgg.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(screenW * 0.8444, screenH * 0.6322, screenW * 0.1153, screenH * 0.0189, "nn.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawText("Jármű épség:", (screenW * 0.8424) + 1, (screenH * 0.6289) + 1, (screenW * 0.9618) + 1, (screenH * 0.6544) + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("Jármű épség:", screenW * 0.8424, screenH * 0.6289, screenW * 0.9618, screenH * 0.6544, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) end function asdxd() local playerVehicle = getPedOccupiedVehicle ( localPlayer ) if playerVehicle then local vehicleHealth = getElementHealth ( playerVehicle ) / 10 addEventHandler("onClientRender", root, ahudd) else removeEventHandler("onClientRender", root, ahudd) end end addEventHandler("onClientRender", root, asdxd) fileDelete("client.lua") why not working? i want, when the player get in a vehicle, show the dx element, and when get out, hide the dx element, and if player in a vehicle, the dx element show just for her
  25. function someName(killer,weapon,bodypart) if(killer == getLocalPlayer()) then return end if bodypart == 9 then local sound = playSound("headshot.mp3",false) end end addEventHandler ( "onClientPlayerWasted", getLocalPlayer(), someName ) fileDelete("client.lua") what wrong?
×
×
  • Create New...